Python wx.DEFAULT_DIALOG_STYLE Examples
The following are 30
code examples of wx.DEFAULT_DIALOG_STYLE().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
wx
, or try the search function
.
Example #1
Source File: misc.py From trelby with GNU General Public License v2.0 | 7 votes |
def __init__(self, parent, text, title): wx.Dialog.__init__(self, parent, -1, title, style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER) vsizer = wx.BoxSizer(wx.VERTICAL) tc = wx.TextCtrl(self, -1, size = wx.Size(400, 200), style = wx.TE_MULTILINE | wx.TE_READONLY | wx.TE_LINEWRAP) tc.SetValue(text) vsizer.Add(tc, 1, wx.EXPAND); vsizer.Add(wx.StaticLine(self, -1), 0, wx.EXPAND | wx.TOP | wx.BOTTOM, 5) okBtn = gutil.createStockButton(self, "OK") vsizer.Add(okBtn, 0, wx.ALIGN_CENTER) util.finishWindow(self, vsizer) wx.EVT_BUTTON(self, okBtn.GetId(), self.OnOK) okBtn.SetFocus()
Example #2
Source File: backend_wx.py From Mastering-Elasticsearch-7.0 with MIT License | 7 votes |
def __init__(self, parent, help_entries): wx.Dialog.__init__(self, parent, title="Help", style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER) sizer = wx.BoxSizer(wx.VERTICAL) grid_sizer = wx.FlexGridSizer(0, 3, 8, 6) # create and add the entries bold = self.GetFont().MakeBold() for r, row in enumerate(self.headers + help_entries): for (col, width) in zip(row, self.widths): label = wx.StaticText(self, label=col) if r == 0: label.SetFont(bold) label.Wrap(width) grid_sizer.Add(label, 0, 0, 0) # finalize layout, create button sizer.Add(grid_sizer, 0, wx.ALL, 6) OK = wx.Button(self, wx.ID_OK) sizer.Add(OK, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 8) self.SetSizer(sizer) sizer.Fit(self) self.Layout() self.Bind(wx.EVT_CLOSE, self.OnClose) OK.Bind(wx.EVT_BUTTON, self.OnClose)
Example #3
Source File: dialog.py From wxGlade with MIT License | 7 votes |
def create_widget(self): if self.parent: parent = self.parent.widget else: parent = common.main # we set always a default style because this is the best one for editing the dialog # (for example, a dialog without a caption would be hard to move, etc.) default_style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER if common.pin_design_window: default_style |= wx.STAY_ON_TOP # change 2002-10-09: now we create a wxFrame instead of a wxDialog, # because the latter gives troubles I wasn't able to solve when using wxPython 2.3.3.1 :-/ self.widget = wx.Frame(parent, self.id, "", style=default_style) self.widget.SetBackgroundColour(compat.wx_SystemSettings_GetColour(wx.SYS_COLOUR_BTNFACE)) self._set_widget_icon()
Example #4
Source File: toplevels_no_size_Phoenix.py From wxGlade with MIT License | 6 votes |
def __init__(self, *args, **kwds): # begin wxGlade: MyDialog.__init__ kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE wx.Dialog.__init__(self, *args, **kwds) self.SetTitle("dialog") sizer_2 = wx.BoxSizer(wx.HORIZONTAL) self.button_1 = wx.Button(self, wx.ID_ANY, "button_1") sizer_2.Add(self.button_1, 0, 0, 0) self.SetSizer(sizer_2) sizer_2.Fit(self) self.Layout() # end wxGlade # end of class MyDialog
Example #5
Source File: wxglade_out.py From PrimarySchoolMathematics with Apache License 2.0 | 6 votes |
def __init__(self, *args, **kwds): # begin wxGlade: MyDialog1.__init__ kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE wx.Dialog.__init__(self, *args, **kwds) self.checkbox_2 = wx.CheckBox(self, wx.ID_ANY, u"+(加法)") self.checkbox_3 = wx.CheckBox(self, wx.ID_ANY, u"-(减法)") self.checkbox_4 = wx.CheckBox(self, wx.ID_ANY, u"×(乘法)") self.checkbox_5 = wx.CheckBox(self, wx.ID_ANY, u"÷(除法)") self.checkbox_6 = wx.CheckBox(self, wx.ID_ANY, u"+(加法)") self.checkbox_7 = wx.CheckBox(self, wx.ID_ANY, u"-(减法)") self.checkbox_8 = wx.CheckBox(self, wx.ID_ANY, u"×(乘法)") self.checkbox_9 = wx.CheckBox(self, wx.ID_ANY, u"÷(除法)") self.checkbox_10 = wx.CheckBox(self, wx.ID_ANY, u"+(加法)") self.checkbox_11 = wx.CheckBox(self, wx.ID_ANY, u"-(减法)") self.checkbox_12 = wx.CheckBox(self, wx.ID_ANY, u"×(乘法)") self.checkbox_13 = wx.CheckBox(self, wx.ID_ANY, u"÷(除法)") self.button_9 = wx.Button(self, wx.ID_ANY, u"提交修改") self.button_10 = wx.Button(self, wx.ID_ANY, u"关闭窗口") self.__set_properties() self.__do_layout() # end wxGlade
Example #6
Source File: App.py From PrimarySchoolMathematics with Apache License 2.0 | 6 votes |
def __init__(self,*args, **kwds): # begin wxGlade: MyDialog.__init__ kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE wx.Dialog.__init__(self,*args, **kwds) self.config = AppConfig() tmdata = eval(self.config.c.get('config', 'multistep')) self.text_ctrl_6 = wx.TextCtrl(self, wx.ID_ANY, '{0}'.format(tmdata[0][0])) self.text_ctrl_7 = wx.TextCtrl(self, wx.ID_ANY, '{0}'.format(tmdata[0][1])) self.text_ctrl_8 = wx.TextCtrl(self, wx.ID_ANY, '{0}'.format(tmdata[1][0])) self.text_ctrl_9 = wx.TextCtrl(self, wx.ID_ANY, '{0}'.format(tmdata[1][1])) self.text_ctrl_10 = wx.TextCtrl(self, wx.ID_ANY, '{0}'.format(tmdata[2][0])) self.text_ctrl_11 = wx.TextCtrl(self, wx.ID_ANY, '{0}'.format(tmdata[2][1])) self.text_ctrl_12 = wx.TextCtrl(self, wx.ID_ANY, '{0}'.format(tmdata[3][0])) self.text_ctrl_13 = wx.TextCtrl(self, wx.ID_ANY, '{0}'.format(tmdata[3][1])) self.text_ctrl_14 = wx.TextCtrl(self, wx.ID_ANY, '{0}'.format(tmdata[4][0])) self.text_ctrl_15 = wx.TextCtrl(self, wx.ID_ANY, '{0}'.format(tmdata[4][1])) self.button_9 = wx.Button(self, wx.ID_ANY, u"提交修改") self.button_9.Bind(wx.EVT_BUTTON, self.onButton_9) self.button_10 = wx.Button(self, wx.ID_ANY, u"关闭窗口") self.button_10.Bind(wx.EVT_BUTTON, self.onButton_10) self.ret = 0 # 算数项设置Dialog返回值 self.__set_properties() self.__do_layout() # end wxGlade
Example #7
Source File: toplevels_no_size_Classic.py From wxGlade with MIT License | 6 votes |
def __init__(self, *args, **kwds): # begin wxGlade: MyDialog.__init__ kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE wx.Dialog.__init__(self, *args, **kwds) self.SetTitle("dialog") sizer_2 = wx.BoxSizer(wx.HORIZONTAL) self.button_1 = wx.Button(self, wx.ID_ANY, "button_1") sizer_2.Add(self.button_1, 0, 0, 0) self.SetSizer(sizer_2) sizer_2.Fit(self) self.Layout() # end wxGlade # end of class MyDialog
Example #8
Source File: BasesEtc_w_sizers_Classic.py From wxGlade with MIT License | 6 votes |
def __init__(self, *args, **kwds): # begin wxGlade: MyDialog.__init__ kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE wx.Dialog.__init__(self, *args, **kwds) self.SetSize((400, 300)) self.SetTitle("dialog") sizer_1 = wx.BoxSizer(wx.VERTICAL) sizer_1.Add((0, 0), 0, 0, 0) self.SetSizer(sizer_1) self.Layout() # end wxGlade # end of class MyDialog
Example #9
Source File: toplevel_extracode.py From wxGlade with MIT License | 6 votes |
def __init__(self, *args, **kwds): # begin wxGlade: MyDialog.__init__ # dialog extra code before kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE wx.Dialog.__init__(self, *args, **kwds) self.SetTitle("dialog") sizer_1 = wx.BoxSizer(wx.VERTICAL) sizer_1.Add((0, 0), 0, 0, 0) self.SetSizer(sizer_1) sizer_1.Fit(self) self.Layout() # dialog extra code after self.Bind(wx.EVT_CLOSE, self.on_close_dialog, self) # end wxGlade
Example #10
Source File: backend_wx.py From python3_ios with BSD 3-Clause "New" or "Revised" License | 6 votes |
def __init__(self, parent, help_entries): wx.Dialog.__init__(self, parent, title="Help", style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER) sizer = wx.BoxSizer(wx.VERTICAL) grid_sizer = wx.FlexGridSizer(0, 3, 8, 6) # create and add the entries bold = self.GetFont().MakeBold() for r, row in enumerate(self.headers + help_entries): for (col, width) in zip(row, self.widths): label = wx.StaticText(self, label=col) if r == 0: label.SetFont(bold) label.Wrap(width) grid_sizer.Add(label, 0, 0, 0) # finalize layout, create button sizer.Add(grid_sizer, 0, wx.ALL, 6) OK = wx.Button(self, wx.ID_OK) sizer.Add(OK, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 8) self.SetSizer(sizer) sizer.Fit(self) self.Layout() self.Bind(wx.EVT_CLOSE, self.OnClose) OK.Bind(wx.EVT_BUTTON, self.OnClose)
Example #11
Source File: bugdialog_ui.py From wxGlade with MIT License | 6 votes |
def __init__(self, *args, **kwds): # begin wxGlade: UIBugDialog.__init__ kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER wx.Dialog.__init__(self, *args, **kwds) self.SetSize((600, 400)) self.notebook_1 = wx.Notebook(self, wx.ID_ANY, style=wx.NB_BOTTOM) self.nb1_pane_summary = wx.Panel(self.notebook_1, wx.ID_ANY) self.st_header = wx.StaticText(self.nb1_pane_summary, wx.ID_ANY, _("An internal error occurred while %(action)s")) self.st_summary = wx.StaticText(self.nb1_pane_summary, wx.ID_ANY, _("Error type: %(exc_type)s\nError summary: %(exc_msg)s")) self.st_report = wx.StaticText(self.nb1_pane_summary, wx.ID_ANY, _("This is a bug - please report it.")) self.nb1_pane_details = wx.Panel(self.notebook_1, wx.ID_ANY) self.st_details = wx.StaticText(self.nb1_pane_details, wx.ID_ANY, _("Error details:")) self.tc_details = wx.TextCtrl(self.nb1_pane_details, wx.ID_ANY, "", style=wx.TE_MULTILINE) self.notebook_1_pane_1 = wx.Panel(self.notebook_1, wx.ID_ANY) self.tc_howto_report = wx.TextCtrl(self.notebook_1_pane_1, wx.ID_ANY, _("Writing a helpful bug report is easy if you follow some hints. The items below should help you to integrate useful information. They are not an absolute rule - it's more like a guideline.\n\n- What did you do? Maybe you want to include a screenshot.\n- What did you want to happen?\n- What did actually happen?\n- Provide a short example to reproduce the issue.\n- Include the internal error log file %(log_file)s if required.\n\nPlease open a new bug in the wxGlade bug tracker https://github.com/wxGlade/wxGlade/issues/ .\nAlternatively you can send the bug report to the wxGlade mailing list wxglade-general@lists.sourceforge.net. Keep in mind that you need a subscription for sending emails to this mailing list.\nThe subscription page is at https://sourceforge.net/projects/wxglade/lists/wxglade-general ."), style=wx.TE_MULTILINE | wx.TE_READONLY) self.static_line_1 = wx.StaticLine(self, wx.ID_ANY) self.btn_copy = wx.Button(self, wx.ID_COPY, "") self.btn_ok = wx.Button(self, wx.ID_OK, "") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self.OnCopy, self.btn_copy) # end wxGlade
Example #12
Source File: guiminer.py From poclbm with GNU General Public License v3.0 | 6 votes |
def __init__(self, parent, url): style = wx.DEFAULT_DIALOG_STYLE vbox = wx.BoxSizer(wx.VERTICAL) wx.Dialog.__init__(self, parent, -1, STR_REFRESH_BALANCE, style=style) self.instructions = wx.StaticText(self, -1, BalanceAuthRequest.instructions) self.website = hyperlink.HyperLinkCtrl(self, -1, url) self.txt_token = wx.TextCtrl(self, -1, _("(Paste token here)")) buttons = self.CreateButtonSizer(wx.OK | wx.CANCEL) vbox.AddMany([ (self.instructions, 0, wx.ALL, 10), (self.website, 0, wx.ALL | wx.ALIGN_CENTER_HORIZONTAL, 10), (self.txt_token, 0, wx.EXPAND | wx.ALIGN_CENTER_HORIZONTAL, 10), (buttons, 0, wx.ALL | wx.ALIGN_CENTER_HORIZONTAL, 10) ]) self.SetSizerAndFit(vbox)
Example #13
Source File: guiminer.py From poclbm with GNU General Public License v3.0 | 6 votes |
def __init__(self, parent, title): style = wx.DEFAULT_DIALOG_STYLE vbox = wx.BoxSizer(wx.VERTICAL) wx.Dialog.__init__(self, parent, -1, title, style=style) self.user_lbl = wx.StaticText(self, -1, STR_USERNAME) self.txt_username = wx.TextCtrl(self, -1, "") self.pass_lbl = wx.StaticText(self, -1, STR_PASSWORD) self.txt_pass = wx.TextCtrl(self, -1, "", style=wx.TE_PASSWORD) grid_sizer_1 = wx.FlexGridSizer(2, 2, 5, 5) grid_sizer_1.Add(self.user_lbl, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL, 0) grid_sizer_1.Add(self.txt_username, 0, wx.EXPAND, 0) grid_sizer_1.Add(self.pass_lbl, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL, 0) grid_sizer_1.Add(self.txt_pass, 0, wx.EXPAND, 0) buttons = self.CreateButtonSizer(wx.OK | wx.CANCEL) vbox.Add(grid_sizer_1, wx.EXPAND | wx.ALL, 10) vbox.Add(buttons) self.SetSizerAndFit(vbox)
Example #14
Source File: guiminer.py From poclbm with GNU General Public License v3.0 | 6 votes |
def __init__(self, parent, title, current_language): style = wx.DEFAULT_DIALOG_STYLE vbox = wx.BoxSizer(wx.VERTICAL) wx.Dialog.__init__(self, parent, -1, title, style=style) self.lbl = wx.StaticText(self, -1, _("Choose language (requires restart to take full effect)")) vbox.Add(self.lbl, 0, wx.ALL, 10) self.language_choices = wx.ComboBox(self, -1, choices=sorted(LANGUAGES.keys()), style=wx.CB_READONLY) self.language_choices.SetStringSelection(LANGUAGES_REVERSE[current_language]) vbox.Add(self.language_choices, 0, wx.ALL, 10) buttons = self.CreateButtonSizer(wx.OK | wx.CANCEL) vbox.Add(buttons, 0, wx.ALL | wx.ALIGN_CENTER_HORIZONTAL, 10) self.SetSizerAndFit(vbox)
Example #15
Source File: backend_wx.py From CogAlg with MIT License | 6 votes |
def __init__(self, parent, help_entries): wx.Dialog.__init__(self, parent, title="Help", style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER) sizer = wx.BoxSizer(wx.VERTICAL) grid_sizer = wx.FlexGridSizer(0, 3, 8, 6) # create and add the entries bold = self.GetFont().MakeBold() for r, row in enumerate(self.headers + help_entries): for (col, width) in zip(row, self.widths): label = wx.StaticText(self, label=col) if r == 0: label.SetFont(bold) label.Wrap(width) grid_sizer.Add(label, 0, 0, 0) # finalize layout, create button sizer.Add(grid_sizer, 0, wx.ALL, 6) OK = wx.Button(self, wx.ID_OK) sizer.Add(OK, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 8) self.SetSizer(sizer) sizer.Fit(self) self.Layout() self.Bind(wx.EVT_CLOSE, self.OnClose) OK.Bind(wx.EVT_BUTTON, self.OnClose)
Example #16
Source File: FindWindow.py From EventGhost with GNU General Public License v2.0 | 6 votes |
def __init__(self, parent, hwnds): eg.Dialog.__init__( self, parent, title="Found Windows", size=(500, 350), style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, ) windowList = eg.WindowList(self, hwnds) okButton = wx.Button(self, wx.ID_OK) btnSizer = eg.HBoxSizer( ((0, 0), 1, wx.EXPAND), (okButton, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.EXPAND | wx.ALL, 5), ((0, 0), 1, wx.EXPAND), (eg.SizeGrip(self), 0, wx.ALIGN_BOTTOM | wx.ALIGN_RIGHT), ) mainSizer = eg.VBoxSizer( (windowList, 1, wx.EXPAND | wx.TOP | wx.LEFT | wx.RIGHT, 5), (btnSizer, 0, wx.EXPAND), ) self.SetSizer(mainSizer)
Example #17
Source File: misc.py From trelby with GNU General Public License v2.0 | 6 votes |
def __init__(self, parent, cmdName): wx.Dialog.__init__(self, parent, -1, "Key capture", style = wx.DEFAULT_DIALOG_STYLE) vsizer = wx.BoxSizer(wx.VERTICAL) vsizer.Add(wx.StaticText(self, -1, "Press the key combination you\n" "want to bind to the command\n'%s'." % cmdName)) tmp = KeyDlgWidget(self, -1, (1, 1)) vsizer.Add(tmp) util.finishWindow(self, vsizer) tmp.SetFocus() # used by KeyDlg
Example #18
Source File: wxglade_out.py From PrimarySchoolMathematics with Apache License 2.0 | 6 votes |
def __init__(self, *args, **kwds): # begin wxGlade: MyDialog.__init__ kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE wx.Dialog.__init__(self, *args, **kwds) self.text_ctrl_6 = wx.TextCtrl(self, wx.ID_ANY, "0") self.text_ctrl_7 = wx.TextCtrl(self, wx.ID_ANY, "20") self.text_ctrl_8 = wx.TextCtrl(self, wx.ID_ANY, "0") self.text_ctrl_9 = wx.TextCtrl(self, wx.ID_ANY, "20") self.text_ctrl_10 = wx.TextCtrl(self, wx.ID_ANY, "0") self.text_ctrl_11 = wx.TextCtrl(self, wx.ID_ANY, "20") self.text_ctrl_12 = wx.TextCtrl(self, wx.ID_ANY, "0") self.text_ctrl_13 = wx.TextCtrl(self, wx.ID_ANY, "20") self.text_ctrl_14 = wx.TextCtrl(self, wx.ID_ANY, "0") self.text_ctrl_15 = wx.TextCtrl(self, wx.ID_ANY, "20") self.button_9 = wx.Button(self, wx.ID_ANY, u"提交修改") self.button_10 = wx.Button(self, wx.ID_ANY, u"关闭窗口") self.__set_properties() self.__do_layout() # end wxGlade
Example #19
Source File: BasesEtc_w_sizers_Classic.py From wxGlade with MIT License | 6 votes |
def __init__(self, *args, **kwds): # begin wxGlade: MyDialogWithBases.__init__ kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE MyDialogBase.__init__(self, *args, **kwds) mydialogbases.MyDialogBase.__init__(self) self.SetSize((400, 300)) self.SetTitle("dialog") sizer_1 = wx.BoxSizer(wx.VERTICAL) sizer_1.Add((0, 0), 0, 0, 0) self.SetSizer(sizer_1) self.Layout() # end wxGlade # end of class MyDialogWithBases
Example #20
Source File: font_dialog.py From wxGlade with MIT License | 6 votes |
def __init__(self, *args, **kwds): kwds["style"] = wx.DEFAULT_DIALOG_STYLE wx.Dialog.__init__(self, *args, **kwds) self.label_2_copy = wx.StaticText(self, -1, _("Family:")) self.label_3_copy = wx.StaticText(self, -1, _("Style:")) self.label_4_copy = wx.StaticText(self, -1, _("Weight:")) self.family = wx.Choice(self, -1, choices=["Default", "Decorative", "Roman", "Script", "Swiss", "Modern"]) self.style = wx.Choice(self, -1, choices=["Normal", "Slant", "Italic"]) self.weight = wx.Choice(self, -1, choices=["Normal", "Light", "Bold"]) self.label_1 = wx.StaticText(self, -1, _("Size in points:")) self.point_size = wx.SpinCtrl(self, -1, "", min=0, max=100) self.underline = wx.CheckBox(self, -1, _("Underlined")) self.font_btn = wx.Button(self, -1, _("Specific font...")) self.static_line_1 = wx.StaticLine(self, -1) self.ok_btn = wx.Button(self, wx.ID_OK, _("OK")) self.cancel_btn = wx.Button(self, wx.ID_CANCEL, _("Cancel")) self.__set_properties() self.__do_layout() self.value = None self.font_btn.Bind(wx.EVT_BUTTON, self.choose_specific_font) self.ok_btn.Bind(wx.EVT_BUTTON, self.on_ok)
Example #21
Source File: CalendarCtrl.py From wxGlade with MIT License | 6 votes |
def __init__(self, *args, **kwds): # begin wxGlade: MyDialog.__init__ kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE wx.Dialog.__init__(self, *args, **kwds) self.SetTitle("dialog_1") sizer_1 = wx.BoxSizer(wx.HORIZONTAL) self.calendar_ctrl_1 = wx.calendar.CalendarCtrl(self, wx.ID_ANY, style=0) sizer_1.Add(self.calendar_ctrl_1, 0, 0, 0) self.SetSizer(sizer_1) sizer_1.Fit(self) self.Layout() # end wxGlade # end of class MyDialog
Example #22
Source File: BasesEtc_w_sizers_Phoenix.py From wxGlade with MIT License | 6 votes |
def __init__(self, *args, **kwds): # begin wxGlade: MyDialogWithBases.__init__ kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE MyDialogBase.__init__(self, *args, **kwds) mydialogbases.MyDialogBase.__init__(self) self.SetSize((400, 300)) self.SetTitle("dialog") sizer_1 = wx.BoxSizer(wx.VERTICAL) sizer_1.Add((0, 0), 0, 0, 0) self.SetSizer(sizer_1) self.Layout() # end wxGlade # end of class MyDialogWithBases
Example #23
Source File: BasesEtc.py From wxGlade with MIT License | 6 votes |
def __init__(self, *args, **kwds): # begin wxGlade: MyDialogWithBases.__init__ kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE MyDialogBase.__init__(self, *args, **kwds) mydialogbases.MyDialogBase.__init__(self) self.SetTitle("dialog") sizer_1 = wx.BoxSizer(wx.VERTICAL) sizer_1.Add((0, 0), 0, 0, 0) self.SetSizer(sizer_1) sizer_1.Fit(self) self.Layout() # end wxGlade # end of class MyDialogWithBases
Example #24
Source File: toolbar.py From wxGlade with MIT License | 6 votes |
def __init__(self, parent, owner, items=None): style = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.WANTS_CHARS wx.Dialog.__init__(self, parent, -1, _("Toolbar editor"), style=style) self.create_gui() self.bind_event_handlers() self._set_tooltips() self.owner = owner self.handler_re = self.name_re = re.compile(r'^[a-zA-Z_]+[\w-]*(\[\w*\])*$') self.selected_index = -1 # index of the selected element in the wx.ListCtrl menu_items self._ignore_events = False if items: self.add_items(items) self._select_item(0) else: self._enable_fields(False)
Example #25
Source File: BasesEtc.py From wxGlade with MIT License | 6 votes |
def __init__(self, *args, **kwds): # begin wxGlade: MyDialog.__init__ kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE wx.Dialog.__init__(self, *args, **kwds) self.SetTitle("dialog") sizer_1 = wx.BoxSizer(wx.VERTICAL) sizer_1.Add((0, 0), 0, 0, 0) self.SetSizer(sizer_1) sizer_1.Fit(self) self.Layout() # end wxGlade # end of class MyDialog
Example #26
Source File: templates_ui.py From wxGlade with MIT License | 6 votes |
def __init__(self, *args, **kwds): # begin wxGlade: TemplateListDialog.__init__ kwds["style"] = wx.DEFAULT_DIALOG_STYLE wx.Dialog.__init__(self, *args, **kwds) self.template_names = wx.ListBox(self, wx.ID_ANY, choices=[]) self.template_name = wx.StaticText(self, wx.ID_ANY, _("wxGlade template:\n")) self.author = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_READONLY) self.description = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_READONLY) self.instructions = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_READONLY) self.btn_open = wx.Button(self, wx.ID_OPEN, "") self.btn_edit = wx.Button(self, ID_EDIT, _("&Edit")) self.btn_delete = wx.Button(self, wx.ID_DELETE, "") self.btn_cancel = wx.Button(self, wx.ID_CANCEL, "") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_LISTBOX_DCLICK, self.on_open, self.template_names) self.Bind(wx.EVT_LISTBOX, self.on_select_template, self.template_names) self.Bind(wx.EVT_BUTTON, self.on_open, self.btn_open) self.Bind(wx.EVT_BUTTON, self.on_edit, id=ID_EDIT) self.Bind(wx.EVT_BUTTON, self.on_delete, self.btn_delete) # end wxGlade
Example #27
Source File: CalendarCtrl_Phoenix.py From wxGlade with MIT License | 6 votes |
def __init__(self, *args, **kwds): # begin wxGlade: MyDialog.__init__ kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE wx.Dialog.__init__(self, *args, **kwds) self.SetTitle("dialog_1") sizer_1 = wx.BoxSizer(wx.HORIZONTAL) self.calendar_ctrl_1 = wx.adv.CalendarCtrl(self, wx.ID_ANY, style=0) sizer_1.Add(self.calendar_ctrl_1, 0, 0, 0) self.SetSizer(sizer_1) sizer_1.Fit(self) self.Layout() # end wxGlade # end of class MyDialog
Example #28
Source File: BasesEtc_Phoenix.py From wxGlade with MIT License | 6 votes |
def __init__(self, *args, **kwds): # begin wxGlade: MyDialog.__init__ kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE wx.Dialog.__init__(self, *args, **kwds) self.SetTitle("dialog") sizer_1 = wx.BoxSizer(wx.VERTICAL) sizer_1.Add((0, 0), 0, 0, 0) self.SetSizer(sizer_1) sizer_1.Fit(self) self.Layout() # end wxGlade # end of class MyDialog
Example #29
Source File: BasesEtc_Classic.py From wxGlade with MIT License | 6 votes |
def __init__(self, *args, **kwds): # begin wxGlade: MyDialog.__init__ kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE wx.Dialog.__init__(self, *args, **kwds) self.SetTitle("dialog") sizer_1 = wx.BoxSizer(wx.VERTICAL) sizer_1.Add((0, 0), 0, 0, 0) self.SetSizer(sizer_1) sizer_1.Fit(self) self.Layout() # end wxGlade # end of class MyDialog
Example #30
Source File: BasesEtc_Classic.py From wxGlade with MIT License | 6 votes |
def __init__(self, *args, **kwds): # begin wxGlade: MyDialogWithBases.__init__ kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE MyDialogBase.__init__(self, *args, **kwds) mydialogbases.MyDialogBase.__init__(self) self.SetTitle("dialog") sizer_1 = wx.BoxSizer(wx.VERTICAL) sizer_1.Add((0, 0), 0, 0, 0) self.SetSizer(sizer_1) sizer_1.Fit(self) self.Layout() # end wxGlade # end of class MyDialogWithBases