/usr/share/pyshared/wxglade/configUI.py is in python-wxglade 0.6.8-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | #!/usr/bin/env python
# -*- coding: ISO-8859-15 -*-
#
# generated by wxGlade 5a9daca7f1cd+ on Sun Mar 31 10:51:16 2013
#
import wx
# begin wxGlade: dependencies
import gettext
# end wxGlade
# begin wxGlade: extracode
import common
import os
_icon_path = os.path.join(common.icons_path, 'icon.xpm')
# end wxGlade
class wxGladePreferencesUI(wx.Dialog):
def __init__(self, *args, **kwds):
# begin wxGlade: wxGladePreferencesUI.__init__
kwds["style"] = wx.DEFAULT_DIALOG_STYLE
wx.Dialog.__init__(self, *args, **kwds)
self.notebook_1 = wx.Notebook(self, wx.ID_ANY, style=0)
self.notebook_1_pane_1 = wx.Panel(self.notebook_1, wx.ID_ANY)
self.use_menu_icons = wx.CheckBox(self.notebook_1_pane_1, wx.ID_ANY, _("Use icons in menu items"))
self.frame_tool_win = wx.CheckBox(self.notebook_1_pane_1, wx.ID_ANY, _("Show properties and tree windows as small frames"))
self.show_progress = wx.CheckBox(self.notebook_1_pane_1, wx.ID_ANY, _("Show progress dialog when loading wxg files"))
self.remember_geometry = wx.CheckBox(self.notebook_1_pane_1, wx.ID_ANY, _("Remember position and size of wxGlade windows"))
self.show_sizer_handle = wx.CheckBox(self.notebook_1_pane_1, wx.ID_ANY, _("Show \"handles\" of sizers"))
self.use_kde_dialogs = wx.CheckBox(self.notebook_1_pane_1, wx.ID_ANY, _("Use native file dialogs on KDE"))
self.show_completion = wx.CheckBox(self.notebook_1_pane_1, wx.ID_ANY, _("Show success message for code generation"))
self.open_save_path = wx.TextCtrl(self.notebook_1_pane_1, wx.ID_ANY, "")
self.codegen_path = wx.TextCtrl(self.notebook_1_pane_1, wx.ID_ANY, "")
self.number_history = wx.SpinCtrl(self.notebook_1_pane_1, wx.ID_ANY, "4", min=0, max=100)
self.buttons_per_row = wx.SpinCtrl(self.notebook_1_pane_1, wx.ID_ANY, "5", min=1, max=100)
self.notebook_1_pane_2 = wx.Panel(self.notebook_1, wx.ID_ANY)
self.use_dialog_units = wx.CheckBox(self.notebook_1_pane_2, wx.ID_ANY, _("Use dialog units by default for size properties"))
self.wxg_backup = wx.CheckBox(self.notebook_1_pane_2, wx.ID_ANY, _("Create backup wxg files"))
self.codegen_backup = wx.CheckBox(self.notebook_1_pane_2, wx.ID_ANY, _("Create backup files for generated source"))
self.allow_duplicate_names = wx.CheckBox(self.notebook_1_pane_2, wx.ID_ANY, _("Allow duplicate widget names"))
self.default_border = wx.CheckBox(self.notebook_1_pane_2, wx.ID_ANY, _("Default border width for widgets"))
self.default_border_size = wx.SpinCtrl(self.notebook_1_pane_2, wx.ID_ANY, "", min=0, max=20)
self.autosave = wx.CheckBox(self.notebook_1_pane_2, wx.ID_ANY, _("Auto save wxg files every "))
self.autosave_delay = wx.SpinCtrl(self.notebook_1_pane_2, wx.ID_ANY, "120", min=30, max=300)
self.write_timestamp = wx.CheckBox(self.notebook_1_pane_2, wx.ID_ANY, _("Insert timestamp on generated source files"))
self.write_generated_from = wx.CheckBox(self.notebook_1_pane_2, wx.ID_ANY, _("Insert .wxg file name on generated source files"))
self.backup_suffix = wx.RadioBox(self.notebook_1_pane_2, wx.ID_ANY, _("Backup options"), choices=[_("append ~ to filename"), _("append .bak to filename")], majorDimension=2, style=wx.RA_SPECIFY_COLS)
self.local_widget_path = wx.TextCtrl(self.notebook_1_pane_2, wx.ID_ANY, "")
self.choose_widget_path = wx.Button(self.notebook_1_pane_2, wx.ID_ANY, _("..."), style=wx.BU_EXACTFIT)
self.sizer_6_staticbox = wx.StaticBox(self.notebook_1_pane_2, wx.ID_ANY, _("Local widget path"))
self.ok = wx.Button(self, wx.ID_OK, "")
self.cancel = wx.Button(self, wx.ID_CANCEL, "")
self.__set_properties()
self.__do_layout()
# end wxGlade
def __set_properties(self):
# begin wxGlade: wxGladePreferencesUI.__set_properties
self.SetTitle(_("wxGlade: preferences"))
_icon = wx.EmptyIcon()
_icon.CopyFromBitmap(wx.Bitmap(_icon_path, wx.BITMAP_TYPE_ANY))
self.SetIcon(_icon)
self.use_menu_icons.SetValue(1)
self.frame_tool_win.SetValue(1)
self.show_progress.SetValue(1)
self.remember_geometry.SetValue(1)
self.show_sizer_handle.SetValue(1)
self.use_kde_dialogs.SetValue(1)
self.show_completion.SetValue(1)
self.open_save_path.SetMinSize((196, -1))
self.codegen_path.SetMinSize((196, -1))
self.number_history.SetMinSize((196, -1))
self.buttons_per_row.SetMinSize((196, -1))
self.wxg_backup.SetValue(1)
self.codegen_backup.SetValue(1)
self.allow_duplicate_names.Hide()
self.default_border_size.SetMinSize((45, 22))
self.autosave_delay.SetMinSize((45, 22))
self.write_timestamp.SetValue(1)
self.backup_suffix.SetSelection(0)
self.ok.SetDefault()
# end wxGlade
def __do_layout(self):
# begin wxGlade: wxGladePreferencesUI.__do_layout
sizer_1 = wx.BoxSizer(wx.VERTICAL)
sizer_2 = wx.BoxSizer(wx.HORIZONTAL)
sizer_5 = wx.BoxSizer(wx.VERTICAL)
self.sizer_6_staticbox.Lower()
sizer_6 = wx.StaticBoxSizer(self.sizer_6_staticbox, wx.HORIZONTAL)
sizer_7_copy = wx.BoxSizer(wx.HORIZONTAL)
sizer_7 = wx.BoxSizer(wx.HORIZONTAL)
sizer_3 = wx.BoxSizer(wx.VERTICAL)
sizer_4 = wx.FlexGridSizer(4, 2, 0, 0)
sizer_3.Add(self.use_menu_icons, 0, wx.ALL | wx.EXPAND, 5)
sizer_3.Add(self.frame_tool_win, 0, wx.ALL | wx.EXPAND, 5)
sizer_3.Add(self.show_progress, 0, wx.ALL | wx.EXPAND, 5)
sizer_3.Add(self.remember_geometry, 0, wx.ALL | wx.EXPAND, 5)
sizer_3.Add(self.show_sizer_handle, 0, wx.ALL | wx.EXPAND, 5)
sizer_3.Add(self.use_kde_dialogs, 0, wx.ALL | wx.EXPAND, 5)
sizer_3.Add(self.show_completion, 0, wx.ALL | wx.EXPAND, 5)
label_1 = wx.StaticText(self.notebook_1_pane_1, wx.ID_ANY, _("Initial path for \nfile opening/saving dialogs:"))
sizer_4.Add(label_1, 0, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5)
sizer_4.Add(self.open_save_path, 1, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5)
label_2_copy = wx.StaticText(self.notebook_1_pane_1, wx.ID_ANY, _("Initial path for \ncode generation file dialogs:"))
sizer_4.Add(label_2_copy, 0, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5)
sizer_4.Add(self.codegen_path, 1, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5)
label_2 = wx.StaticText(self.notebook_1_pane_1, wx.ID_ANY, _("Number of items in file history"))
sizer_4.Add(label_2, 0, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5)
sizer_4.Add(self.number_history, 1, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5)
label_2_copy_1 = wx.StaticText(self.notebook_1_pane_1, wx.ID_ANY, _("Number of buttons per row\nin the main palette"))
sizer_4.Add(label_2_copy_1, 0, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5)
sizer_4.Add(self.buttons_per_row, 1, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5)
sizer_4.AddGrowableCol(1)
sizer_3.Add(sizer_4, 0, wx.EXPAND, 3)
self.notebook_1_pane_1.SetSizer(sizer_3)
sizer_5.Add(self.use_dialog_units, 0, wx.ALL | wx.EXPAND, 5)
sizer_5.Add(self.wxg_backup, 0, wx.ALL | wx.EXPAND, 5)
sizer_5.Add(self.codegen_backup, 0, wx.ALL | wx.EXPAND, 5)
sizer_5.Add(self.allow_duplicate_names, 0, wx.ALL | wx.EXPAND, 5)
sizer_7.Add(self.default_border, 0, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5)
sizer_7.Add(self.default_border_size, 0, wx.ALL, 5)
sizer_5.Add(sizer_7, 0, wx.EXPAND, 0)
sizer_7_copy.Add(self.autosave, 0, wx.LEFT | wx.TOP | wx.BOTTOM | wx.ALIGN_CENTER_VERTICAL, 5)
sizer_7_copy.Add(self.autosave_delay, 0, wx.TOP | wx.BOTTOM, 5)
label_3 = wx.StaticText(self.notebook_1_pane_2, wx.ID_ANY, _(" seconds"))
sizer_7_copy.Add(label_3, 0, wx.TOP | wx.BOTTOM | wx.ALIGN_CENTER_VERTICAL | wx.FIXED_MINSIZE, 5)
sizer_5.Add(sizer_7_copy, 0, wx.EXPAND, 0)
sizer_5.Add(self.write_timestamp, 0, wx.ALL | wx.EXPAND, 5)
sizer_5.Add(self.write_generated_from, 0, wx.ALL | wx.EXPAND, 5)
sizer_5.Add(self.backup_suffix, 0, wx.ALL | wx.EXPAND, 5)
sizer_6.Add(self.local_widget_path, 1, wx.ALL, 3)
sizer_6.Add(self.choose_widget_path, 0, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 3)
sizer_5.Add(sizer_6, 0, wx.ALL | wx.EXPAND, 5)
self.notebook_1_pane_2.SetSizer(sizer_5)
self.notebook_1.AddPage(self.notebook_1_pane_1, _("Interface"))
self.notebook_1.AddPage(self.notebook_1_pane_2, _("Other"))
sizer_1.Add(self.notebook_1, 1, wx.ALL | wx.EXPAND, 5)
sizer_2.Add(self.ok, 0, 0, 0)
sizer_2.Add(self.cancel, 0, wx.LEFT, 10)
sizer_1.Add(sizer_2, 0, wx.ALL | wx.ALIGN_RIGHT, 10)
self.SetSizer(sizer_1)
sizer_1.Fit(self)
self.Layout()
self.Centre()
# end wxGlade
# end of class wxGladePreferencesUI
if __name__ == "__main__":
gettext.install("app") # replace with the appropriate catalog name
app = wx.PySimpleApp(0)
wx.InitAllImageHandlers()
dialog_1 = wxGladePreferencesUI(None, wx.ID_ANY, "")
app.SetTopWindow(dialog_1)
dialog_1.Show()
app.MainLoop()
|