def __init__(self, root): super().__init__(root) self["padx"] = 4 self["pady"] = 4 self.title("Citation") self.resizable(FALSE, FALSE) placeWindow(self, 488, 135) v = version.version() year = version.date().split()[2] url = "https://github.com/bahniks/CM_Manager_{}_{}_{}".format(*v) text = ("Please cite this software as:\n\n" + "Bahník, Š. ({}). Carousel Maze Manager (Version {}.{}.{}) ". format(year, *v) + "[Software]. Available from {}".format(url)) self.text = Text(self, height=5, width=70, relief="flat", wrap="word", background=self.cget("background")) self.text.grid(column=0, row=0, padx=6, pady=6) self.text.insert("end", text) self.close = ttk.Button(self, text="Close", command=self.destroy) self.close.grid(column=0, row=1, pady=7)
def __init__(self, root): super().__init__(root) self["padx"] = 4 self["pady"] = 4 self.version = ".".join(version.version()) self.title("About") self.resizable(FALSE, FALSE) placeWindow(self, 488, 303) line12 = "Carousel Maze Manager\nVersion " + self.version + "\n" + version.date( ) + "\n\n" line5 = "Copyright " + version.copyleft( ) + " Štěpán Bahník\[email protected]\n\n" line6 = "This program comes with ABSOLUTELY NO WARRANTY.\n" line8 = "This is free software, and you are welcome to redistribute\n" line9 = "it under certain conditions; click " line10 = "here" line11 = " for details.\n\n" self.aboutText = Text(self, height=15, width=58, relief="flat", background=self.cget("background")) self.aboutText.grid(column=0, row=0, padx=6, pady=6) text = line12 + line5 + line6 + line8 + line9 self.aboutText.insert("end", text) self.aboutText.insert("end", line10, "link") self.aboutText.insert("end", line11) self.aboutText.tag_configure("link", foreground="blue") self.aboutText.tag_bind("link", "<1>", lambda e: self.link(e)) self.aboutText.tag_bind("link", "<Enter>", lambda e: self._enter(e)) self.aboutText.tag_bind("link", "<Leave>", lambda e: self._leave(e)) filepath = os.path.join(os.getcwd(), "Stuff", "Modules", "GNUlogo.gif") self.logo = PhotoImage(file=filepath) self.aboutText.insert("end", " " * 21) self.aboutText.image_create("end", image=self.logo) self.aboutExit = ttk.Button(self, text="Close", command=self.aboutExit) self.aboutExit.grid(column=0, row=1, pady=7)
def __init__(self, root): super().__init__(root) self["padx"] = 4 self["pady"] = 4 self.version = ".".join(version.version()) self.title("About") self.resizable(FALSE, FALSE) placeWindow(self, 488, 303) line12 = "Carousel Maze Manager\nVersion " + self.version + "\n" + version.date() + "\n\n" line5 = "Copyright " + version.copyleft() + " Štěpán Bahník\[email protected]\n\n" line6 = "This program comes with ABSOLUTELY NO WARRANTY.\n" line8 = "This is free software, and you are welcome to redistribute\n" line9 = "it under certain conditions; click " line10 = "here" line11 = " for details.\n\n" self.aboutText = Text(self, height=15, width=58, relief="flat", background=self.cget("background")) self.aboutText.grid(column=0, row=0, padx=6, pady=6) text = line12 + line5 + line6 + line8 + line9 self.aboutText.insert("end", text) self.aboutText.insert("end", line10, "link") self.aboutText.insert("end", line11) self.aboutText.tag_configure("link", foreground="blue") self.aboutText.tag_bind("link", "<1>", lambda e: self.link(e)) self.aboutText.tag_bind("link", "<Enter>", lambda e: self._enter(e)) self.aboutText.tag_bind("link", "<Leave>", lambda e: self._leave(e)) filepath = os.path.join(os.getcwd(), "Stuff", "Modules", "GNUlogo.gif") self.logo = PhotoImage(file=filepath) self.aboutText.insert("end", " " * 21) self.aboutText.image_create("end", image=self.logo) self.aboutExit = ttk.Button(self, text="Close", command=self.aboutExit) self.aboutExit.grid(column=0, row=1, pady=7)
def __init__(self, root): super().__init__(root) self["padx"] = 4 self["pady"] = 4 self.title("Citation") self.resizable(FALSE, FALSE) placeWindow(self, 488, 135) v = version.version() year = version.date().split()[2] url = "https://github.com/bahniks/CM_Manager_{}_{}_{}".format(*v) text = ("Please cite this software as:\n\n" + "Bahník, Š. ({}). Carousel Maze Manager (Version {}.{}.{}) ".format(year, *v) + "[Software]. Available from {}".format(url)) self.text = Text(self, height = 5, width = 70, relief = "flat", wrap = "word", background = self.cget("background")) self.text.grid(column = 0, row = 0, padx = 6, pady = 6) self.text.insert("end", text) self.close = ttk.Button(self, text = "Close", command = self.destroy) self.close.grid(column = 0, row = 1, pady = 7)