pysimplegui

Hiding GUI elements dynamically using radio button in PySimpleGUIQt

两盒软妹~` 提交于 2020-04-11 07:06:06
问题 I used below approach from this post to hide GUI elements which works very well: import PySimpleGUIQt as sg layout = [ [sg.Checkbox('Module Selection', default = False, change_submits= True, key = '_checkbox1_', size=(15,1)), sg.Text('Module(.xlsx)', size = (15,0.5), auto_size_text = True, justification = 'right', key = '_moduletext_')] ] window = sg.Window('A2L', layout, icon = u"icon\\index.ico", auto_size_buttons = False).Finalize() window.Element('_moduletext_').Update(visible = False)

Hiding GUI elements dynamically using radio button in PySimpleGUIQt

让人想犯罪 __ 提交于 2020-04-11 07:03:11
问题 I used below approach from this post to hide GUI elements which works very well: import PySimpleGUIQt as sg layout = [ [sg.Checkbox('Module Selection', default = False, change_submits= True, key = '_checkbox1_', size=(15,1)), sg.Text('Module(.xlsx)', size = (15,0.5), auto_size_text = True, justification = 'right', key = '_moduletext_')] ] window = sg.Window('A2L', layout, icon = u"icon\\index.ico", auto_size_buttons = False).Finalize() window.Element('_moduletext_').Update(visible = False)