def main(): print("This program comes with ABSOLUTELY NO WARRANTY") print( "This is free software, and you are welcome to redistribute it under the terms of the GNU GPL:" ) print(" https://www.gnu.org/licenses/gpl-3.0.en.html") app = App() while True: try: app.mainloop() break except UnicodeDecodeError: pass
from gui.app import App import os import json import logging # Logging logger = logging.getLogger("kburns-slideshow") logger.setLevel(logging.DEBUG) handler = logging.FileHandler( os.path.dirname(os.path.realpath(__file__)) + '/kburns-slideshow-gui.log') handler.setLevel(logging.DEBUG) formatter = logging.Formatter('%(asctime)s | %(levelname)s | %(message)s') handler.setFormatter(formatter) logger.addHandler(handler) if __name__ == "__main__": app = App("kbvs") app.mainloop()
def main(): """Creates and runs the torrent client app""" app = App() app.mainloop()
import tkinter as tk from gui.app import App main = App(tk.Tk()) main.mainloop()