Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
victordomingos authored Feb 26, 2018
1 parent 014a59a commit 4474d47
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions ctt_tracking/ctt_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self, master):
self.master.createcommand('exit', save_and_exit)
master.title(__app_name__+ " - "+ __version__)
master.minsize(width=800, height=600)
#master.maxsize(width=1024, height=2000)
master.maxsize(width=2024, height=2000)

self.callBacks = Callbacks(self) # Vai buscar ao módulo externo os métodos que pertenciam a esta classe.

Expand Down Expand Up @@ -287,32 +287,17 @@ def __init__(self, master):


if __name__ == "__main__":
sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8')
sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8')
logging.basicConfig(filename=DEBUG_PATH,
filemode='a',
format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s',
datefmt='%H:%M:%S',
level=logging.DEBUG)

user_info = basicLogInfo()
logging.debug(user_info.generate_log_string())

print("\nBem-vindo(a) ao {} ({})!\n".format(__app_name__, __version__))
print(__copyright__)
print(__license__)
print("\n\n - A inicializar base de dados principal.")
db_inicializar()
print(" - A preparar interface gráfica.")
print(" * ", end="", flush=True)
root = Tk()
print("* ", end="", flush=True)
root.configure(background='grey95')
print("* ", end="", flush=True)
root.geometry('860x650+0+0')
print("* ", end="", flush=True)
janela = Janela(root)
print("*", end="", flush=True)
root.bind_all("<Mod2-q>", exit)
print("\n\n - Até já! :-)\n\n")
root.mainloop()

0 comments on commit 4474d47

Please sign in to comment.