Esempio n. 1
0
    def __init__(self):
        TkTransparent.__init__(self, settings.STATUS_WINDOW_TITLE, None, False)
        self.dimensions = Dimensions(300, 200,
                                     self.winfo_screenwidth() - 300,
                                     self.winfo_screenheight() - 200)
        self.wm_geometry(self.get_dimensions_string())
        #         self._canvas.destroy()
        self.v = StringVar()
        self.v.set("Caster Status Window")
        self.label = tk.Label(self, textvariable=self.v)

        self.grip = tk.Label(self,
                             bitmap="gray25",
                             height=100,
                             width=40,
                             background="green")
        self.grip.pack(side="left", fill="y")
        self.label.pack(side="right", fill="both", expand=True)

        self.grip.bind("<ButtonPress-1>", self.start_move)
        self.grip.bind("<ButtonRelease-1>", self.stop_move)
        self.grip.bind("<B1-Motion>", self.on_motion)

        self.visible_messages = []

        self.mainloop()
Esempio n. 2
0
    def __init__(self, grid_size=None, tirg=None, auto_quit=False):
        self.setup_XMLRPC_server()
        TkTransparent.__init__(self, settings.LEGION_TITLE, grid_size)
        self.attributes("-alpha", 0.7)

        self.tirg_positions = {}
        if tirg != None:
            self.process_rectangles(tirg)
            self.draw_tirg_squares()

        self.mainloop()
Esempio n. 3
0
 def __init__(self, grid_size=None, tirg=None, auto_quit=False):
     self.setup_xmlrpc_server()
     TkTransparent.__init__(self, settings.LEGION_TITLE, grid_size)
     self.attributes("-alpha", 0.7)
     
     self.tirg_positions = {}
     if tirg is not None:
         self.process_rectangles(tirg)
         self.draw_tirg_squares()
     
     self.mainloop()
Esempio n. 4
0
    def __init__(self, grid_size=None, tirg=None, auto_quit=False):
        self.setup_xmlrpc_server()
        TkTransparent.__init__(self, settings.LEGION_TITLE, grid_size)
        self.attributes("-alpha", 0.7)
        self.max_rectangle_width = int(
            grid_size.width/settings.SETTINGS["miscellaneous"]["legion_vertical_columns"])
        self.tirg_positions = {}
        if tirg is not None:
            self.process_rectangles(tirg)
            self.draw_tirg_squares()

        self.mainloop()
Esempio n. 5
0
    def __init__(self):
        TkTransparent.__init__(self, settings.STATUS_WINDOW_TITLE, None, False)
        self.dimensions=Dimensions(300, 200, self.winfo_screenwidth()-300, self.winfo_screenheight()-200)
        self.wm_geometry(self.get_dimensions_string())
#         self._canvas.destroy()
        self.v = StringVar()
        self.v.set("Caster Status Window")
        self.label = tk.Label(self, textvariable=self.v)
        
        self.grip = tk.Label(self, bitmap="gray25", height=100, width=40, background="green")
        self.grip.pack(side="left", fill="y")
        self.label.pack(side="right", fill="both", expand=True)

        self.grip.bind("<ButtonPress-1>", self.start_move)
        self.grip.bind("<ButtonRelease-1>", self.stop_move)
        self.grip.bind("<B1-Motion>", self.on_motion)
        
        self.visible_messages=[]
        
        self.mainloop()
Esempio n. 6
0
 def setup_XMLRPC_server(self):
     TkTransparent.setup_XMLRPC_server(self)
     self.server.register_function(self.xmlrpc_retrieve_data_for_highlight,
                                   "retrieve_data_for_highlight")
     self.server.register_function(self.xmlrpc_go, "go")
Esempio n. 7
0
 def setup_xmlrpc_server(self): 
     TkTransparent.setup_xmlrpc_server(self)
     self.server.register_function(self.xmlrpc_retrieve_data_hlight, "retrieve_data_for_highlight")
     self.server.register_function(self.xmlrpc_go, "go")