Ejemplo n.º 1
0
 def __init__(self, parent):
     wx.ListCtrl.__init__(self,
                          parent,
                          -1,
                          style=wx.LC_REPORT | wx.SUNKEN_BORDER)
     CheckListCtrlMixin.__init__(self)
     ListCtrlAutoWidthMixin.__init__(self)
Ejemplo n.º 2
0
 def __init__(self, parent):
     wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT)
     CheckListCtrlMixin.__init__(self)
     self.InsertColumn(0, "Attribute")
     self.InsertColumn(1, "Value")
     self.SetColumnWidth(0, 100)
     self.SetColumnWidth(1, 200)
Ejemplo n.º 3
0
 def __init__(self, parent):
     wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT | wx.LC_SINGLE_SEL | wx.SUNKEN_BORDER)
     CheckListCtrlMixin.__init__(self)
     ListCtrlAutoWidthMixin.__init__(self)
     self.photos = []
     self.active_index = None
     self.parent = parent
Ejemplo n.º 4
0
 def __init__(self, parent):
     wx.ListCtrl.__init__(self, parent, -1, size=(300,200), style=wx.LC_REPORT)
     CheckListCtrlMixin.__init__(self)
     
     self.checked_items= {}
     self.unchecked_items= {}
     self.SetLevel(1)
Ejemplo n.º 5
0
	def __init__(self, parent):
		wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT)
		CheckListCtrlMixin.__init__(self)
		self.InsertColumn(0, "Attribute")
		self.InsertColumn(1, "Value")
		self.SetColumnWidth(0, 100)
		self.SetColumnWidth(1, 200)
Ejemplo n.º 6
0
    def __init__(self, parent):
        wx.ListCtrl.__init__(self,
                             parent,
                             wx.NewIdRef(),
                             style=wx.LC_REPORT | wx.SUNKEN_BORDER
                             | wx.LC_SORT_ASCENDING)
        CheckListCtrlMixin.__init__(self)
        ListCtrlAutoWidthMixin.__init__(self)

        self.InsertColumn(0, _('Name'), width=140)
        self.InsertColumn(1, _('Size [Ko]'), width=80)
        self.InsertColumn(2, _('Repository'), width=90)
        self.InsertColumn(3, _('Path'), width=100)

        ### for itemData
        self.map = {}

        if wx.VERSION_STRING < '4.0':
            self.SetStringItem = self.SetStringItem
            self.InsertStringItem = self.InsertStringItem
            font = wx.SystemSettings_GetFont(wx.SYS_SYSTEM_FONT)
        else:
            self.SetStringItem = self.SetItem
            self.InsertStringItem = self.InsertItem
            font = wx.SystemSettings.GetFont(wx.SYS_SYSTEM_FONT)

        self.SetFont(font)
Ejemplo n.º 7
0
	def __init__(self, parent):
		""" Constructor.
		"""

		wx.ListCtrl.__init__(self, parent, wx.ID_ANY, style=wx.LC_REPORT | wx.SUNKEN_BORDER)
		CheckListCtrlMixin.__init__(self)
		ListCtrlAutoWidthMixin.__init__(self)

		self.id = -sys.maxint
		self.map = {}

		images = [	os.path.join(ICON_PATH_16_16,'disable_plugin.png'),
					os.path.join(ICON_PATH_16_16,'enable_plugin.png'),
					os.path.join(ICON_PATH_16_16,'no_ok.png')
					]

		self.il = wx.ImageList(16, 16)
		for i in images:
			self.il.Add(wx.Bitmap(i))
		self.SetImageList(self.il, wx.IMAGE_LIST_SMALL)

		#adding some art
		#self.il = wx.ImageList(16, 16)
		#a={"idx1":"CROSS_MARK","idx2":"TICK_MARK","idx3":"DELETE"}
		#for k,v in a.items():
		#	exec "self.%s= self.il.Add(wx.ArtProvider_GetBitmap(wx.ART_%s,wx.ART_TOOLBAR,(16,16)))" % (k,v)
		#self.SetImageList(self.il, wx.IMAGE_LIST_SMALL)

		### Layout
		self.Centre()
		self.Show(True)
