ABIX_Edukacja

PySimpleGUI

Oct 5th, 2020
3,879
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.66 KB | None | 0 0
  1. import PySimpleGUI as sg
  2.  
  3. with sg.FlexForm('Wszystko razem - ABIX', auto_size_text=True, default_element_size=(40, 1)) as form:
  4.     layout = [
  5.     [sg.Text('Wszystkie grafiki w jednym miejscu!', size=(30, 1), font=("Helvetica", 25), text_color='blue')],
  6.     [sg.Text('Jakiś tekst... a jesli chcesz, wprowadź swój...')],
  7.     [sg.InputText()],
  8.     [sg.Checkbox('Mój checkbox'), sg.Checkbox('Mój kolejny checkbox!', default=True)],
  9.     [sg.Radio('Radio button! ', "RADIO1", default=True), sg.Radio('Inny button !', "RADIO1")],
  10.     [sg.Multiline(default_text='To jest domyślny tekst, jeśli zdecydujesz się nie wpisywać niczego',
  11.     scale=(2, 10))],
  12.     [sg.InputCombo(['Combobox 1', 'Combobox 2'], size=(20, 3)),
  13.     sg.Slider(range=(1, 100), orientation='h', size=(35, 20), default_value=85)],
  14.     [sg.Listbox(values=['Listbox 1', 'Listbox 2', 'Listbox 3'], size=(30, 6)),
  15.     sg.Slider(range=(1, 100), orientation='v', size=(10, 20), default_value=25),
  16.     sg.Slider(range=(1, 100), orientation='v', size=(10, 20), default_value=75),
  17.     sg.Slider(range=(1, 100), orientation='v', size=(10, 20), default_value=10)],
  18.     [sg.Text('_' * 100, size=(70, 1))],
  19.     [sg.Text('Wybierz katalogi: źródłowy i docelowy', size=(35, 1))],
  20.     [sg.Text('Wybierz katalog', size=(15, 1), auto_size_text=False, justification='right'), sg.InputText('Źródło'),
  21.     sg.FolderBrowse()],
  22.     [sg.Text('Docelowy katalog', size=(15, 1), auto_size_text=False, justification='right'), sg.InputText('Docelowo'),
  23.     sg.FolderBrowse()],
  24.     [sg.Submit(), sg.Cancel(), sg.SimpleButton('Dostosowany', button_color=('white', 'green'))]
  25.     ]
  26.  
  27. button, values = form.LayoutAndRead(layout)
Advertisement
Add Comment
Please, Sign In to add comment