def __init__(self): self.hwnd = None rc_file = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'nx_work_log.rc') self.resources = win32rcparser.Parse(rc_file) self.minutes = 0 self.time_changed_callback = None
def DemoModal(): # Load the .rc file. resources = win32rcparser.Parse(g_rcname) for id, ddef in resources.dialogs.items(): print("Displaying dialog", id) w = DemoWindow(ddef) w.DoModal()
def setUp(self): rc_file = os.path.join(os.path.dirname(__file__), "win32rcparser", "test.rc") self.resources = win32rcparser.Parse(rc_file)