OperationBox.py 349 B

12345678910111213141516171819
  1. import gi
  2. gi.require_version('Gtk', '3.0')
  3. from gi.repository import Gtk
  4. class OperationBox(Gtk.VBox):
  5. def __init__(self, *args, **kwds):
  6. super().__init__(*args, **kwds)
  7. self.current_selection=None
  8. self.init(None)
  9. def init(self, sel):
  10. self.current_selection=sel
  11. if sel: pass
  12. else: pass