Ejemplo n.º 8
0
    def __init__(self, data=None, *args, **kw):
        """
        data: [value, value, value,]
              -data is list of value
              -if direct, format of self.Data is self.Data={index:value, index:value, index:value, }
        """
        minelc.MySortListCtrl.__init__(self, *args, **kw)
        CheckListCtrlMixin.__init__(self)

        self._checked_former = None
        self._checked_latter = None
        self.selected = None
        self.checked = None

        # Data = {index:value, index:value, index:value, }
        self.Data = {}
        if not(data==None):
            index = 0
            for item in data:
                self.Data.update({index:item})
                index += 1
        else:
            self.Data = {}
        # 
        self.InsertColumn(0, u'')
        self.SetColumnWidth(0, wx.LIST_AUTOSIZE)

        self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._OnListItemSelected)
        self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated)  # CheckListCtrlMixin
Ejemplo n.º 9
0
	def __init__(self, *args, **kwargs):

		
		 
		super(SClist, self).__init__(*args, **kwargs)
		
		CheckListCtrlMixin.__init__(self)
		#TextEditMixin.__init__(self)
		
		self.Bind(wx.EVT_LIST_BEGIN_LABEL_EDIT, self.OnBeginLabelEdit)
		
		


   
		
		
		self.InsertColumn(0, 'Scene', width=60)
		self.InsertColumn(1, 'fr', width=40)
		self.InsertColumn(2, 'Omschrijving', width=250)
		self.InsertColumn(3, 'bg', width=80)
		self.InsertColumn(4, 'aantal kar.', width=60)
		
		self.pos = 0
		self.oldpos = 0
Ejemplo n.º 10
0
    def __init__(self, *args, **kw):
        wx.ListCtrl.__init__(self, *args, **kw)
        ListCtrlAutoWidthMixin.__init__(self)

        if wx.VERSION_STRING >= '4.1.0':
            self.EnableCheckBoxes(True)
            self.IsChecked = self.IsItemChecked
        else:
            CheckListCtrlMixin.__init__(self)

        self.InsertColumn(0, _('Name'), width=140)
        self.InsertColumn(1, _('Size [Ko]'), width=80)
        self.InsertColumn(2, _('Repository'), width=90)
        self.InsertColumn(3, _('Path'), width=100)

        ### for itemData
        self.map = {}

        if wx.VERSION_STRING < '4.0':
            self.SetStringItem = self.SetStringItem
            self.InsertStringItem = self.InsertStringItem
            font = wx.SystemSettings_GetFont(wx.SYS_SYSTEM_FONT)
        else:
            self.SetStringItem = self.SetItem
            self.InsertStringItem = self.InsertItem
            font = wx.SystemSettings.GetFont(wx.SYS_SYSTEM_FONT)

        self.SetFont(font)
Ejemplo n.º 11
0
 def __init__(self, parent, donnees):
     wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT)
     CheckListCtrlMixin.__init__(self)
     self.selectionsID = []
     self.listeColonnes, self.listeDonnees = donnees
     self.Remplissage() 
     self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated)
Ejemplo n.º 12
0
    def __init__(self, parent, data):
        wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT)
        CheckListCtrlMixin.__init__(self)

        self.data = data
        self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated)

        self.init()
Ejemplo n.º 13
0
 def __init__(self, parent):
     wx.ListCtrl.__init__(self,
                          parent,
                          style=wx.LC_REPORT | wx.LC_SINGLE_SEL
                          | wx.LC_HRULES | wx.LC_VRULES)
     CheckListCtrlMixin.__init__(self)
     if 'wxMac' in wx.PlatformInfo:
         self.SetWindowVariant(wx.WINDOW_VARIANT_SMALL)
Ejemplo n.º 14
0
    def __init__(self,
                 parent,
                 style=wx.LC_REPORT | wx.LC_HRULES | wx.LC_VRULES
                 | wx.LC_SINGLE_SEL):

        wx.ListCtrl.__init__(self, parent, style=style)
        # ListCtrlAutoWidthMixin.__init__(self)
        CheckListCtrlMixin.__init__(self)
Ejemplo n.º 15
0
    def __init__(self, parent, id=-1, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.LC_REPORT | wx.SUNKEN_BORDER):
        wx.ListCtrl.__init__(self, parent, id, pos=pos, size=size, style=style)
        CheckListCtrlMixin.__init__(self)
        ListCtrlAutoWidthMixin.__init__(self)

        self.iCol = 0
        self.iWidth = 0
        self.muteFlags = 0
