summaryrefslogtreecommitdiff
path: root/voctogui/lib/toolbar/misc.py
blob: 91ccf79bff126a6787405ef9033f77894a9a1abe (plain)
  1. import logging
  2. from gi.repository import Gtk
  3. from lib.config import Config
  4. import lib.connection as Connection
  5. class MiscToolbarController(object):
  6. """ Manages Accelerators and Clicks Misc buttons """
  7. def __init__(self, drawing_area, win, uibuilder):
  8. self.log = logging.getLogger('MiscToolbarController')
  9. closebtn = uibuilder.find_widget_recursive(drawing_area, 'close')
  10. closebtn.connect('clicked', self.on_btn_clicked)
  11. def on_btn_clicked(self, btn):
  12. self.log.info('close-button clicked')
  13. Gtk.main_quit()