Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkapp.app import App
- class MyDemo(App):
- def __init__(self, *args, **kwargs):
- super().__init__(*args, **kwargs)
- def main():
- defaults = {
- "page1": {
- "type": "Frame",
- "sticky": "nsew",
- "window_title": "Demo Application1",
- "auto_save": True,
- "save_size": True,
- "scrollbars": False,
- "save_position": True,
- "content": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "horizontal",
- "sashwidth": 2,
- "background": "#000000",
- "left_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "treeview": {
- "type": "Treeview",
- "rowspan": 9899,
- "column": 0,
- "label": "Pages",
- "scrollbars": "vertical",
- "items": {
- "demos": {
- "label": "Demos",
- "children": {
- "3d_demo": {
- "label": "3D Demo"
- },
- "animation_demo": {
- "label": "Animation Demo"
- },
- "animation_demo_two": {
- "label": "Animation Demo Two"
- }
- }
- },
- "statistics": {
- "label": "Statistics",
- "children": {
- "season_win_loss": {
- "label": "Season Win\\Loss"
- },
- "season_game_times": {
- "label": "Season Game Times 12345678901234567890"
- }
- }
- },
- "templates": {
- "label": "Templates",
- "children": {
- "template1": {
- "label": "Template 1"
- },
- "template2": {
- "label": "Template 2"
- },
- "template3": {
- "label": "Template 3"
- }
- }
- },
- "templates1": {
- "label": "Templates1",
- "children": {
- "template1a": {
- "label": "Template 1"
- }
- }
- },
- "templates2": {
- "label": "Templates2",
- "children": {
- "template2a": {
- "label": "Template 2"
- }
- }
- },
- "templates3": {
- "label": "Templates3",
- "children": {
- "template3a": {
- "label": "Template 4"
- }
- }
- },
- "templates4": {
- "label": "Templates4",
- "children": {
- "template4a": {
- "label": "Template 4"
- }
- }
- },
- "templates5": {
- "label": "Templates5",
- "children": {
- "template5a": {
- "label": "Template 5"
- }
- }
- },
- "templates6": {
- "label": "Templates6",
- "children": {
- "template6a": {
- "label": "Template 6"
- }
- }
- },
- "templates7": {
- "label": "Templates7",
- "children": {
- "template7a": {
- "label": "Template 7"
- }
- }
- },
- "templates8": {
- "label": "Templates8",
- "children": {
- "template8a": {
- "label": "Template 8"
- }
- }
- }
- },
- "sticky": "NSEW"
- }
- },
- "middle_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "pane": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "vertical",
- "sashwidth": 2,
- "background": "#000000",
- "top_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "pane": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "horizontal",
- "sashwidth": 2,
- "background": "#000000",
- "left_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "treeview": {
- "type": "Treeview",
- "rowspan": 9899,
- "column": 0,
- "label": "Pages",
- "scrollbars": "vertical",
- "items": {
- "demos": {
- "label": "Demos",
- "children": {
- "3d_demo": {
- "label": "3D Demo"
- },
- "animation_demo": {
- "label": "Animation Demo"
- },
- "animation_demo_two": {
- "label": "Animation Demo Two"
- }
- }
- },
- "statistics": {
- "label": "Statistics",
- "children": {
- "season_win_loss": {
- "label": "Season Win\\Loss"
- },
- "season_game_times": {
- "label": "Season Game Times 12345678901234567890"
- }
- }
- },
- "templates": {
- "label": "Templates",
- "children": {
- "template1": {
- "label": "Template 1"
- },
- "template2": {
- "label": "Template 2"
- },
- "template3": {
- "label": "Template 3"
- }
- }
- },
- "templates1": {
- "label": "Templates1",
- "children": {
- "template1a": {
- "label": "Template 1"
- }
- }
- },
- "templates2": {
- "label": "Templates2",
- "children": {
- "template2a": {
- "label": "Template 2"
- }
- }
- },
- "templates3": {
- "label": "Templates3",
- "children": {
- "template3a": {
- "label": "Template 4"
- }
- }
- },
- "templates4": {
- "label": "Templates4",
- "children": {
- "template4a": {
- "label": "Template 4"
- }
- }
- },
- "templates5": {
- "label": "Templates5",
- "children": {
- "template5a": {
- "label": "Template 5"
- }
- }
- },
- "templates6": {
- "label": "Templates6",
- "children": {
- "template6a": {
- "label": "Template 6"
- }
- }
- },
- "templates7": {
- "label": "Templates7",
- "children": {
- "template7a": {
- "label": "Template 7"
- }
- }
- },
- "templates8": {
- "label": "Templates8",
- "children": {
- "template8a": {
- "label": "Template 8"
- }
- }
- }
- },
- "sticky": "NSEW"
- }
- },
- "middle_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "pane": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "vertical",
- "sashwidth": 2,
- "background": "#000000",
- "top_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a1 ",
- "label_anchor": "w"
- },
- "entry2": {
- "type": "Entry",
- "row": 1,
- "label": "MyLabel 1a2 ",
- "label_anchor": "w"
- }
- },
- "bottom_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "pane1a1": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "horizontal",
- "sashwidth": 2,
- "background": "#000000",
- "left_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a2 ",
- "label_anchor": "w"
- }
- },
- "middle_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3a ",
- "label_anchor": "w"
- }
- },
- "right_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3 ",
- "label_anchor": "w"
- }
- }
- }
- },
- "top_pane2": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a1 ",
- "label_anchor": "w"
- }
- },
- "bottom_pane2": {
- "type": "Frame",
- "sticky": "nsew",
- "pane1a1": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "horizontal",
- "sashwidth": 2,
- "background": "#000000",
- "left_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a2 ",
- "label_anchor": "w"
- }
- },
- "middle_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3a ",
- "label_anchor": "w"
- }
- },
- "right_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3 ",
- "label_anchor": "w"
- }
- }
- }
- }
- }
- },
- "right_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1 ",
- "label_anchor": "w"
- }
- }
- }
- },
- "bottom_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "pane1a1": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "horizontal",
- "sashwidth": 2,
- "background": "#000000",
- "left_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a2 ",
- "label_anchor": "w"
- }
- },
- "middle_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3a ",
- "label_anchor": "w"
- }
- },
- "right_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3 ",
- "label_anchor": "w"
- }
- }
- }
- },
- "top_pane2": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a1 ",
- "label_anchor": "w"
- }
- },
- "bottom_pane2": {
- "type": "Frame",
- "sticky": "nsew",
- "pane1a1": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "horizontal",
- "sashwidth": 2,
- "background": "#000000",
- "left_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a2 ",
- "label_anchor": "w"
- }
- },
- "middle_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3a ",
- "label_anchor": "w"
- }
- },
- "right_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3 ",
- "label_anchor": "w"
- }
- }
- }
- }
- }
- },
- "right_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1 ",
- "label_anchor": "w"
- }
- }
- },
- "sep1": {
- "type": "Separator",
- "row": 1,
- "columnspan": 9900,
- "orient": "horizontal",
- "sticky": "EW"
- },
- "buttons": {
- "type": "Frame",
- "row": 9900,
- "columnspan": 9900,
- "sticky": "ew",
- "set_defaults": {
- "type": "Button",
- "row": 1,
- "column": 1,
- "text": "Defaults",
- "padx": [0, 5],
- "sticky": "E"
- },
- "apply": {
- "type": "Button",
- "row": 1,
- "column": 2,
- "padx": [0, 5],
- "text": "Apply",
- "sticky": "E"
- },
- "save": {
- "type": "Button",
- "row": 1,
- "column": 3,
- "padx": [0, 5],
- "text": "Save",
- "sticky": "E"
- },
- "cancel": {
- "type": "Button",
- "row": 1,
- "column": 4,
- "padx": [0, 5],
- "text": "Cancel",
- "sticky": "E"
- },
- "exit": {
- "type": "Button",
- "row": 1,
- "column": 5,
- "text": "Exit",
- "sticky": "E"
- }
- }
- },
- "page2": {
- "type": "Frame",
- "sticky": "nsew",
- "window_title": "Demo Application2",
- "auto_save": True,
- "save_size": True,
- "scrollbars": False,
- "save_position": True,
- "content": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "horizontal",
- "sashwidth": 2,
- "background": "#000000",
- "left_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "treeview": {
- "type": "Treeview",
- "rowspan": 9899,
- "column": 0,
- "label": "Pages",
- "scrollbars": "vertical",
- "items": {
- "demos": {
- "label": "Demos",
- "children": {
- "3d_demo": {
- "label": "3D Demo"
- },
- "animation_demo": {
- "label": "Animation Demo"
- },
- "animation_demo_two": {
- "label": "Animation Demo Two"
- }
- }
- },
- "statistics": {
- "label": "Statistics",
- "children": {
- "season_win_loss": {
- "label": "Season Win\\Loss"
- },
- "season_game_times": {
- "label": "Season Game Times 12345678901234567890"
- }
- }
- },
- "templates": {
- "label": "Templates",
- "children": {
- "template1": {
- "label": "Template 1"
- },
- "template2": {
- "label": "Template 2"
- },
- "template3": {
- "label": "Template 3"
- }
- }
- },
- "templates1": {
- "label": "Templates1",
- "children": {
- "template1a": {
- "label": "Template 1"
- }
- }
- },
- "templates2": {
- "label": "Templates2",
- "children": {
- "template2a": {
- "label": "Template 2"
- }
- }
- },
- "templates3": {
- "label": "Templates3",
- "children": {
- "template3a": {
- "label": "Template 4"
- }
- }
- },
- "templates4": {
- "label": "Templates4",
- "children": {
- "template4a": {
- "label": "Template 4"
- }
- }
- },
- "templates5": {
- "label": "Templates5",
- "children": {
- "template5a": {
- "label": "Template 5"
- }
- }
- },
- "templates6": {
- "label": "Templates6",
- "children": {
- "template6a": {
- "label": "Template 6"
- }
- }
- },
- "templates7": {
- "label": "Templates7",
- "children": {
- "template7a": {
- "label": "Template 7"
- }
- }
- },
- "templates8": {
- "label": "Templates8",
- "children": {
- "template8a": {
- "label": "Template 8"
- }
- }
- }
- },
- "sticky": "NSEW"
- }
- },
- "middle_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "pane": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "vertical",
- "sashwidth": 2,
- "background": "#000000",
- "top_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "pane": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "horizontal",
- "sashwidth": 2,
- "background": "#000000",
- "left_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "treeview": {
- "type": "Treeview",
- "rowspan": 9899,
- "column": 0,
- "label": "Pages",
- "scrollbars": "vertical",
- "items": {
- "demos": {
- "label": "Demos",
- "children": {
- "3d_demo": {
- "label": "3D Demo"
- },
- "animation_demo": {
- "label": "Animation Demo"
- },
- "animation_demo_two": {
- "label": "Animation Demo Two"
- }
- }
- },
- "statistics": {
- "label": "Statistics",
- "children": {
- "season_win_loss": {
- "label": "Season Win\\Loss"
- },
- "season_game_times": {
- "label": "Season Game Times 12345678901234567890"
- }
- }
- },
- "templates": {
- "label": "Templates",
- "children": {
- "template1": {
- "label": "Template 1"
- },
- "template2": {
- "label": "Template 2"
- },
- "template3": {
- "label": "Template 3"
- }
- }
- },
- "templates1": {
- "label": "Templates1",
- "children": {
- "template1a": {
- "label": "Template 1"
- }
- }
- },
- "templates2": {
- "label": "Templates2",
- "children": {
- "template2a": {
- "label": "Template 2"
- }
- }
- },
- "templates3": {
- "label": "Templates3",
- "children": {
- "template3a": {
- "label": "Template 4"
- }
- }
- },
- "templates4": {
- "label": "Templates4",
- "children": {
- "template4a": {
- "label": "Template 4"
- }
- }
- },
- "templates5": {
- "label": "Templates5",
- "children": {
- "template5a": {
- "label": "Template 5"
- }
- }
- },
- "templates6": {
- "label": "Templates6",
- "children": {
- "template6a": {
- "label": "Template 6"
- }
- }
- },
- "templates7": {
- "label": "Templates7",
- "children": {
- "template7a": {
- "label": "Template 7"
- }
- }
- },
- "templates8": {
- "label": "Templates8",
- "children": {
- "template8a": {
- "label": "Template 8"
- }
- }
- }
- },
- "sticky": "NSEW"
- }
- },
- "middle_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "pane": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "vertical",
- "sashwidth": 2,
- "background": "#000000",
- "top_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a1 ",
- "label_anchor": "w"
- },
- "entry2": {
- "type": "Entry",
- "row": 1,
- "label": "MyLabel 1a2 ",
- "label_anchor": "w"
- }
- },
- "bottom_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "pane1a1": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "horizontal",
- "sashwidth": 2,
- "background": "#000000",
- "left_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a2 ",
- "label_anchor": "w"
- }
- },
- "middle_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3a ",
- "label_anchor": "w"
- }
- },
- "right_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3 ",
- "label_anchor": "w"
- }
- }
- }
- },
- "top_pane2": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a1 ",
- "label_anchor": "w"
- }
- },
- "bottom_pane2": {
- "type": "Frame",
- "sticky": "nsew",
- "pane1a1": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "horizontal",
- "sashwidth": 2,
- "background": "#000000",
- "left_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a2 ",
- "label_anchor": "w"
- }
- },
- "middle_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3a ",
- "label_anchor": "w"
- }
- },
- "right_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3 ",
- "label_anchor": "w"
- }
- }
- }
- }
- }
- },
- "right_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1 ",
- "label_anchor": "w"
- }
- }
- }
- },
- "bottom_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "pane1a1": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "horizontal",
- "sashwidth": 2,
- "background": "#000000",
- "left_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a2 ",
- "label_anchor": "w"
- }
- },
- "middle_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3a ",
- "label_anchor": "w"
- }
- },
- "right_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3 ",
- "label_anchor": "w"
- }
- }
- }
- },
- "top_pane2": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a1 ",
- "label_anchor": "w"
- }
- },
- "bottom_pane2": {
- "type": "Frame",
- "sticky": "nsew",
- "pane1a1": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "horizontal",
- "sashwidth": 2,
- "background": "#000000",
- "left_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a2 ",
- "label_anchor": "w"
- }
- },
- "middle_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3a ",
- "label_anchor": "w"
- }
- },
- "right_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3 ",
- "label_anchor": "w"
- }
- }
- }
- }
- }
- },
- "right_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1 ",
- "label_anchor": "w"
- }
- }
- },
- "sep1": {
- "type": "Separator",
- "row": 1,
- "columnspan": 9900,
- "orient": "horizontal",
- "sticky": "EW"
- },
- "buttons": {
- "type": "Frame",
- "row": 9900,
- "columnspan": 9900,
- "sticky": "ew",
- "set_defaults": {
- "type": "Button",
- "row": 1,
- "column": 1,
- "text": "Defaults",
- "padx": [0, 5],
- "sticky": "E"
- },
- "apply": {
- "type": "Button",
- "row": 1,
- "column": 2,
- "padx": [0, 5],
- "text": "Apply",
- "sticky": "E"
- },
- "save": {
- "type": "Button",
- "row": 1,
- "column": 3,
- "padx": [0, 5],
- "text": "Save",
- "sticky": "E"
- },
- "cancel": {
- "type": "Button",
- "row": 1,
- "column": 4,
- "padx": [0, 5],
- "text": "Cancel",
- "sticky": "E"
- },
- "exit": {
- "type": "Button",
- "row": 1,
- "column": 5,
- "text": "Exit",
- "sticky": "E"
- }
- }
- },
- "page3": {
- "type": "Frame",
- "sticky": "nsew",
- "window_title": "Demo Application3",
- "auto_save": True,
- "save_size": True,
- "scrollbars": False,
- "save_position": True,
- "content": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "horizontal",
- "sashwidth": 2,
- "background": "#000000",
- "left_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "treeview": {
- "type": "Treeview",
- "rowspan": 9899,
- "column": 0,
- "label": "Pages",
- "scrollbars": "vertical",
- "items": {
- "demos": {
- "label": "Demos",
- "children": {
- "3d_demo": {
- "label": "3D Demo"
- },
- "animation_demo": {
- "label": "Animation Demo"
- },
- "animation_demo_two": {
- "label": "Animation Demo Two"
- }
- }
- },
- "statistics": {
- "label": "Statistics",
- "children": {
- "season_win_loss": {
- "label": "Season Win\\Loss"
- },
- "season_game_times": {
- "label": "Season Game Times 12345678901234567890"
- }
- }
- },
- "templates": {
- "label": "Templates",
- "children": {
- "template1": {
- "label": "Template 1"
- },
- "template2": {
- "label": "Template 2"
- },
- "template3": {
- "label": "Template 3"
- }
- }
- },
- "templates1": {
- "label": "Templates1",
- "children": {
- "template1a": {
- "label": "Template 1"
- }
- }
- },
- "templates2": {
- "label": "Templates2",
- "children": {
- "template2a": {
- "label": "Template 2"
- }
- }
- },
- "templates3": {
- "label": "Templates3",
- "children": {
- "template3a": {
- "label": "Template 4"
- }
- }
- },
- "templates4": {
- "label": "Templates4",
- "children": {
- "template4a": {
- "label": "Template 4"
- }
- }
- },
- "templates5": {
- "label": "Templates5",
- "children": {
- "template5a": {
- "label": "Template 5"
- }
- }
- },
- "templates6": {
- "label": "Templates6",
- "children": {
- "template6a": {
- "label": "Template 6"
- }
- }
- },
- "templates7": {
- "label": "Templates7",
- "children": {
- "template7a": {
- "label": "Template 7"
- }
- }
- },
- "templates8": {
- "label": "Templates8",
- "children": {
- "template8a": {
- "label": "Template 8"
- }
- }
- }
- },
- "sticky": "NSEW"
- }
- },
- "middle_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "pane": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "vertical",
- "sashwidth": 2,
- "background": "#000000",
- "top_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "pane": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "horizontal",
- "sashwidth": 2,
- "background": "#000000",
- "left_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "treeview": {
- "type": "Treeview",
- "rowspan": 9899,
- "column": 0,
- "label": "Pages",
- "scrollbars": "vertical",
- "items": {
- "demos": {
- "label": "Demos",
- "children": {
- "3d_demo": {
- "label": "3D Demo"
- },
- "animation_demo": {
- "label": "Animation Demo"
- },
- "animation_demo_two": {
- "label": "Animation Demo Two"
- }
- }
- },
- "statistics": {
- "label": "Statistics",
- "children": {
- "season_win_loss": {
- "label": "Season Win\\Loss"
- },
- "season_game_times": {
- "label": "Season Game Times 12345678901234567890"
- }
- }
- },
- "templates": {
- "label": "Templates",
- "children": {
- "template1": {
- "label": "Template 1"
- },
- "template2": {
- "label": "Template 2"
- },
- "template3": {
- "label": "Template 3"
- }
- }
- },
- "templates1": {
- "label": "Templates1",
- "children": {
- "template1a": {
- "label": "Template 1"
- }
- }
- },
- "templates2": {
- "label": "Templates2",
- "children": {
- "template2a": {
- "label": "Template 2"
- }
- }
- },
- "templates3": {
- "label": "Templates3",
- "children": {
- "template3a": {
- "label": "Template 4"
- }
- }
- },
- "templates4": {
- "label": "Templates4",
- "children": {
- "template4a": {
- "label": "Template 4"
- }
- }
- },
- "templates5": {
- "label": "Templates5",
- "children": {
- "template5a": {
- "label": "Template 5"
- }
- }
- },
- "templates6": {
- "label": "Templates6",
- "children": {
- "template6a": {
- "label": "Template 6"
- }
- }
- },
- "templates7": {
- "label": "Templates7",
- "children": {
- "template7a": {
- "label": "Template 7"
- }
- }
- },
- "templates8": {
- "label": "Templates8",
- "children": {
- "template8a": {
- "label": "Template 8"
- }
- }
- }
- },
- "sticky": "NSEW"
- }
- },
- "middle_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "pane": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "vertical",
- "sashwidth": 2,
- "background": "#000000",
- "top_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a1 ",
- "label_anchor": "w"
- },
- "entry2": {
- "type": "Entry",
- "row": 1,
- "label": "MyLabel 1a2 ",
- "label_anchor": "w"
- }
- },
- "bottom_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "pane1a1": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "horizontal",
- "sashwidth": 2,
- "background": "#000000",
- "left_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a2 ",
- "label_anchor": "w"
- }
- },
- "middle_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3a ",
- "label_anchor": "w"
- }
- },
- "right_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3 ",
- "label_anchor": "w"
- }
- }
- }
- },
- "top_pane2": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a1 ",
- "label_anchor": "w"
- }
- },
- "bottom_pane2": {
- "type": "Frame",
- "sticky": "nsew",
- "pane1a1": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "horizontal",
- "sashwidth": 2,
- "background": "#000000",
- "left_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a2 ",
- "label_anchor": "w"
- }
- },
- "middle_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3a ",
- "label_anchor": "w"
- }
- },
- "right_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3 ",
- "label_anchor": "w"
- }
- }
- }
- }
- }
- },
- "right_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1 ",
- "label_anchor": "w"
- }
- }
- }
- },
- "bottom_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "pane1a1": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "horizontal",
- "sashwidth": 2,
- "background": "#000000",
- "left_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a2 ",
- "label_anchor": "w"
- }
- },
- "middle_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3a ",
- "label_anchor": "w"
- }
- },
- "right_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3 ",
- "label_anchor": "w"
- }
- }
- }
- },
- "top_pane2": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a1 ",
- "label_anchor": "w"
- }
- },
- "bottom_pane2": {
- "type": "Frame",
- "sticky": "nsew",
- "pane1a1": {
- "type": "PanedWindow",
- "sticky": "nsew",
- "orient": "horizontal",
- "sashwidth": 2,
- "background": "#000000",
- "left_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a2 ",
- "label_anchor": "w"
- }
- },
- "middle_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3a ",
- "label_anchor": "w"
- }
- },
- "right_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1a3 ",
- "label_anchor": "w"
- }
- }
- }
- }
- }
- },
- "right_pane": {
- "type": "Frame",
- "sticky": "nsew",
- "entry1": {
- "type": "Entry",
- "row": 0,
- "label": "MyLabel 1 ",
- "label_anchor": "w"
- }
- }
- },
- "sep1": {
- "type": "Separator",
- "row": 1,
- "columnspan": 9900,
- "orient": "horizontal",
- "sticky": "EW"
- },
- "buttons": {
- "type": "Frame",
- "row": 9900,
- "columnspan": 9900,
- "sticky": "ew",
- "set_defaults": {
- "type": "Button",
- "row": 1,
- "column": 1,
- "text": "Defaults",
- "padx": [0, 5],
- "sticky": "E"
- },
- "apply": {
- "type": "Button",
- "row": 1,
- "column": 2,
- "padx": [0, 5],
- "text": "Apply",
- "sticky": "E"
- },
- "save": {
- "type": "Button",
- "row": 1,
- "column": 3,
- "padx": [0, 5],
- "text": "Save",
- "sticky": "E"
- },
- "cancel": {
- "type": "Button",
- "row": 1,
- "column": 4,
- "padx": [0, 5],
- "text": "Cancel",
- "sticky": "E"
- },
- "exit": {
- "type": "Button",
- "row": 1,
- "column": 5,
- "text": "Exit",
- "sticky": "E"
- }
- }
- }
- }
- MyDemo(defaults=defaults).mainloop()
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement