Giter VIP home page Giter VIP logo

Comments (278)

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024 2

You can control the "depth" of the Elements by using the BorderDepth option when creating the form. I don't have an option to control it only on the buttons; so I can't do it just to the buttons.

For narrower looking bevels,use something like this:
with g.FlexForm('Everything bagel', AutoSizeText=True, DefaultElementSize=(40,1), BorderDepth=3) as form:
It produces a form that looks like this:
snap0076

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024 1

light table
dark table

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024 1

progress custom

floating launcher

snap0272
keypad 3

menu

tear off

cookbook all elements
cookbook columns
table 2
toolbar gray
toolbar black
timer
enabled
disabled

pi leds
cpu widget
spinner compound
cpu widget 2
scrolled table
pong
pong 2
cpu widget raspberry pi
floating toolbar
cpu widget windows
timer 2
generic toolbar
onelineprogress meter plain colors
ping graph
scrollingping
calculator
ping graph
frame
6000 point pings
text relief
toolbar

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

all widgets on one screen

simple msgbox
variablearguments
custombuttoncolor
msgboxok
msgbox error
msgbox autoclose
msgboxyesno
msgboxcancel
msgboxokcancel

getfolderbox
scrolledtextbox
sha hash

getfilebox
gettextbox

all widgets
results

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

textelem
multiline text

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

progress meter 2
progress meter 3
progress meter 4
progress meter 5
output element

from pysimplegui.

happyconcepts avatar happyconcepts commented on May 14, 2024

Looks very nice! If I wanted less bevel on the borders, could I change it without css?

from pysimplegui.

happyconcepts avatar happyconcepts commented on May 14, 2024

Very bagel. Can't wait to try it next week. Thanks!

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snap0106
snap0113

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

This is by FAR the easiest way to share images on the net!
Wow, super-easy drag and drop.
machine learning example

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

debug print

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

sliders 2

listbox

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

logo01 2

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

everything example
results 2

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

midi player interface

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snap0125
snap0129
snap0130

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

media file player

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

media file player

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snap0134
snap0136

snap0147

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

pysimplegui_logo

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snap0138
image
image

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snap0146
snap0145
snap0143
snap0142

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snap0148
snap0149

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snap0151
snap0153

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snap0155
snap0156

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

raspberry pi

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

Same form with system default and 3 different look and feels.

snap0096
snap0119
snap0117
snap0099
everything in green
media player
launcher 2

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snap0131

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snap0132
snap0135

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

machine learning

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snap0162

import PySimpleGUI as sg

form = sg.FlexForm('Simple data entry form')  # begin with a blank form

layout = [
          [sg.Text('Please enter your Name, Address, Phone')],
          [sg.Text('Name', size=(15, 1)), sg.InputText()],
          [sg.Text('Address', size=(15, 1)), sg.InputText()],
          [sg.Text('Phone', size=(15, 1)), sg.InputText()],
          [sg.Submit(), sg.Cancel()]
         ]

button, (name, address, phone) = form.LayoutAndRead(layout)

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snap0178
snap0177
snap0179
snap0180
snap0182
snap0181

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

scrolledtextbox 2
autoclose
error msgbox
yesno
cancel
ok cancel 2
ok
gettextbox 2
getfilebox 2
getpathbox
preogress meter

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

comparison

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

pysimplegui codebox sim
easyguicodebox

import easygui_qt as eq
import PySimpleGUI as sg
import easygui   as eg

def codebox(msg, title, text):
    return sg.FlexForm(title).LayoutAndRead([[sg.Multiline(size=(60,4), default_text=msg)],[ sg.Multiline(size=(60,14), default_text=text)], [sg.OK(), sg.Cancel()]])

eg.codebox('msg', 'title', 'test')
codebox('msg', 'title', 'test')
# SourceDestFolders()
eq.show_message('message', 'title')

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snap0207

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

red text

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

border 6

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

youtube download

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

dl 2
dl 1

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snap0216

import PySimpleGUI as g

layout =  [[g.Text('YouTube Download Link', auto_size_text=True)],
            [g.InputText()],
            [g.OK(), g.Cancel()]]

button, (youtube_link, ) = g.FlexForm('Enter YouTube Link').LayoutAndRead(layout)

# insert code here to determine what options to include based on data from the link
resolution_1080p, resolution_720p, resolution_360 = None, True, False

if youtube_link is not None:
    form = g.FlexForm('Download Example', auto_size_text=True)
    layout = [[g.Text('YouTube Download Link', auto_size_text=True)],
              [g.Text('Your link is:')],
              [g.Text(youtube_link)],
              [g.Text('')],
              [g.Text('Video dimensions')],
              [g.Checkbox('1080p', default=resolution_1080p),
               g.Checkbox('720p', default=resolution_720p),
               g.Checkbox('360', default=resolution_360)],
              [g.OK(), g.Cancel()]]

    button, (values) = form.LayoutAndRead(layout)

    g.MsgBox(button, values)

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snap0217

import PySimpleGUI as g

form = g.FlexForm('Registration form', auto_size_text=True)

layout = [
           [g.Text('Registration Form', size=(20,1), font=('Helvitica', 20))],
           [g.Text('Full name', size=(15,1)), g.InputText()],
           [g.Text('Email', size=(15,1)), g.InputText()],
           [g.Text('Gender', size=(15,1)), g.Radio('Male', group_id=1), g.Radio('Female', group_id=1)],
           [g.Text('Country', size=(15,1)), g.Combo(values=('select your country', 'USA', 'Other'))],
           [g.Text('Programming', size=(15,1)), g.Checkbox('Java'), g.Checkbox('Python')],
           [g.Submit(button_color=('white', 'red'))]
         ]

