Skip to content

Commit

Permalink
Adding version number to GUI header and bug report link.
Browse files Browse the repository at this point in the history
  • Loading branch information
fgoudreault committed Aug 9, 2017
1 parent 74db18c commit f0d5bd8
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion auxiclean/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@
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:
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()
Expand Down Expand Up @@ -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("<Button-1>", 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()
Expand Down

0 comments on commit f0d5bd8

Please sign in to comment.