Commits

Moises Henriquez committed 7d51506

Connect bot control button signals

  • Participants
  • Parent commits 80cec80

Comments (0)

Files changed (1)

File src/vpackager/bot.py

         self.set_position(gtk.WIN_POS_CENTER)
         self.body.pack_start(self._get_menubar(), False, True, 2)
         self.tabstrip = guitools.TabStrip()
-        self.bot_tab = StatusTab(model = self.dbase_model)
+        self.bot_tab = StatusTab(_parentView = self,
+                                 model = self.dbase_model)
+        #self.bot_tab = StatusTab(model = self.dbase_model, )
 
         # Bot control and status bar.
         bot_controlbar = gtk.HBox()
         self.connect('destroy', gtk.main_quit)
         self.set_size_request(700,400)
 
+        # Connect the start/stop buttons
+        self.bt_bot_start.connect('clicked', self.StartBot)
+        self.bt_bot_stop.connect('clicked', self.StopBot)
+
+        # Initialize the dispatcher
+        self.dispatcher = Dispatcher(model = self.dbase_model,
+                                     view = self.bot_tab)
+
         # Force initial display of the queue and history
         self.dbase_model.RefreshQueue()
         self.dbase_model.RefreshHistory()
         self.RUN_BOT = True
         if widget:
             widget.set_sensitive(False)
-        self.bt_bot_stop.set_sentivie(True)
+        self.bt_bot_stop.set_sensitive(True)
 
         try:
             self.dispatcher.start()