Ejemplo n.º 1
0
    def __init__(self):
        pre = wx.PreListCtrl()
        self.PostCreate(pre)
        self.Bind(wx.EVT_WINDOW_CREATE, self.on_create)
        self.Bind(wx.EVT_CONTEXT_MENU, self.on_context)
        self.Bind(wx.EVT_CHAR, self.on_char)
        self.Bind(wx.EVT_KEY_DOWN, self.on_key)

        self.Bind(wx.EVT_KILL_FOCUS, self.on_focus_change)
        self.Bind(wx.EVT_SET_FOCUS, self.on_focus_change)

        self.Bind(wx.EVT_LIST_DELETE_ALL_ITEMS, self.on_items_deleted)
        self.Bind(wx.EVT_LIST_COL_CLICK, self.sort_by_column)
        self.Bind(wx.EVT_LIST_ITEM_RIGHT_CLICK,
                  self.calculate_right_clicked_cell_value)

        self.quick_filter_frame = None
        self.original_list_data = None
        self.ignore_delete_all_items_event = False

        self.right_clicked_cell_value = ''
        self.right_clicked_cell_column_index = 0

        #override these settings if you want
        self.printer_header = ''
        self.printer_font_size = 9
        self.printer_paper_type = wx.PAPER_LETTER  #wx.PAPER_11X17
        self.printer_paper_orientation = wx.LANDSCAPE  #wx.PORTRAIT
        self.printer_paper_margins = (
            4, 4, 4, 4
        )  #specify like (0, 0, 0, 0), otherwise None means whatever default is
Ejemplo n.º 2
0
 def __init__(self):
     # Since we are using multiple inheritance, and don't know yet
     # which window is to be the parent, we'll do 2-phase create of
     # the ListCtrl instead, and call its Create method later in
     # our Create method.  (See Create below.)
     self.PostCreate(wx.PreListCtrl())
     # Also init the ComboPopup base class.
     wx.combo.ComboPopup.__init__(self)
Ejemplo n.º 3
0
 def __init__(self):
     print "EditMediaList Init"
     p = wx.PreListCtrl()
     self.PostCreate(p)
     self.Bind(wx.EVT_WINDOW_CREATE, self.OnCreate)
     self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)
     self.Bind(wx.EVT_LEFT_DCLICK, self.OnLeftDClick)
     self.Bind(wx.EVT_LIST_ITEM_RIGHT_CLICK, self.OnRClick)
     self.AddRclickItem("Play", self._DoPlay)
     self.AddRclickItem("Edit", self.DoEdit)
Ejemplo n.º 4
0
    def __init__(self):
        p = wx.PreListCtrl()
        # the Create step is done by XRC.
        self.start_pos = (0, 0)
        self.PostCreate(p)
        # Apparently the official way to do this is:
        #self.Bind(wx.EVT_WINDOW_CREATE, self.OnCreate)
        # But this seems to be the actually working way, cf:
        # http://aspn.activestate.com/ASPN/Mail/Message/wxPython-users/2169189

        self.Bind(self._firstEventType, self.OnCreate)
Ejemplo n.º 5
0
    def __init__(self, *args, **kw):
        # self.SetWindowStyle(wx.LC_REPORT|wx.NO_BORDER|wx.LC_NO_HEADER|wx.LC_SINGLE_SEL)

        self.guiUtility = GUIUtility.getInstance()
        self.utility = self.guiUtility.utility
        self.backgroundColor = wx.Colour(102, 102, 102)
        #self.ForegroundColour = wx.Colour(0,0,0)
        self.isEmpty = True  # used for DLFilesList.onListDClick
        self.updateFunc = None
        pre = wx.PreListCtrl()
        # the Create step is done by XRC.

        self.PostCreate(pre)
        self.Bind(wx.EVT_WINDOW_CREATE, self.OnCreate)
Ejemplo n.º 6
0
    def __init__(self, log=None):
        self.dismissCallback = None
        if log:
            self.log = log
        else:
            self.log = NullLog()

        # Since we are using multiple inheritance, and don't know yet
        # which window is to be the parent, we'll do 2-phase create of
        # the ListCtrl instead, and call its Create method later in
        # our Create method.  (See Create below.)
        self.PostCreate(wx.PreListCtrl())

        # Also init the ComboPopup base class.
        wx.combo.ComboPopup.__init__(self)
Ejemplo n.º 7
0
 def __init__(self):
     pre = wx.PreListCtrl()
     self.PostCreate(pre)
     self.setup()
Ejemplo n.º 8
0
 def __init__(self):
     self.query_flag = True
     p = wx.PreListCtrl()
     # the Create step is done by XRC.
     self.PostCreate(p)
     self.FILEDB = system_files.GetDirectories(None).DatabaseLocation()
Ejemplo n.º 9
0
 def __init__(self):
     l=wx.PreListCtrl()
     self.PostCreate(l)
     XrcControl.__init__(self)
Ejemplo n.º 10
0
 def __init__(self):
     self.PostCreate(wx.PreListCtrl())
     wx.combo.ComboPopup.__init__(self)
Ejemplo n.º 11
0
 def __init__(self):
     pre = wx.PreListCtrl()
     self.PostCreate(pre)
     self.Bind(wx.EVT_WINDOW_CREATE, self.OnCreate)
     self.num_past_events = 0
     self.num_future_events = 0
Ejemplo n.º 12
0
 def __init__(self):
     p = wx.PreListCtrl()
     self.PostCreate(p)
     listmix.ListCtrlAutoWidthMixin.__init__(self)
Ejemplo n.º 13
0
 def __init__(self):
     print "SortVirtList Init"
     p = wx.PreListCtrl()
     self.PostCreate(p)
     self.Bind(wx.EVT_WINDOW_CREATE, self.OnCreate)