Skip to content

Instantly share code, notes, and snippets.

@MikeTheWatchGuy
Created October 18, 2018 02:09
Show Gist options
  • Select an option

  • Save MikeTheWatchGuy/2b605b72a39e599f2991c24e0d3110f9 to your computer and use it in GitHub Desktop.

Select an option

Save MikeTheWatchGuy/2b605b72a39e599f2991c24e0d3110f9 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import sys
if sys.version_info[0] >= 3:
import PySimpleGUI as sg
else:
import PySimpleGUI27 as sg
sg.ChangeLookAndFeel('Black')
layout = [[ sg.Text('B.O.L.ephant',justification='left', size=(15,1), font=('Times 25')) ],
[sg.Text('HBL/HAWB', size=(12,1)), sg.In(key='_hbl_')],
[sg.Text('Shpper#', size=(12,1)), sg.In(key='_ship_')],
[sg.Text('Origin', size=(12,1)), sg.In(key='_origin_')],
[sg.Text('Pcs', size=(12,1)), sg.In(key='_pcs_')],
[sg.Text('Description', size=(12,1)), sg.In(key='_desc_')],
[sg.Text('Weight(kg)', size=(12,1)), sg.In(key='_weight_')],
[sg.Text('Length(A)', size=(12,1)), sg.In(key='_l_')],
[sg.Text('Width(A)', size=(12,1)), sg.In(key='_w_')],
[sg.Text('Height(A)', size=(12,1)), sg.In(key='_h_')],
[sg.Text('PortDep (O)', size=(12,1)), sg.In(key='_dep_')],
[sg.Text('PortArr (O)', size=(12,1)), sg.In(key='_arr_')],
[sg.Text('Prefix (A)', size=(12,1)), sg.In(key='_prefix_')],
[sg.Text('_'*12)],
[sg.Text('MBL/MAWB', size=(12,1)), sg.In(key='_mbl_')],
[sg.Text('ETD (A)', size=(12,1)), sg.In(key='_etd_')],
[sg.Text('ETA', size=(12,1)), sg.In(key='_eta_')],
[],
[ sg.Button('House Air'), sg.Button('House Ocean'), sg.Button('Full Air'), sg.Button('Full Ocean')]]
window = sg.Window('B.O.L.ephant',
default_element_size=(30,1),
text_justification='r',
auto_size_text=False,
).Layout(layout)
event, values = window.Read()
@MikeTheWatchGuy
Copy link
Copy Markdown
Author

snag-0115

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment