Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- config = (
- ('root', None, 'Frame', (
- ('edit', 'Edit', 'Combobox', None, 0, 0, edit_combobox_width, ['Default Settings']+wm.pages(), 0),
- ('menubar', 'Menubar', 'LabelFrame', (
- ('font', 'Font', 'LabelFrame', (
- ('family_frame', None, 'Frame', (
- ('font_family', 'Family', 'Combobox', menubar_family, 0, 0, font_combobox_width,
- self.system_fonts, self.system_fonts.index(mb.font.actual('family'))),
- ('font_picker', None, 'FontPicker', menubar_fontpicker, 0, 1, 0, mb.font),
- ), 0, 0, 5),
- ('size_frame', None, 'Frame', (
- ('font_size', 'Size', 'Combobox', menubar_size, 0, 0, size_combobox_width,
- list(range(MIN_FONT_SIZE, MAX_FONT_SIZE+1)), int(mb.font.actual('size'))-1),
- ), 1, 0, 5),
- ('checkboxes_frame', None, 'Frame', (
- ('font_weight', 'Bold', 'Checkbutton',
- menubar_weight, 0, 0, 'bold', 'normal', 'normal'),
- ('font_slant', 'Italic', 'Checkbutton',
- menubar_slant, 0, 1, 'italic', 'roman', 'roman'),
- ('font_underline', 'Underline', 'Checkbutton',
- menubar_underline, 0, 2, 1, 0, 0),
- ('font_overstrike', 'Overstrike', 'Checkbutton',
- menubar_overstrike, 0, 3, 1, 0, 0),
- ), 2, 0, 5),
- ), 0, 0, 5, (5, 0)),
- ('borders', 'Borders', 'LabelFrame', (
- ('borders_frame', None, 'Frame', (
- ('menubar_bd', 'Menubar Border Width', 'Combobox',
- menubar_bd, 0, 0, 4, list(range(0, 26)), 0),
- ('menubar_relief', 'Menubar Relief', 'Combobox',
- menubar_relief, 0, 1, 6, ('raised', 'flat', 'sunken', 'groove', 'ridge'), 0),
- ('submenu_bd', 'Submenu Border Width', 'Combobox',
- submenu_bd, 1, 0, 4, list(range(0, 26)), 0),
- ('submenu_relief', 'Submenu Relief', 'Combobox',
- submenu_relief, 1, 1, 6, ('raised', 'flat', 'sunken', 'groove', 'ridge'), 0),
- ), 0, 0, 5),
- ), 1, 0, 5, (5, 0)),
- ('colors', 'Colors', 'LabelFrame', (
- ('colors_frame', None, 'Frame', (
- ('fg', 'Foreground Color', 'ColorPicker',
- menubar_fg_color, 0, 0, 8, mb.cget('fg')),
- ('bg', 'Background Color', 'ColorPicker',
- menubar_bg_color, 0, 1, 8, mb.cget('bg')),
- ('active_fg_color', 'Active Foreground Color', 'ColorPicker',
- menubar_active_fg_color, 1, 0, 8, mb.cget('activeforeground')),
- ('active_bg_color', 'Active Background Color', 'ColorPicker',
- menubar_active_bg_color, 1, 1, 8, mb.cget('activebackground')),
- ), 0, 0, 5),
- ), 2, 0, 5, (5, 0)),
- ('buttons', None, 'Frame', (
- ('load_defaults', '', 'Button', restore_menubar_settings, 6, 1, 10, 'Load Defaults'),
- ), 3, 0, 0, (15, 10)),
- ), 1, 0),
- ), 0, 0),
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement