예제 #1
0
 def populate(self, pkgs):
     self.freeze_child_notify()
     self.set_model(None)
     self.store.clear()
     self.set_model(self.store)
     if pkgs:
         i = 0
         for po in sorted(pkgs, key=lambda po: po.name):
             i += 1
             if i % 500:  # Handle Gtk event, so gui dont freeze
                 doGtkEvents()
             self.store.append([po, str(po)])
     self.thaw_child_notify()
     # reset the selection column header selection state
     self.state = 'normal'
     self._last_selected = []
예제 #2
0
파일: views.py 프로젝트: rbuj/yumex-dnf
 def populate(self, pkgs):
     self.freeze_child_notify()
     self.set_model(None)
     self.store.clear()
     self.set_model(self.store)
     if pkgs:
         i = 0
         for po in sorted(pkgs, key=lambda po: po.name):
             i += 1
             if i % 500:  # Handle Gtk event, so gui dont freeze
                 doGtkEvents()
             self.store.append([po, str(po)])
     self.thaw_child_notify()
     # reset the selection column header selection state
     self.state = 'normal'
     self._last_selected = []
예제 #3
0
 def _set_normal_cursor(self):
     """Set Normal cursor in main window."""
     win = self.get_window()
     if win is not None:
         win.set_cursor(None)
     misc.doGtkEvents()
예제 #4
0
 def _set_busy_cursor(self, insensitive=False):
     """Set busy cursor in main window."""
     win = self.get_window()
     if win is not None:
         win.set_cursor(Gdk.Cursor(Gdk.CursorType.WATCH))
     misc.doGtkEvents()
예제 #5
0
파일: __init__.py 프로젝트: rbuj/yumex-dnf
 def _set_normal_cursor(self):
     """Set Normal cursor in main window."""
     win = self.get_window()
     if win is not None:
         win.set_cursor(None)
     misc.doGtkEvents()
예제 #6
0
파일: __init__.py 프로젝트: rbuj/yumex-dnf
 def _set_busy_cursor(self, insensitive=False):
     """Set busy cursor in main window."""
     win = self.get_window()
     if win is not None:
         win.set_cursor(Gdk.Cursor(Gdk.CursorType.WATCH))
     misc.doGtkEvents()