Ejemplo n.º 16
0
 def __init__(self, parent, IDpersonne=None):
     wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT|wx.LC_SINGLE_SEL|wx.LC_HRULES|wx.LC_VRULES)
     CheckListCtrlMixin.__init__(self)
     self.parent = parent
     self.IDpersonne = IDpersonne
     
     self.Remplissage()
     self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated)
Ejemplo n.º 17
0
    def __init__(self, parent, parent_object, size):
        wx.ListCtrl.__init__(self, parent, -1, size=size,
                             style=wx.LC_REPORT)
        CheckListCtrlMixin.__init__(self)
        ListCtrlAutoWidthMixin.__init__(self)

        self.p = parent_object
        self.checked = []
Ejemplo n.º 18
0
 def __init__(self, parent, width, height):
     wx.ListCtrl.__init__(self,
                          parent,
                          -1,
                          style=wx.LC_REPORT,
                          size=(width, height))
     CheckListCtrlMixin.__init__(self)
     ListCtrlAutoWidthMixin.__init__(self)
Ejemplo n.º 19
0
 def __init__(self, parent, **kwargs):
     wx.ListCtrl.__init__(self,
                          parent,
                          wx.ID_ANY,
                          style=wx.LC_REPORT | wx.SUNKEN_BORDER,
                          **kwargs)
     CheckListCtrlMixin.__init__(self)
     ListCtrlAutoWidthMixin.__init__(self)
Ejemplo n.º 20
0
 def __init__(self, parent, size):
     wx.ListCtrl.__init__(self,
                          parent,
                          -1,
                          style=wx.LC_REPORT | wx.BORDER_NONE
                          | wx.LC_SINGLE_SEL,
                          size=size)
     CheckListCtrlMixin.__init__(self)
Ejemplo n.º 21
0
    def __init__(self, parent, workset_controller):
        super().__init__(parent, -1, style=wx.LC_REPORT)
        CheckListCtrlMixin.__init__(self)
        workset_controller.set_training_attr_view(self)
        self.workset_controller = workset_controller

        self.InsertColumn(0, "Name")
        self.InsertColumn(1, "Data Type")
Ejemplo n.º 22
0
 def __init__(self, parent, IDpersonne=None):
     wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT|wx.LC_SINGLE_SEL|wx.LC_HRULES|wx.LC_VRULES)
     CheckListCtrlMixin.__init__(self)
     self.parent = parent
     self.IDpersonne = IDpersonne
     
     self.Remplissage()
     self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated)
Ejemplo n.º 23
0
 def __init__(self, parent, id=-1, pos=wx.DefaultPosition,
              size=wx.DefaultSize):
     wx.ListCtrl.__init__(self, parent, id, pos, size,
         style=wx.LC_REPORT | wx.SUNKEN_BORDER)
     TextEditMixin.__init__(self)
     CheckListCtrlMixin.__init__(self)
     self.InsertColumn(0, 'URL')
     self.SetColumnWidth(0, size[1] - 60)
Ejemplo n.º 24
0
    def __init__(self, parent, data):
        wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT)
        CheckListCtrlMixin.__init__(self)

        self.data = data
        self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated)

        self.init()
Ejemplo n.º 25
0
    def __init__(self, parent):
        wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT)
        ListCtrlAutoWidthMixin.__init__(self)

        # The order here matter because we favor Check over Edit
        TextEditMixin.__init__(self)
        CheckListCtrlMixin.__init__(self)

        self.editColumns = []
Ejemplo n.º 26
0
 def __init__(self, parent):
     wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT)
     CheckListCtrlMixin.__init__(self)
     self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated)
     self.InsertColumn(0, u"文件名", width=150)
     self.InsertColumn(1, u"书名", width=150)
     self.InsertColumn(2, u"作者")
     self.InsertColumn(3, u"URL", width=300)
     self.InsertColumn(4, u"大小")
Ejemplo n.º 27
0
 def __init__(self, parent, wxid, pos, size, style=wx.LC_REPORT):
     """Init."""
     wx.ListCtrl.__init__(self, parent, id=wxid, pos=pos, size=size, style=style)
     CheckListCtrlMixin.__init__(self)
     lCtrlAWMixin.__init__(self)
     self.setResizeColumn(0)
     self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemChk)
     self.Bind(wx.EVT_COMMAND_RIGHT_CLICK, self.listMenu)
     self.Bind(wx.EVT_KEY_DOWN, self.onChar)
