Exemplo n.º 1
0
 def show_variables_window(self):
     '''
     If bot has variables and var window not visible then create it
     '''
     if self.var_window is None and self.bot._vars:
         self.var_window = VarWindow(self, self.bot, '%s variables' % (self.title or 'Shoebot'))
         self.var_window.window.connect("destroy", self.var_window_closed)
Exemplo n.º 2
0
 def show_variables_window(self):
     """
     Show the variables window.
     """
     if self.var_window is None and self.bot._vars:
         self.var_window = VarWindow(self, self.bot, '%s variables' % (self.title or 'Shoebot'))
         self.var_window.window.connect("destroy", self.var_window_closed)
Exemplo n.º 3
0
    def rendering_finished(self, size, frame, cairo_ctx):
        ''' Delegates to the ShoebotWidget '''
        ## A bit hacky... but makes sure bot has executed once:
        if self.show_vars and self.var_window is None:
            self.var_window = VarWindow(self, self.bot)

        return self.sb_widget.rendering_finished(size, frame, cairo_ctx)