From f0d5bd8562f3dcebcdf1147d02aa3ee45a4dc969 Mon Sep 17 00:00:00 2001 From: fgoudreault Date: Wed, 9 Aug 2017 15:29:05 -0400 Subject: [PATCH] Adding version number to GUI header and bug report link. --- auxiclean/browser.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/auxiclean/browser.py b/auxiclean/browser.py index e201ea5..da9fb93 100644 --- a/auxiclean/browser.py +++ b/auxiclean/browser.py @@ -2,9 +2,11 @@ from .handler import TextHandler from tkinter import filedialog, scrolledtext from auxiclean import MAINLOGGER +import auxiclean import tkinter as tk import os import logging +import webbrowser class Browser: @@ -12,7 +14,8 @@ def __init__(self, master): self.master = master self.frame = tk.Frame(self.master) self.frame.grid(sticky=tk.E + tk.W) - self.master.title("Auxiclean - GUI") + self.master.title("Auxiclean - GUI - version: %s" % + auxiclean.__version__) # browser logger self.logger = logging.getLogger("auxiclean.browser") self.createMainWindow() @@ -56,6 +59,16 @@ def createMainWindow(self): # Logging configuration MAINLOGGER.addHandler(self.text_handler) + # bug report link (button) + self.bug_report = tk.Label(self.frame, + text="Il y a un bug? Écrivez le ici!", + fg="blue", + cursor="hand2") + self.bug_report.grid(column=0) + self.bug_report.bind("", self.bug_callback) + + def bug_callback(self, event): + webbrowser.open_new(r"https://github.com/physumasso/auxiclean/issues") def run_selector(self): path = self.pathBox.get()