@@ -1113,8 +1113,8 @@ def gui(devices):
11131113 [sg .Text ("Detected Devices" )],
11141114 ] + device_checkboxes + [
11151115 [sg .HorizontalSeparator ()],
1116- [sg .Text ("Bootloader " )],
1117- [sg .Button ("Bootloader" )],
1116+ [sg .Text ("Device Control " )],
1117+ [sg .Button ("Bootloader" ), sg . Button ( "Sleep" ), sg . Button ( "Wake" ) ],
11181118
11191119 [sg .HorizontalSeparator ()],
11201120 [sg .Text ("Brightness" )],
@@ -1146,11 +1146,17 @@ def gui(devices):
11461146 ],
11471147
11481148 [sg .HorizontalSeparator ()],
1149- [sg .Text ("Black&White Image" )],
1150- [sg .Button ("Send stripe.gif" , k = '-SEND-BL-IMAGE-' )],
1151-
1152- [sg .Text ("Greyscale Image" )],
1153- [sg .Button ("Send greyscale.gif" , k = '-SEND-GREY-IMAGE-' )],
1149+ [
1150+ sg .Column ([
1151+ [sg .Text ("Black&White Image" )],
1152+ [sg .Button ("Send stripe.gif" , k = '-SEND-BL-IMAGE-' )]
1153+ ]),
1154+ sg .VSeperator (),
1155+ sg .Column ([
1156+ [sg .Text ("Greyscale Image" )],
1157+ [sg .Button ("Send greyscale.gif" , k = '-SEND-GREY-IMAGE-' )]
1158+ ])
1159+ ],
11541160
11551161 [sg .HorizontalSeparator ()],
11561162 [sg .Text ("Display Current Time" )],
@@ -1160,11 +1166,18 @@ def gui(devices):
11601166 ],
11611167
11621168 [sg .HorizontalSeparator ()],
1163- [sg .Text ("Custom Text" )],
1164- [sg .Input (k = '-CUSTOM-TEXT-' , s = 7 ), sg .Button ("Show" , k = 'SEND-CUSTOM-TEXT' )],
1169+ [
1170+ sg .Column ([
1171+ [sg .Text ("Custom Text" )],
1172+ [sg .Input (k = '-CUSTOM-TEXT-' , s = 7 ), sg .Button ("Show" , k = 'SEND-CUSTOM-TEXT' )],
1173+ ]),
1174+ sg .VSeperator (),
1175+ sg .Column ([
1176+ [sg .Text ("Display Text with Symbols" )],
1177+ [sg .Button ("Send '2 5 degC thunder'" , k = '-SEND-TEXT-' )],
1178+ ])
1179+ ],
11651180
1166- [sg .Text ("Display Text with Symbols" )],
1167- [sg .Button ("Send '2 5 degC thunder'" , k = '-SEND-TEXT-' )],
11681181
11691182 # TODO
11701183 # [sg.Text("Play Snake")],
@@ -1176,9 +1189,6 @@ def gui(devices):
11761189 sg .Button ("Start random equalizer" , k = '-RANDOM-EQ-' ),
11771190 sg .Button ("Stop" , k = '-STOP-EQ-' )
11781191 ],
1179-
1180- [sg .Text ("Sleep" )],
1181- [sg .Button ("Sleep" ), sg .Button ("Wake" )],
11821192 # [sg.Button("Panic")]
11831193 ]
11841194 window = sg .Window ("LED Matrix Control" , layout )
0 commit comments