Ejemplo n.º 28
0
    def __init__(self, parent, id=-1, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.LC_REPORT | wx.SUNKEN_BORDER):
        wx.ListCtrl.__init__(self, parent, id, pos=pos, size=size, style=style)
        CheckListCtrlMixin.__init__(self)
        ListCtrlAutoWidthMixin.__init__(self)

        self.iCol = 0
        self.iWidth = 0
        self.OnSortOrderChangedAlert = None
        self.iInitialized = False
Ejemplo n.º 29
0
 def __init__(self, parent, m_id, ColumnsToSkip=[0]):
     wx.ListCtrl.__init__(self,
                          parent,
                          -1,
                          style=wx.LC_REPORT | wx.LC_SINGLE_SEL)
     CheckListCtrlMixin.__init__(self)
     TextEditMixin.__init__(self)
     self.Bind(wx.EVT_LIST_BEGIN_LABEL_EDIT, self.OnEndLabelEdit)
     self.ColumnsToSkip = ColumnsToSkip
Ejemplo n.º 30
0
 def __init__(self, parent):
     wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT|wx.LC_NO_HEADER)
     CheckListCtrlMixin.__init__(self)
     self.parent = parent
     
     self.dictPersonnes = self.Import_Personnes()
     self.Remplissage()
     
     self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated)
Ejemplo n.º 31
0
 def __init__(self, parent):
     wx.ListCtrl.__init__(self,
                          parent,
                          -1,
                          style=wx.LC_REPORT | wx.SUNKEN_BORDER)
     wx.lib.mixins.listctrl.TextEditMixin.__init__(
         self)  ##얘가 있으면 이제 그냥 글씨부분 선택하면 편집할 수 있게 됨.
     CheckListCtrlMixin.__init__(self)
     ListCtrlAutoWidthMixin.__init__(self)
Ejemplo n.º 32
0
 def __init__(self, parent):
     # wx.LC_REPORT :Single or multicolumn report view, with optional header
     #
     wx.ListCtrl.__init__(self,
                          parent,
                          -1,
                          style=wx.LC_REPORT | wx.SUNKEN_BORDER)
     CheckListCtrlMixin.__init__(self)
     ListCtrlAutoWidthMixin.__init__(self)
Ejemplo n.º 33
0
 def __init__(self, parent, listeColonnes, listeValeurs):
     wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT|wx.LC_SINGLE_SEL|wx.LC_HRULES|wx.LC_VRULES)
     CheckListCtrlMixin.__init__(self)
     self.parent = parent
     self.listeColonnes = listeColonnes
     self.listeValeurs = listeValeurs
     
     self.Remplissage()
     self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated)
Ejemplo n.º 34
0
	def __init__(self, parent, resize_column=None, check_callback=None):
		wx.ListCtrl.__init__(self, parent, style=wx.LC_REPORT)
		CheckListCtrlMixin.__init__(self)
		ListCtrlAutoWidthMixin.__init__(self)

		if resize_column is not None:
			self.setResizeColumn(resize_column)

		self.check_callback = check_callback
 def __init__(self, parent):
     wx.ListCtrl.__init__(self,
                          parent,
                          wx.ID_ANY,
                          style=wx.LC_REPORT
                          | wx.SUNKEN_BORDER,
                          size=(550, 150))
     CheckListCtrlMixin.__init__(self)
     ListCtrlAutoWidthMixin.__init__(self)
Ejemplo n.º 36
0
 def __init__(self, parent, listeColonnes, listeValeurs):
     wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT|wx.LC_SINGLE_SEL|wx.LC_HRULES|wx.LC_VRULES)
     CheckListCtrlMixin.__init__(self)
     self.parent = parent
     self.listeColonnes = listeColonnes
     self.listeValeurs = listeValeurs
     
     self.Remplissage()
     self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated)
Ejemplo n.º 37
0
    def __init__(self, parent):
        wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT)
        ListCtrlAutoWidthMixin.__init__(self)

        # The order here matter because we favor Check over Edit
        TextEditMixin.__init__(self)
        CheckListCtrlMixin.__init__(self)

        self.editColumns = []
Ejemplo n.º 38
0
 def __init__(self, parent):
     wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT)
     CheckListCtrlMixin.__init__(self)
     self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated)
     self.InsertColumn(0, u"文件名",width=150)
     self.InsertColumn(1, u"书名",width=150)
     self.InsertColumn(2, u"作者")
     self.InsertColumn(3, u"URL",width=300)
     self.InsertColumn(4, u"大小")
