rendered paste bodyrom qt import *
from widgets import *
false = 0
true = 1
class elcardsgui (object):
main_win = None
def __init__(self, args):
app = QApplication(args)
app.connect(app, SIGNAL('lastWindowClosed()'), app, SLOT('quit()'))
self.main_win = main_window()
app.setMainWidget(self.main_win)
def show_char_select(self, names):
return self.main_win.show_chooser(names)
def show_deck_select(self, deck_names):
return self.main_win.show_chooser(deck_names)
#TODO Insert code here.
def gui_start():
gui = elcardsgui()
return gui