def __init__(self, name, parent, index, bmp_file): ManagedBase.__init__(self, name, parent, index) EditStylesMixin.__init__(self) # initialise instance properties self.bitmap = np.BitmapProperty(bmp_file) self.attribute = np.CheckBoxProperty(False, default_value=False)
def __init__(self, name, parent, bmp_file, pos): ManagedBase.__init__(self, name, 'wxStaticBitmap', parent, pos) EditStylesMixin.__init__(self) # initialise instance properties filedialog_style = wx.FD_OPEN | wx.FD_FILE_MUST_EXIST # for the following two properties self.bitmap = np.BitmapProperty(bmp_file) self.attribute = np.CheckBoxProperty(False, default_value=False)
def __init__(self, name, parent, bmp_file, pos): ManagedBase.__init__(self, name, 'wxBitmapButton', parent, pos) EditStylesMixin.__init__(self) BitmapMixin.__init__(self) # initialise instance properties self.bitmap = np.BitmapProperty(bmp_file) self.disabled_bitmap = np.BitmapPropertyD("") self.pressed_bitmap = np.BitmapPropertyD(min_version=(3, 0)) self.current_bitmap = np.BitmapPropertyD(min_version=(3, 0)) self.focus_bitmap = np.BitmapPropertyD(min_version=(3, 0)) self.default = np.CheckBoxProperty(False, default_value=False)
def __init__(self, name, parent, id, bmp_file, sizer, pos): ManagedBase.__init__(self, name, 'wxBitmapButton', parent, id, sizer, pos) EditStylesMixin.__init__(self) BitmapMixin.__init__(self) # initialise instance properties filedialog_style = wx.FD_OPEN | wx.FD_FILE_MUST_EXIST # for the following two properties self.bitmap = np.BitmapProperty(bmp_file, style=filedialog_style) self.disabled_bitmap = np.BitmapPropertyD("", default_value="", style=filedialog_style) self.default = np.CheckBoxProperty(False, default_value=False)