Ejemplo n.º 39
0
 def __init__(self, parent, colnum):
     wx.ListCtrl.__init__(self, parent, -1,
                          style=wx.LC_REPORT)  #initialises ListCtrl
     CheckListCtrlMixin.__init__(self)  #initialises mixin check box class
     ColumnSorterMixin.__init__(
         self, colnum
     )  #initialises mixin column sorter class with initial number of columns =colnum
     #
     self.itemDataMap = {
     }  #needed by ColumnSorterMixin for sorting the columns. A dictionary with a tuple of values for each column indexed using the data stored in each keys entry
Ejemplo n.º 40
0
 def __init__(self,
              parent,
              ID,
              pos=wx.DefaultPosition,
              size=wx.DefaultSize,
              style=0):
     self.parent = parent
     wx.ListCtrl.__init__(self, parent, ID, pos, size, style)
     CheckListCtrlMixin.__init__(self)
     listmix.TextEditMixin.__init__(self)
Ejemplo n.º 41
0
 def __init__(self, parent):
     wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT|wx.LC_NO_HEADER|wx.NO_BORDER)
     CheckListCtrlMixin.__init__(self)
     self.parent = parent
     
     self.SetBackgroundColour(couleurFondWidgets)
     self.Remplissage()
     
     self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated)
     self.Bind(wx.EVT_CONTEXT_MENU, self.OnContextMenu)
Ejemplo n.º 42
0
 def __init__(self, parent, nomBase=""):
     wx.ListCtrl.__init__(self,
                          parent,
                          -1,
                          style=wx.LC_REPORT | wx.LC_SINGLE_SEL
                          | wx.LC_HRULES | wx.LC_VRULES)
     CheckListCtrlMixin.__init__(self)
     self.parent = parent
     self.nomBase = nomBase
     self.Remplissage()
Ejemplo n.º 43
0
 def __init__(self, parent):
     wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT|wx.LC_SINGLE_SEL|wx.LC_HRULES|wx.LC_VRULES)
     CheckListCtrlMixin.__init__(self)
     self.parent = parent
     
     self.Importation()
     self.Remplissage()
     
     self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated)
     self.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OnItemSelected)
     self.Bind(wx.EVT_LIST_ITEM_DESELECTED, self.OnItemDeselected)
Ejemplo n.º 44
0
    def __init__(self, parent):
        wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT|wx.LC_NO_HEADER)
        CheckListCtrlMixin.__init__(self)
        self.parent = parent
            
        self.Remplissage()
        
        self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated)
##        self.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OnItemSelected)
##        self.Bind(wx.EVT_LIST_ITEM_DESELECTED, self.OnItemDeselected)
        self.Bind(wx.EVT_CONTEXT_MENU, self.OnContextMenu)
Ejemplo n.º 45
0
 def __init__(self, parent, width, id):
     self.XmlListCtrlId = 30
     self.BinaryListCtrlId = 31
     wx.ListCtrl.__init__(self,
                          parent,
                          id,
                          pos=(20, 280),
                          size=(width, 180),
                          style=wx.LC_REPORT)
     # surpport sort style:wx.LC_SORT_ASCENDING
     CheckListCtrlMixin.__init__(self)
Ejemplo n.º 46
0
    def __init__(self, parent):
        wx.ListCtrl.__init__(self,
                             parent,
                             -1,
                             style=wx.LC_REPORT | wx.LC_NO_HEADER)
        CheckListCtrlMixin.__init__(self)
        self.parent = parent

        self.dictPersonnes = self.Import_Personnes()
        self.Remplissage()

        self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated)
Ejemplo n.º 47
0
 def __init__(self, parent, size=(-1, -1), IDremboursement=None, IDpersonne=None):
     wx.ListCtrl.__init__(self, parent, -1, size=(size), style=wx.LC_REPORT|wx.LC_SINGLE_SEL|wx.LC_HRULES|wx.LC_VRULES)
     CheckListCtrlMixin.__init__(self)
     self.parent = parent
     self.IDpersonne = IDpersonne
     self.IDremboursement = IDremboursement
     self.montantRemboursement = 0
     
     self.MAJListeCtrl()
     
     # Binds
     self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated)
