Exemple #1
0
    def __init__(self, parent):

        HyperlinkLabel.__init__(self,
            parent,
            text="Поиск",
            url=DEFAULT_URL,
            wraplength=50,  # updated in __configure_event below
            anchor=tk.NW)
        self.bind('<Configure>', self.__configure_event)
Exemple #2
0
 def __init__(self, parent):
     HyperlinkLabel.__init__(
         self,
         parent,
         text="Fetching Patrol...",
         url=DEFAULT_URL,
         popup_copy=True,
         # wraplength=50,  # updated in __configure_event below
         anchor=tk.NW)
Exemple #3
0
 def __init__(self, *args, **kwargs):
     HyperlinkLabel.__init__(self, *args, **kwargs)
     self.system_name = ''
     self.menu = tk.Menu(self, tearoff=0)
     self.menu.add_command(label="Copy system name", command = self.copy_text)
     self.menu.add_command(label="View system in EDSM", command = self.edsm_browser)
     self.menu.add_command(label="View system in EDDB", command = self.eddb_browser)
     self.menu.add_command(label="View system in Inara", command = self.inara_browser)
     self.menu.add_command(label="View nearest in Inara", command = self.inara_nearest)
     self.bind("<Button-3>", self.rightclick)
Exemple #4
0
 def __init__(self, parent):
     HyperlinkLabel.__init__(
         self,
         parent,
         text="Fetching News...",
         url=DEFAULT_NEWS_URL,
         wraplength=50,  # updated in __configure_event below
         anchor=tk.NW)
     self.resized = False
     self.bind('<Configure>', self.__configure_event)
Exemple #5
0
    def __init__(self, parent):

        HyperlinkLabel.__init__(
            self,
            parent,
            text="Получение патруля",
            url=DEFAULT_URL,
            popup_copy=True,
            #wraplength=50, # updated
            #in __configure_event below
            anchor=tk.NW)
Exemple #6
0
    def __init__(self, parent):

        HyperlinkLabel.__init__(
            self,
            parent,
            text="Получение патруля",
            url=DEFAULT_URL,
            popup_copy=True,
            wraplength=50,  # updated in __configure_event below
            anchor=tk.NW)
        self.resized = False
        self.bind('<Configure>', self.__configure_event)
Exemple #7
0
    def __init__(self, parent):
        "Initialise the ``HuttonNews``."

        HyperlinkLabel.__init__(
            self,
            parent,
            text="Fetching...",
            url=DEFAULT_NEWS_URL,
            wraplength=50,  # updated in __configure_event below
            anchor=tk.NW)
        self.bind('<Configure>', self.__configure_event)
        self.after(250, self.news_update)
    def __init__(self, parent):

        HyperlinkLabel.__init__(
            self,
            parent,
            text=
            "Пожалуйста, поставьте EDMC версии 3.5 или выше по этой ссылке",
            url="https://github.com/Marginal/EDMarketConnector/releases",
            popup_copy=True,
            # wraplength=50, # updated
            # in __configure_event below
            anchor=tk.NW)
Exemple #9
0
    def __init__(self, *a, **kw):
        "Init."

        HyperlinkLabel.__init__(self, *a, **kw)
        self.bind('<Configure>', self.__configure_event)