Exemplo n.º 1
0
 def __init__(self):
     AbstractRwbGui.__init__(self, NAME, DEFAULT_SETTINGS)
     self.wm_geometry("900x500")
     port = self.get_setting("monitor.port")
     print "using port", port
     self.listener = RemoteRobotListener(self, port=port, callback=self._listen)
     self.wm_title("rwb.monitor port: %s" % self.listener.port)
     self._create_menubar()
     self._create_statusbar()
     self._create_notebook()
     self.stack = []
     self.event_id = 0
Exemplo n.º 2
0
    def __init__(self, *args, **kwargs):
        AbstractRwbGui.__init__(self, NAME, DEFAULT_SETTINGS)
        self.working_set = sys.argv[1:]

        self.wm_title("Keyword Browser - Robot Framework Workbench")
        self.kwt = KwBrowser(self, borderwidth=1, relief="solid")
        menubar = Menubar(self)
        self.statusbar = Statusbar(self)
        self.statusbar.pack(side="bottom", fill="x")
        self.kwt.pack(side="top", fill="both", expand=True, padx=4)
        self.bind("<<Reload>>", lambda event: self.reload())
        self.bind("<<LoadFile>>", lambda event: self.load_resource())
        self.configure(menu=menubar)
        self.reload()
Exemplo n.º 3
0
 def __init__(self):
     AbstractRwbGui.__init__(self, NAME, DEFAULT_SETTINGS)
     self.wm_geometry("900x500")
     port = self.get_setting("monitor.port")
     print "using port", port
     self.listener = RemoteRobotListener(self,
                                         port=port,
                                         callback=self._listen)
     self.wm_title("rwb.monitor port: %s" % self.listener.port)
     self._create_menubar()
     self._create_statusbar()
     self._create_notebook()
     self.stack = []
     self.event_id = 0
Exemplo n.º 4
0
    def __init__(self):
        # Among other things, this constructor initializes
        # logging and preferences. 
        AbstractRwbGui.__init__(self, NAME, DEFAULT_SETTINGS)
        self.wm_geometry("800x600")
        self.tally = RobotTally()
        self._create_fonts()
        self._create_menubar()
        self._create_statusbar()
        self._create_toolbar()
#        self._create_command_line()
        self._create_notebook()

        self.register(GeneralSettingsFrame)
        
        self._controller = RobotController(self)
        self._controller.configure(listeners=(self.console,self.log_tree,
                                              self.log_messages, self.tally,
                                              self))
Exemplo n.º 5
0
    def __init__(self):
        args = self._parse_args()

        AbstractRwbGui.__init__(self, NAME, DEFAULT_SETTINGS, args)

        self._create_menubar()
        self._create_toolbar()
        self._create_statusbar()

        vsb = ttk.Scrollbar(self, orient="vertical")
        self.viewer = LogTree(self, fail_only=self.args.fail_only, condensed=self.args.condensed)
        vsb.configure(command=self.viewer.tree.yview)
        self.viewer.tree.configure(yscrollcommand=vsb.set)
        self.toolbar.pack(side="top", fill="x")
        self.statusbar.pack(side="bottom", fill="x")
        vsb.pack(side="right", fill="y")
        self.viewer.pack(side="top", fill="both", expand=True)
        self.viewer.tree.bind("<<TreeviewSelect>>", self._on_select)
        
        if self.args.file != None:
            self.after_idle(self.after, 1, lambda path=self.args.file: self.open(path))
#            self.after_idle(self.after, 1, lambda path=sys.argv[1]: self.open(path))
        self.wm_protocol("WM_DELETE_WINDOW", self.on_delete_window)