Exemplo n.º 1
0
def main():
    from method.gui import mainGui
    from method.dbInit import dbInit
    from method.utils import chms_logger, logFileLimit

    logger = chms_logger.set_operate_logger(__name__)

    logFileLimit.check_logfile()
    dbInit.db_init()
    logger.info("START chms")
    mainGui.call_mainGui()
    logFileLimit.check_logfile()
    logger.info("END chms")
Exemplo n.º 2
0
import wx
from . import mainGui, common, mainGraphNote
from method.utils import chms_logger

logger = chms_logger.set_operate_logger(__name__)


class Graph(wx.Frame):
    def __init__(self, parent, id, title, statistics_info_dict):
        frame_size = common.graph_frame_size()
        use_display_size = common.graph_use_display_size()
        wx.Frame.__init__(self,
                          parent,
                          id,
                          title,
                          size=frame_size,
                          pos=use_display_size)
        self.SetIcon(common.get_icon())
        MainPanel(self, statistics_info_dict)
        self.Bind(wx.EVT_CLOSE, self.frame_close)
        self.Show()

    def frame_close(self, event):
        self.Destroy()

    def frame_close_oparate(self):
        self.Destroy()


class MainPanel(wx.Panel):
    def __init__(self, parent, statistics_info_dict):