(self, ifile, configuration)
| 338 | return False |
| 339 | |
| 340 | def load(self, ifile, configuration): |
| 341 | self.lastUpdateTime = os.stat(ifile).st_mtime |
| 342 | self.ifile = ifile |
| 343 | |
| 344 | _module = load_source(self.ifile) |
| 345 | |
| 346 | configuration.configDict = _module.configuration |
| 347 | |
| 348 | # finding App class |
| 349 | clsmembers = inspect.getmembers(_module, inspect.isclass) |
| 350 | |
| 351 | app_init_fnc = None |
| 352 | for (name, value) in clsmembers: |
| 353 | if issubclass(value, App) and name != 'App': |
| 354 | app_init_fnc = value |
| 355 | |
| 356 | if app_init_fnc == None: |
| 357 | return None |
| 358 | |
| 359 | members_list = app_init_fnc.__dict__.values() |
| 360 | for m in members_list: |
| 361 | if inspect.isfunction(m) and m.__name__ not in ['__init__', 'main', 'idle', 'construct_ui']: |
| 362 | import types |
| 363 | setattr(self, m.__name__, types.MethodType(m, self)) |
| 364 | print(m.__name__) |
| 365 | root_widget = app_init_fnc.construct_ui(self) |
| 366 | return root_widget |
| 367 | |
| 368 | def check_pending_listeners(self, widget, widgetVarName, force=False): |
| 369 | code_nested_listener = '' |
no test coverage detected