sys.exit(1)

date = datetime.now()
current_project_id = 0

# TODO - cleanup this too.
username, password = db_connect_creds.read_creds()
cxn = MySQLdb.connect('localhost', username, password)
cur = cxn.cursor()
db_setup.create_db(cur, db_setup.INFERNAL_DB, username, password)
cxn.commit()
cxn.close()

cxn = MySQLdb.connect('localhost', username, password, db=db_setup.INFERNAL_DB)
cur = cxn.cursor()
db_setup.create_projects_table(cur)
db_setup.create_reports_table(cur)


class Example(wx.Frame):

    def __init__(self, parent, title):
        super(Example, self).__init__(parent, title=title,
            size=(600, 450))

        self.InitUI()

        self.Centre()
        self.Show()

    global MultiLine
Пример #2
0
    sys.exit(1)

date = datetime.now()
current_project_id = 0

# TODO - cleanup this too.
username, password = db_connect_creds.read_creds()
cxn = MySQLdb.connect('localhost', username, password)
cur = cxn.cursor()
db_setup.create_db(cur, db_setup.INFERNAL_DB, username, password)
cxn.commit()
cxn.close()

cxn = MySQLdb.connect('localhost', username, password, db=db_setup.INFERNAL_DB)
cur = cxn.cursor()
db_setup.create_projects_table(cur)
db_setup.create_reports_table(cur)


class Example(wx.Frame):

    def __init__(self, parent, title):
        super(Example, self).__init__(parent, title=title,
            size=(600, 450))

        self.InitUI()

        self.Centre()
        self.Show()

    global MultiLine