Advertisement
Uno-Dan

Dict structure

Aug 19th, 2019
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.39 KB | None | 0 0
  1. ########################################################################################################################
  2. #    File: setup.py
  3. #  Author: Dan Huckson, https://github.com/unodan
  4. #    Date: 2019-08-10
  5. ########################################################################################################################
  6. import tkinter as tk
  7.  
  8. setup = {
  9.     'type': 'Frame',
  10.     'settings': [
  11.         ('grid', (
  12.             ('padx', 10),
  13.             ('pady', 10),
  14.             ('row', 0),
  15.             ('sticky', tk.EW),
  16.         )),
  17.         ('options', (
  18.             ('padding', 10),
  19.         )),
  20.         ('configure', (
  21.             ('background', 'blue'),
  22.         )),
  23.     ],
  24.     'left': {
  25.         'type': 'Frame',
  26.         'settings': [
  27.             ('grid', (
  28.                 ('sticky', tk.EW),
  29.             )),
  30.             ('options', (
  31.                 ('padding', 10),
  32.             )),
  33.             ('configure', (
  34.                 ('background', 'teal'),
  35.             )),
  36.         ],
  37.     },
  38.     'right': {
  39.         'type': 'Frame',
  40.         'settings': [
  41.             ('grid', (
  42.                 ('row', 0),
  43.                 ('column', 1),
  44.                 ('sticky', tk.EW),
  45.             )),
  46.             ('options', (
  47.                 ('padding', 10),
  48.             )),
  49.             ('configure', (
  50.                 ('background', 'lime'),
  51.             )),
  52.         ],
  53.     },
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement