Completely new set of materials for GUI class! Thanks Tony!!
This commit is contained in:
parent
ee0765c345
commit
8f7356f425
53 changed files with 1909 additions and 903 deletions
|
@ -1,3 +1,4 @@
|
|||
|
||||
#PySimple examples (v 3.8)
|
||||
#Tony Crewe
|
||||
#Sep 2018
|
||||
|
@ -19,7 +20,7 @@ layout = [
|
|||
sg.ReadButton('Add Data', font = ('Calibri', 12, 'bold'))],
|
||||
[sg.Text('_'*40)],
|
||||
[sg.Text(' Race Club Name Time')],
|
||||
[sg.Multiline(size =(40,6),key = 'Multiline')]
|
||||
[sg.Multiline(size =(40,6),key = '_multiline_')]
|
||||
]
|
||||
|
||||
window = sg.Window('Enter & Display Data').Layout(layout)
|
||||
|
@ -34,7 +35,7 @@ while True:
|
|||
S = S + ['{:^9s}{:<11s}{:<10s}{:>8s}'.format(value[0],value[1],value[2],value[3])]
|
||||
for s in S:
|
||||
string = string + s + '\n'
|
||||
window.FindElement('Multiline').Update(string)
|
||||
window.FindElement('_multiline_').Update(string)
|
||||
string =''
|
||||
else:
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue