Moises Henriquez avatar Moises Henriquez committed 7d51506

Connect bot control button signals

Comments (0)

Files changed (1)

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()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.