Ejemplo n.º 48
0
 def __init__(self, parent):
     CustomEditListCtrl.__init__(self, parent)                            
     CheckListCtrlMixin.__init__(self)
     # ListCtrlAutoWidthMixin.__init__(self)
     # CustomListCtrl.__init__(self)
     # ListRowHighlighter.__init__(self)                          
     
     font = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
     self.boldfont = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
     self.boldfont.SetWeight(wx.BOLD)
     self.boldfont.SetPointSize(9)
     
     self.columns = ["Name",
                     "Type",
                     "Date",
                     "Time",
                     "Action",
                     "Freq",
                     "Parameter",
                     "Status"]
                      
     for col, header in enumerate(self.columns):
         info = self.InsertColumn(col, header)
     
     self.SetColumnWidth(0, 150)
     self.SetColumnWidth(1, 80)
     self.SetColumnWidth(2, 80)
     self.SetColumnWidth(3, 80)
     self.SetColumnWidth(4, 80)
     self.SetColumnWidth(5, 100)
     self.SetColumnWidth(6, 100)
     
     self.EditorIgnore("-")
     self.SetupTextCtrl("Name")
     self.SetupDatePickerCtrl("Date")
     self.SetupTimePickerCtrl("Alarm")
     self.SetupSpinCtrl("Countdown")
     self.SetupComboBox("Action", choices=action_list)
     self.SetupComboBox("Freq", choices=freq_list)
     self.SetupTextEntryDialog("Notification", caption="Enter notification message")
     self.SetupFileDialog("RunFile", message=None, valueStr=1)
     
     self.BindEditor("Alarm", col="Time", ifcol={"Type":"Alarm"})
     self.BindEditor("Countdown", col="Time", ifcol={"Type":"Countdown"})
     self.BindEditor("Notification", col="Parameter", ifcol={"Action":"Notification"})
     self.BindEditor("RunFile", col="Parameter", ifcol={"Action":"Run File"})
     
     #bindings
     # self.Bind(wx.EVT_LIST_COL_BEGIN_DRAG, self.begin_drag)
     #pubsub
     pub.subscribe(self.pub_add_alarm, "pub_add_alarm")
     pub.subscribe(self.pub_add_countdown, "pub_add_countdown")
    def __init__(self, parent, mode=''):
        wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT)
        CheckListCtrlMixin.__init__(self)

        self.__mode = mode

        self.InsertColumn(0, "名称")
        self.InsertColumn(1, "尺寸")
        self.InsertColumn(2, "最后修改时间")

        self.SetColumnWidth(0, 250)
        self.SetColumnWidth(1, 100)
        self.SetColumnWidth(2, 200)
Ejemplo n.º 50
0
        def __init__(self, parent, id, pt, sz, style):
            wx.ListCtrl.__init__(self, parent, id, pt, sz, style | wx.LC_REPORT)
            CheckListCtrlMixin.__init__(self)
            
            info = wx.ListItem()
            info.m_mask = wx.LIST_MASK_TEXT | wx.LIST_MASK_FORMAT
            info.m_format = 0
            info.m_text = _("Behaviour")
            self.InsertColumnInfo(0, info)
            self.SetColumnWidth(0, 200)
            self.ignore_on_check_item = False

            self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated)
    def __init__(self, parent, size):
        '''
        Constructor
        '''
        
        wx.ListCtrl.__init__(self, parent, -1, size=size, style=wx.LC_REPORT)
        CheckListCtrlMixin.__init__(self)
        
        self._numItemsChecked = 0

        self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated)

        return
Ejemplo n.º 52
0
    def __init__(self, parent, callback_func):
        """
        Initialization
        :param parent: Parent window
        :param callback_func: A function to be called when
        an element is clicked
        """
        wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT \
                                 | wx.SUNKEN_BORDER)
        CheckListCtrlMixin.__init__(self)
        ListCtrlAutoWidthMixin.__init__(self)

        self.callback_func = callback_func
Ejemplo n.º 53
0
    def __init__(self, parent, callback_func):
        """
        Initialization
        :param parent: Parent window
        :param callback_func: A function to be called when
        an element is clicked
        """
        wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT \
                                 | wx.SUNKEN_BORDER)
        CheckListCtrlMixin.__init__(self)
        ListCtrlAutoWidthMixin.__init__(self)

        self.callback_func = callback_func
