Created
July 21, 2016 18:50
-
-
Save akhilman/5c5a02080d45aef3c8807839c9ff11d4 to your computer and use it in GitHub Desktop.
Tk main window with cement framework
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tkinter as tk | |
from . import darktheme | |
class MainWindow(tk.Tk): | |
def __init__(self): | |
super().__init__() | |
self.app = None | |
def _setup(self, app): | |
self.app = app | |
darktheme.setup(self) | |
self.protocol("WM_DELETE_WINDOW", self.quit) | |
app.extend('mainwindow', self) | |
@property | |
def log(self): | |
return self.app.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment