#!/usr/bin/env python
# -*- coding: utf-8 -*-

from PyQt4 import QtCore, QtGui, uic
from PyQt4.QtCore import *
from PyQt4.QtGui import *

def run(app):
    # Set the look and feel
    QtGui.QApplication.setStyle(QtGui.QStyleFactory.create("Cleanlooks"))

    main = uic.loadUi("main.ui")
    main.mods.initialize()

    #main.setAcceptDrops(True)
    #main.mods.setAcceptDrops(True)
    # table = MyTable(main.mods)
    # main.addWidget(MyTable())

    # Center on screen
    screen = QtGui.QDesktopWidget().screenGeometry()
    size = main.geometry()
    main.move((screen.width()-size.width())/2, (screen.height()-size.height())/2)

    # show widget
    main.show()

    # Run
    app.exec_()

import sys
run(QtGui.QApplication(sys.argv))

@@ -131,16 +131,131 @@
 port *%0A%0A
+class Signals:%0A    pass%0ASignals.Triggered = %22triggered()%22%0ASignals.Close = %22close()%22%0ASignals.Clicked = %22clicked()%22%0A%0A
 def run(
@@ -420,24 +420,184 @@
 itialize()%0A%0A
+    exit = main.actionQuit%0A    exit.setShortcut('Ctrl+Q')%0A    exit.setStatusTip('Quit')%0A    main.connect(exit, SIGNAL(Signals.Triggered), SLOT(Signals.Close))%0A%0A
     #main.se

enable quit