Ejemplo n.º 54
0
    def __init__(self,
                 parent,
                 id=-1,
                 pos=wx.DefaultPosition,
                 size=wx.DefaultSize,
                 style=wx.LC_REPORT | wx.SUNKEN_BORDER):
        wx.ListCtrl.__init__(self, parent, id, pos=pos, size=size, style=style)
        CheckListCtrlMixin.__init__(self)
        ListCtrlAutoWidthMixin.__init__(self)

        self.iCol = 0
        self.iWidth = 0
        self.muteFlags = 0
Ejemplo n.º 55
0
    def __init__(self,
                 parent,
                 id=-1,
                 pos=wx.DefaultPosition,
                 size=wx.DefaultSize,
                 style=wx.LC_REPORT | wx.SUNKEN_BORDER):
        wx.ListCtrl.__init__(self, parent, id, pos=pos, size=size, style=style)
        CheckListCtrlMixin.__init__(self)
        ListCtrlAutoWidthMixin.__init__(self)

        self.iCol = 0
        self.iWidth = 0
        self.OnSortOrderChangedAlert = None
        self.iInitialized = False
Ejemplo n.º 56
0
    def __init__(self, parent):
        wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT)
        TextEditMixin.__init__(self)
        CheckListCtrlMixin.__init__(self)
        ListCtrlAutoWidthMixin.__init__(self)
        ListRowHighlighter.__init__(self, color=MEDIUM_GREY, mode=1)

        self.InsertColumn(0, '', width=24)
        self.InsertColumn(1, 'MNEM', width=80)
        self.InsertColumn(2, 'UNIT', width=80)
        self.InsertColumn(3, 'DATA', width=160)
        self.InsertColumn(4, 'DESC')

        self.Bind(wx.EVT_LIST_BEGIN_LABEL_EDIT, self.on_begin_label_edit)
 def __init__(self, parent):
     wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT|wx.LC_NO_HEADER)
     CheckListCtrlMixin.__init__(self)
     self.parent = parent
     
     listeIDchamps = list(self.GetGrandParent().GetParent().dictChamps.keys())
     if len(listeIDchamps) != 0 :
         self.selections = listeIDchamps
     else:
         self.selections = []
         
     self.Remplissage()
     
     self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated)
     self.Bind(wx.EVT_CONTEXT_MENU, self.OnContextMenu)
Ejemplo n.º 58
0
	def __init__(self, parent):
		wx.ListCtrl.__init__(self, parent, wx.ID_ANY, style=wx.LC_REPORT | wx.SUNKEN_BORDER)
		CheckListCtrlMixin.__init__(self)
		ListCtrlAutoWidthMixin.__init__(self)

		font = wx.SystemSettings_GetFont(wx.SYS_SYSTEM_FONT)

		self.InsertColumn(0, _('Name'), width=140)
		self.InsertColumn(1, _('Size (Ko)'), width=100)
		self.InsertColumn(2, _('Repository'), width=100)
		self.InsertColumn(3, _('Path'), width=100)
		self.SetFont(font)

		### for itemData
		self.map = {}
Ejemplo n.º 59
0
    def __init__(self, parent):
        wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT|wx.SUNKEN_BORDER|wx.LC_NO_HEADER|wx.LC_HRULES)
        CheckListCtrlMixin.__init__(self)
        self.parent = parent
        
        if self.parent.GetParent().mode =="modele": 
            return
        
        self.dictDonnees = self.parent.GetParent().dictDonnees
        self.dictPersonnes = self.parent.GetParent().ImportPersonnes()
        
        self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated)

        self.InitColonnes()
        self.Remplissage()
Ejemplo n.º 60
0
    def __init__(self, parent,calibrants,settings,figure,text_ctrl_peak):
        wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT | wx.SUNKEN_BORDER)
        CheckListCtrlMixin.__init__(self)

        ListCtrlAutoWidthMixin.__init__(self)
        self.Bind(wx.EVT_LIST_BEGIN_LABEL_EDIT, self.OnBeginLabelEdit)
        self.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OnRowSelected)
        
        self.calibrants = calibrants
        self.figure = figure
        self.rowIndexDictionary = {}
        self.calibrantChargesAll = collections.OrderedDict()
        self.calibrantChargesSelected = collections.OrderedDict()
        self.settings = settings
        self.displayedProtein = ''
        self.text_ctrl_peak = text_ctrl_peak
        self.selectedRow = None