form.LayoutAndRead(layout)

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snap0218

import PySimpleGUI as g

output1 = g.Text('')

layout = [
            [g.Text('What is your guess?')],
            [g.InputText()],
            [g.ReadFormButton('Submit')]
           ]

form = g.FlexForm('Number game')
form.Layout(layout)
number = 100

while True:
    button, (value,) = form.Read()
    guess = int(value)
    if guess == number:
        form.CloseNonBlockingForm()
        g.MsgBox('You Guessed Correctly!', 'Right')
        break
    if guess > number:
        output1.Update('Too high')
    elif guess < number:
        output1.Update('Too low')

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

launcher

import PySimpleGUI as sg
import os

def Launcher():

    form = sg.FlexForm('Script launcher')

    layout =  [
                [sg.Text('Script output....', size=(40, 1))],
                [sg.Output(size=(88, 20))],
                [sg.ReadFormButton('script1'), sg.ReadFormButton('script2'), sg.SimpleButton('EXIT')]
              ]

    form.Layout(layout)

    # ---===--- Loop taking in user input and using it to query HowDoI --- #
    while True:
        (button, value) = form.Read()
        if button == 'EXIT' or button is None:
            break           # exit button clicked
        if button == 'script1':
            ExecuteCommandOS('python SimScript.py')
        elif button == 'script2':
            ExecuteCommandOS('python SimScript.py')
        elif button == 'Enter':
            ExecuteCommandOS(value[0])      # send string without carriage return on end


def ExecuteCommandOS(command):
    output = os.popen(command).read()
    print(output)


if __name__ == '__main__':
    Launcher()


from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snap0227

import time
import PySimpleGUI as sg

def CubeTimer():
    # Show a form that's a running counter
    form = sg.FlexForm('Running Timer', auto_size_text=True)
    text_element = sg.Text('', size=(10, 2), font=('Helvetica', 20), justification='center')
    form_rows = [[sg.Text('Rubix Cube Timer')],
                 [text_element],
                 [sg.T(' ' * 15), sg.ReadFormButton('Start/Stop', focus=True), sg.Quit()]]
    form.LayoutAndRead(form_rows, non_blocking=True)

    # logic for reading the form buttons, starting/stopping timer
    timer_running = True
    i = 0
    while True:
        if timer_running:
            i += 1
        text_element.Update('{:02d}:{:02d}.{:02d}'.format((i//100)//60, (i//100)%60, i%100))
        button, values = form.ReadNonBlocking()
        if values is None or button == 'Quit':      # if user closed the window using X or clicked Quit button
            break
        elif button == 'Start/Stop':
            timer_running = not timer_running

        time.sleep(.01)
        # if the loop finished then need to close the form for the user
    form.CloseNonBlockingForm()
    del(form)

CubeTimer()

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

script launcher

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

These forms are in the "cookbook" document

compare 2 files
super simple 2
simple file browse
green everything
non-blocking
non-blocking 2
button callback 2

progress meter 6
tabbed form

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

5 line gui

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

progress meter 7

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

custom progress meter

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

robot control

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

gui0_1
gui1_1
gui2_1
gui3_1
gui4_1
gui5_1
gui6_1

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

column example

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

simple
snap0202

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

qt example

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

unfixed
fixed

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

raspberry pi everything demo

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

simple

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

int enter

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

everything for tutorial
tutorial results

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

tutorial
tutorial2

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

myfirstgui

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

math example
math answer

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

math game

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

midi player get files
midi player playback

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

midi player
midi player with progress

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

chatterbot chat window 2
chatterbot chat window
chatterbot progress meter

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

realtime updated
code

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

chatterbot chat window
chatterbot progress meter

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

chatterbot training
chatterbot chat window 3
chatterbot training 2

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

keypad

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

keypad on pi

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

canvas

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

keypad 2
animated matplotlib

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

pyplot 2
pyplot 1

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

matplotlib
matplotlib animated

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

script front-end

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

script launcher 2
animated ping

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

animated ping 2
animated ping pi

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

ping windows

ping pi

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

popupgettext
popup gettext response
first popup

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snap0256
snap0261
snap0260
snap0259
snap0258
snap0257

snap0264

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

popupgetfile
popupgetfolder

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

matplotlib browser demo

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

multiline
everything dark theme
spinner
radio
slider
listbox 2
combobox
inputtext 2
button
robot remote
output
simple text
checkbox
ok cancel 3
file browse
column
get filename
hello world
easyprogressmeter
media player 2
menu option

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

simpletable

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

timemanagement

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

timetracker tight layout

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

howdoiwithhistory

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

password entry
password hash

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

borderless 2
borderless grayed buttons

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

howdoi borderless

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

opencv

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

calendar
color

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

open
folder
saveas

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

pong
pong small
graph element
graph element
frame element
matplotlib browser demo
everything bagel
everything bagel reseults
menu demo
tabbed 1
tabbed 2
tabseverywhere
tabs tabs tabs
sample window
graph markers
menus with shortcuts
scaper
snag-0006
snag-0009
snag-0008
quick ref
process killer

banner
snag-0045

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snag-0060

snag-0061
snag-0061
chess board
cpu core dash - both qt and tkinter
snag-0235
dial slider

popupquickmessage3
snag-0258
snag-0257
snag-0263

scrolling graphics
scrolling graphics
game
snag-0278
snag-0279
snag-0284
More Sudoku... this time with Frames!

Qt

image

Tk

image

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snag-0029

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

snag-0047

from pysimplegui.

MikeTheWatchGuy avatar MikeTheWatchGuy commented on May 14, 2024

chess gui

from pysimplegui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.