예제 #1
0
 def _append(self, item):
     self.items.append(item)
     # Nothing to do if the set of attributes has been fixed by the user
     if not self.attrs:
         for attr in ipipe.xattrs(item):
             attr = ipipe.upgradexattr(attr)
             if attr not in self._displayattrset:
                 self._displayattrs.append(attr)
                 self._displayattrset.add(attr)
예제 #2
0
 def _append(self, item):
     self.items.append(item)
     # Nothing to do if the set of attributes has been fixed by the user
     if not self.attrs:
         for attr in ipipe.xattrs(item):
             attr = ipipe.upgradexattr(attr)
             if attr not in self._displayattrset:
                 self._displayattrs.append(attr)
                 self._displayattrset.add(attr)
예제 #3
0
 def __init__(self, input, fontsize, *attrs):
     wx.grid.PyGridTableBase.__init__(self)
     self.input = input
     self.iterator = ipipe.xiter(input)
     self.items = []
     self.attrs = [ipipe.upgradexattr(attr) for attr in attrs]
     self._displayattrs = self.attrs[:]
     self._displayattrset = set(self.attrs)
     self._sizing = False
     self.fontsize = fontsize
     self._fetch(1)
예제 #4
0
 def __init__(self, input, fontsize, *attrs):
     wx.grid.PyGridTableBase.__init__(self)
     self.input = input
     self.iterator = ipipe.xiter(input)
     self.items = []
     self.attrs = [ipipe.upgradexattr(attr) for attr in attrs]
     self._displayattrs = self.attrs[:]
     self._displayattrset = set(self.attrs)
     self.fontsize = fontsize
     self._fetch(1)
     self.timer = wx.Timer()
     self.timer.Bind(wx.EVT_TIMER, self.refresh_content)
예제 #5
0
파일: igrid.py 프로젝트: yumei165/ipython
 def __init__(self, input, fontsize, *attrs):
     wx.grid.PyGridTableBase.__init__(self)
     self.input = input
     self.iterator = ipipe.xiter(input)
     self.items = []
     self.attrs = [ipipe.upgradexattr(attr) for attr in attrs]
     self._displayattrs = self.attrs[:]
     self._displayattrset = set(self.attrs)
     self.fontsize = fontsize
     self._fetch(1)
     self.timer = wx.Timer()
     self.timer.Bind(wx.EVT_TIMER, self.refresh_content)