block_sound = False win.after(50, reset_sfx) widgets['titleLabel'].configure(text='Settings for "' + item_name + '"') win.title('BEE2 - ' + item_name) win.transient(master=parent) win.deiconify() win.lift(parent) win.grab_set() win.geometry('+' + str(parent.winfo_rootx() - 30) + '+' + str(parent.winfo_rooty() - win.winfo_reqheight() - 30)) # load the window if directly executing this file if __name__ == '__main__': TK_ROOT.geometry('+250+250') def callback(vals): for key, value in sorted(vals.items()): print(key + ' = ' + repr(value)) init(callback) all_vals = { 'startup': '1', 'toplevel': '4', 'bottomlevel': '3', 'angledpanelanimation': 'ramp_45_deg_open', 'startenabled': '1', 'startreversed': '0', 'startdeployed': '1', 'startactive': '1',
win.after(50, reset_sfx) widgets['titleLabel'].configure(text='Settings for "' + item_name + '"') win.title('BEE2 - ' + item_name) win.transient(master=parent) win.deiconify() win.lift(parent) win.grab_set() win.geometry( '+' + str(parent.winfo_rootx() - 30) + '+' + str(parent.winfo_rooty() - win.winfo_reqheight() - 30) ) # load the window if directly executing this file if __name__ == '__main__': TK_ROOT.geometry('+250+250') def callback(vals): for key, value in sorted(vals.items()): print(key + ' = ' + repr(value)) init(callback) all_vals = { 'startup': '1', 'toplevel': '4', 'bottomlevel': '3', 'angledpanelanimation': 'ramp_45_deg_open', 'startenabled': '1', 'startreversed': '0', 'startdeployed': '1', 'startactive': '1',
break else: # Not found self.suggested = None if self.suggested is not None: self.context_menu.entryconfig( self.item_list.index(self.suggested), font=self.sugg_font) self.set_disp() # Update the textbox if needed self.flow_items() # Refresh if __name__ == '__main__': # test the window if directly executing this file from tk_root import TK_ROOT lbl = ttk.Label(TK_ROOT, text="I am a demo window.") lbl.grid() TK_ROOT.geometry("+500+500") test_list = [ Item( "SKY_BLACK", "Black", long_name="Darkness", icon="skies/black", authors=["Valve"], desc=[ ('line', 'Pure black darkness. Nothing to see here.'), ], ), Item( "SKY_BTS", "BTS",
self.suggested = item break else: # Not found self.suggested = None if self.suggested is not None: self.context_menu.entryconfig( self.item_list.index(self.suggested), font=self.sugg_font) self.set_disp() # Update the textbox if needed self.flow_items() # Refresh if __name__ == '__main__': # test the window if directly executing this file lbl = ttk.Label(TK_ROOT, text="I am a demo window.") lbl.grid() TK_ROOT.geometry("+500+500") test_list = [ Item( "SKY_BLACK", "Black", long_name="Darkness", icon="skies/black", authors=["Valve"], desc=[ ('line', 'Pure black darkness. Nothing to see here.'), ], ), Item( "SKY_BTS", "BTS",