Advertisement
Uno-Dan

Untitled

Jun 30th, 2018
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.91 KB | None | 0 0
  1.  
  2.             config = (
  3.                 ('root', None, 'Frame', (
  4.                     ('edit', 'Edit', 'Combobox', None, 0, 0, edit_combobox_width, ['Default Settings']+wm.pages(), 0),
  5.                     ('menubar', 'Menubar', 'LabelFrame', (
  6.                         ('font', 'Font', 'LabelFrame', (
  7.                             ('family_frame', None, 'Frame', (
  8.                                 ('font_family', 'Family', 'Combobox', menubar_family, 0, 0, font_combobox_width,
  9.                                     self.system_fonts, self.system_fonts.index(mb.font.actual('family'))),
  10.                                 ('font_picker', None, 'FontPicker', menubar_fontpicker, 0, 1, 0, mb.font),
  11.                             ), 0, 0, 5),
  12.  
  13.                             ('size_frame', None, 'Frame', (
  14.                                 ('font_size', 'Size', 'Combobox', menubar_size, 0, 0, size_combobox_width,
  15.                                     list(range(MIN_FONT_SIZE, MAX_FONT_SIZE+1)), int(mb.font.actual('size'))-1),
  16.                             ), 1, 0, 5),
  17.  
  18.                             ('checkboxes_frame', None, 'Frame', (
  19.                                 ('font_weight', 'Bold', 'Checkbutton',
  20.                                     menubar_weight, 0, 0, 'bold', 'normal', 'normal'),
  21.                                 ('font_slant', 'Italic', 'Checkbutton',
  22.                                     menubar_slant, 0, 1, 'italic', 'roman', 'roman'),
  23.                                 ('font_underline', 'Underline', 'Checkbutton',
  24.                                     menubar_underline, 0, 2, 1, 0, 0),
  25.                                 ('font_overstrike', 'Overstrike', 'Checkbutton',
  26.                                     menubar_overstrike, 0, 3, 1, 0, 0),
  27.                             ), 2, 0, 5),
  28.                         ), 0, 0, 5, (5, 0)),
  29.  
  30.                         ('borders', 'Borders', 'LabelFrame', (
  31.                             ('borders_frame', None, 'Frame', (
  32.                                 ('menubar_bd', 'Menubar Border Width', 'Combobox',
  33.                                     menubar_bd, 0, 0, 4, list(range(0, 26)), 0),
  34.                                 ('menubar_relief', 'Menubar Relief', 'Combobox',
  35.                                     menubar_relief, 0, 1, 6, ('raised', 'flat', 'sunken', 'groove', 'ridge'), 0),
  36.                                 ('submenu_bd', 'Submenu Border Width', 'Combobox',
  37.                                     submenu_bd, 1, 0, 4, list(range(0, 26)), 0),
  38.                                 ('submenu_relief', 'Submenu Relief', 'Combobox',
  39.                                     submenu_relief, 1, 1, 6, ('raised', 'flat', 'sunken', 'groove', 'ridge'), 0),
  40.                             ), 0, 0, 5),
  41.  
  42.                         ), 1, 0, 5, (5, 0)),
  43.  
  44.                         ('colors', 'Colors', 'LabelFrame', (
  45.                             ('colors_frame', None, 'Frame', (
  46.                                 ('fg', 'Foreground Color', 'ColorPicker',
  47.                                     menubar_fg_color, 0, 0, 8, mb.cget('fg')),
  48.                                 ('bg', 'Background Color', 'ColorPicker',
  49.                                     menubar_bg_color, 0, 1, 8, mb.cget('bg')),
  50.                                 ('active_fg_color', 'Active Foreground Color', 'ColorPicker',
  51.                                     menubar_active_fg_color, 1, 0, 8, mb.cget('activeforeground')),
  52.                                 ('active_bg_color', 'Active Background Color', 'ColorPicker',
  53.                                     menubar_active_bg_color, 1, 1, 8, mb.cget('activebackground')),
  54.                             ), 0, 0, 5),
  55.                         ), 2, 0, 5, (5, 0)),
  56.  
  57.                         ('buttons', None, 'Frame', (
  58.                             ('load_defaults', '', 'Button', restore_menubar_settings, 6, 1, 10, 'Load Defaults'),
  59.                         ), 3, 0, 0, (15, 10)),
  60.                     ), 1, 0),
  61.                 ), 0, 0),
  62.             )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement