本文整理汇总了Python中Images.getTransparent16x16Bitmap方法的典型用法代码示例。如果您正苦于以下问题:Python Images.getTransparent16x16Bitmap方法的具体用法?Python Images.getTransparent16x16Bitmap怎么用?Python Images.getTransparent16x16Bitmap使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Images
的用法示例。
在下文中一共展示了Images.getTransparent16x16Bitmap方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: import Images [as 别名]
# 或者: from Images import getTransparent16x16Bitmap [as 别名]
def __init__(self, *args, **kwds):
WxHelpers.__init__(self)
# begin wxGlade: EditChildFrame.__init__
kwds["style"] = wx.DEFAULT_FRAME_STYLE
wx.Frame.__init__(self, *args, **kwds)
self.panel_1 = wx.ScrolledWindow(self, -1, style=wx.TAB_TRAVERSAL | wx.FULL_REPAINT_ON_RESIZE)
self.l_Name = wx.StaticText(self.panel_1, -1, _("Name"))
self.name = wx.TextCtrl(self.panel_1, ID_NA, "")
self.l_firstname = wx.StaticText(self.panel_1, -1, _("First name"))
self.firstname = wx.TextCtrl(self.panel_1, ID_FN, "")
self.l_registrationdate = wx.StaticText(self.panel_1, -1, _("Registration date"))
self.registrationdate = wx.DatePickerCtrl(self.panel_1, ID_RD, style=wx.DP_ALLOWNONE)
self.l_birthdate = wx.StaticText(self.panel_1, -1, _("Birth date"))
self.birthdate = wx.DatePickerCtrl(self.panel_1, ID_BI, style=wx.DP_ALLOWNONE)
self.l_benefit = wx.StaticText(self.panel_1, -1, _("Child benefit"))
self.benefit = wx.TextCtrl(self.panel_1, ID_CB, "")
self.l_joindate = wx.StaticText(self.panel_1, -1, _("Date of joining"))
self.joindate = wx.DatePickerCtrl(self.panel_1, ID_DJ, style=wx.DP_ALLOWNONE)
self.l_year = wx.StaticText(self.panel_1, -1, _("Year"))
self.year = wx.ComboBox(self.panel_1, ID_YE, choices=[], style=wx.CB_DROPDOWN | wx.CB_DROPDOWN | wx.CB_READONLY)
self.l_yearcalculated = wx.StaticText(self.panel_1, -1, _("Year (calculated)"))
self.yc_description = wx.TextCtrl(self.panel_1, -1, "", style=wx.TE_READONLY)
self.l_separationdate = wx.StaticText(self.panel_1, -1, _("Date of separation"))
self.separationdate = wx.DatePickerCtrl(self.panel_1, ID_DS, style=wx.DP_ALLOWNONE)
self.parent = wx.TextCtrl(self.panel_1, -1, "", style=wx.TE_READONLY)
self.l_relation = wx.StaticText(self.panel_1, -1, _("Relationship"))
self.relation = wx.ComboBox(self.panel_1, ID_RE, choices=[], style=wx.CB_DROPDOWN | wx.CB_DROPDOWN | wx.CB_READONLY)
self.calc = wx.CheckBox(self.panel_1, ID_CHB1, _("Calculation"))
self.pay = wx.CheckBox(self.panel_1, ID_CHB2, _("Liable to pay"))
self.button_2 = wx.Button(self.panel_1, -1, _("&New"))
self.b_delete = wx.Button(self.panel_1, -1, _("Delete"))
self.lv_parents = ListView(self.panel_1, -1)
self.sizer_28_staticbox = wx.StaticBox(self.panel_1, -1, _("Parents"))
self.l_rulings = wx.StaticText(self.panel_1, -1, _("Ruling"))
self.ruling = wx.ComboBox(self.panel_1, ID_CB2, choices=[], style=wx.CB_DROPDOWN | wx.CB_DROPDOWN | wx.CB_READONLY)
self.l_startdate = wx.StaticText(self.panel_1, -1, _("Valid from"))
self.startdate = wx.DatePickerCtrl(self.panel_1, ID_DP2, style=wx.DP_ALLOWNONE)
self.l_enddate = wx.StaticText(self.panel_1, -1, _("Valid to"))
self.enddate = wx.DatePickerCtrl(self.panel_1, ID_DP3, style=wx.DP_ALLOWNONE)
self.button_5 = wx.Button(self.panel_1, -1, _("&New"))
self.b_deleteruling = wx.Button(self.panel_1, -1, _("Delete"))
self.lv_rulings = ListView(self.panel_1, -1)
self.sizer_21_staticbox = wx.StaticBox(self.panel_1, -1, _("Applications/Rulings"))
self.btn_OK = wx.Button(self.panel_1, wx.ID_OK, "")
self.btn_Apply = wx.Button(self.panel_1, wx.ID_APPLY, "")
self.btn_Cancel = wx.Button(self.panel_1, wx.ID_CANCEL, "")
self.__set_properties()
self.__do_layout()
self.Bind(wx.EVT_TEXT, self.OnChanged, id=ID_NA)
self.Bind(wx.EVT_TEXT, self.OnChanged, id=ID_FN)
self.Bind(wx.EVT_DATE_CHANGED, self.OnChanged, id=ID_RD)
self.Bind(wx.EVT_DATE_CHANGED, self.OnChanged, id=ID_BI)
self.Bind(wx.EVT_TEXT, self.OnChanged, id=ID_CB)
self.Bind(wx.EVT_DATE_CHANGED, self.OnChanged, id=ID_DJ)
self.Bind(wx.EVT_COMBOBOX, self.OnChanged, id=ID_YE)
self.Bind(wx.EVT_DATE_CHANGED, self.OnChanged, id=ID_DS)
self.Bind(wx.EVT_COMBOBOX, self.OnRefresh, id=ID_RE)
self.Bind(wx.EVT_CHECKBOX, self.OnRefresh, id=ID_CHB1)
self.Bind(wx.EVT_CHECKBOX, self.OnRefresh, id=ID_CHB2)
self.Bind(wx.EVT_BUTTON, self.OnNew, self.button_2)
self.Bind(wx.EVT_BUTTON, self.OnDelete, self.b_delete)
self.Bind(wx.EVT_COMBOBOX, self.OnRefreshRuling, id=ID_CB2)
self.Bind(wx.EVT_DATE_CHANGED, self.OnRefreshRuling, id=ID_DP2)
self.Bind(wx.EVT_DATE_CHANGED, self.OnRefreshRuling, id=ID_DP3)
self.Bind(wx.EVT_BUTTON, self.OnNewRuling, self.button_5)
self.Bind(wx.EVT_BUTTON, self.OnDeleteRuling, self.b_deleteruling)
self.Bind(wx.EVT_BUTTON, self.OnOK, self.btn_OK)
self.Bind(wx.EVT_BUTTON, self.OnApply, self.btn_Apply)
self.Bind(wx.EVT_BUTTON, self.OnCancel, self.btn_Cancel)
# end wxGlade
# Imagelist
self.il = wx.ImageList(16, 16)
self.img_idx = {}
self.img_idx['transparent'] = self.il.Add(Images.getTransparent16x16Bitmap())
self.img_idx['task_complete'] = self.il.Add(Images.getTask_completeBitmap())
# Listview parents
self.__initParents()
# Listview rulings
self.__initRulings()
self.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OnItemSelected, self.lv_parents)
self.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OnItemSelectedRulings, self.lv_rulings)
self.Bind(wx.EVT_TEXT, self.OnChanged, id=ID_YE)
self.SetExtraStyle(wx.WS_EX_VALIDATE_RECURSIVELY)
self.Clear()
# Register PubSub Listener
pub.subscribe(self.Populate, 'dialog.child.populate') #@UndefinedVariable
pub.subscribe(self.NewParent, 'dialog.child.newparent') #@UndefinedVariable
pub.subscribe(self.fill_comboboxes, 'editchildframe.fillcomboboxes') #@UndefinedVariable
# Persistence
self.SetName('EditChildFrame')
self._persistMgr = PM.PersistenceManager.Get()
#.........这里部分代码省略.........