Initial commit n push

This commit is contained in:
2020-05-07 19:07:33 -05:00
parent 9c642bfba4
commit 4ceb32f7b7
9 changed files with 195 additions and 0 deletions

29
src/__init__.py Normal file
View File

@@ -0,0 +1,29 @@
# Python imports
import inspect
# Gtk imports
# Application imports
from utils import Settings
from signal_classes import Signals
class Main:
def __init__(self, args):
settings = Settings()
builder = settings.returnBuilder()
# Gets the methods from the classes and sets to handler.
# Then, builder connects to any signals it needs.
classes = [Signals(settings)]
handlers = {}
for c in classes:
methods = inspect.getmembers(c, predicate=inspect.ismethod)
handlers.update(methods)
builder.connect_signals(handlers)
window = settings.createWindow()
window.show()