|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | + |
| 3 | +########################################################################### |
| 4 | +## Python code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3) |
| 5 | +## http://www.wxformbuilder.org/ |
| 6 | +## |
| 7 | +## PLEASE DO *NOT* EDIT THIS FILE! |
| 8 | +########################################################################### |
| 9 | + |
| 10 | +import wx |
| 11 | +import wx.xrc |
| 12 | + |
| 13 | +########################################################################### |
| 14 | +## Class export_category |
| 15 | +########################################################################### |
| 16 | + |
| 17 | +class export_category ( wx.Dialog ): |
| 18 | + |
| 19 | + def __init__( self, parent ): |
| 20 | + wx.Dialog.__init__ ( self, parent, id = wx.ID_ANY, title = u"Export Category", pos = wx.DefaultPosition, size = wx.Size( 364,238 ), style = wx.DEFAULT_DIALOG_STYLE ) |
| 21 | + |
| 22 | + self.SetSizeHints( wx.DefaultSize, wx.DefaultSize ) |
| 23 | + |
| 24 | + bSizer1 = wx.BoxSizer( wx.VERTICAL ) |
| 25 | + |
| 26 | + self.m_staticText1 = wx.StaticText( self, wx.ID_ANY, u"Select a category you want to export", wx.DefaultPosition, wx.DefaultSize, 0 ) |
| 27 | + self.m_staticText1.Wrap( -1 ) |
| 28 | + |
| 29 | + bSizer1.Add( self.m_staticText1, 0, wx.ALL, 5 ) |
| 30 | + |
| 31 | + btn_category_choices_listChoices = [] |
| 32 | + self.btn_category_choices_list = wx.ComboBox( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, btn_category_choices_listChoices, 0 ) |
| 33 | + bSizer1.Add( self.btn_category_choices_list, 0, wx.ALL|wx.EXPAND, 5 ) |
| 34 | + |
| 35 | + self.statictext2 = wx.StaticText( self, wx.ID_ANY, u"Select a location you want to save your export", wx.DefaultPosition, wx.DefaultSize, 0 ) |
| 36 | + self.statictext2.Wrap( -1 ) |
| 37 | + |
| 38 | + bSizer1.Add( self.statictext2, 0, wx.ALL, 5 ) |
| 39 | + |
| 40 | + self.input_export_dst_display = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, wx.TE_READONLY ) |
| 41 | + bSizer1.Add( self.input_export_dst_display, 0, wx.ALL|wx.EXPAND, 5 ) |
| 42 | + |
| 43 | + self.btn_choose_file = wx.Button( self, wx.ID_ANY, u"Choose Location", wx.DefaultPosition, wx.DefaultSize, 0 ) |
| 44 | + bSizer1.Add( self.btn_choose_file, 0, wx.ALL, 5 ) |
| 45 | + |
| 46 | + btn_apply = wx.StdDialogButtonSizer() |
| 47 | + self.btn_applyApply = wx.Button( self, wx.ID_APPLY ) |
| 48 | + btn_apply.AddButton( self.btn_applyApply ) |
| 49 | + self.btn_applyCancel = wx.Button( self, wx.ID_CANCEL ) |
| 50 | + btn_apply.AddButton( self.btn_applyCancel ) |
| 51 | + btn_apply.Realize(); |
| 52 | + |
| 53 | + bSizer1.Add( btn_apply, 1, wx.EXPAND, 5 ) |
| 54 | + |
| 55 | + |
| 56 | + self.SetSizer( bSizer1 ) |
| 57 | + self.Layout() |
| 58 | + |
| 59 | + self.Centre( wx.BOTH ) |
| 60 | + |
| 61 | + # Connect Events |
| 62 | + self.Bind( wx.EVT_INIT_DIALOG, self.init_data ) |
| 63 | + self.btn_choose_file.Bind( wx.EVT_BUTTON, self.open_file_picker ) |
| 64 | + self.btn_applyApply.Bind( wx.EVT_BUTTON, self.export_category ) |
| 65 | + self.btn_applyCancel.Bind( wx.EVT_BUTTON, self.close_window ) |
| 66 | + |
| 67 | + def __del__( self ): |
| 68 | + pass |
| 69 | + |
| 70 | + |
| 71 | + # Virtual event handlers, override them in your derived class |
| 72 | + def init_data( self, event ): |
| 73 | + event.Skip() |
| 74 | + |
| 75 | + def open_file_picker( self, event ): |
| 76 | + event.Skip() |
| 77 | + |
| 78 | + def export_category( self, event ): |
| 79 | + event.Skip() |
| 80 | + |
| 81 | + def close_window( self, event ): |
| 82 | + event.Skip() |
| 83 | + |
| 84 | + |
0 commit comments