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()
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()
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()
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()
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()
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")
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")