MCPcopy
hub / github.com/mherrmann/fbs / __init__

Method __init__

fbs_runtime/application_context/__init__.py:26–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

24 https://build-system.fman.io/manual/#your-python-code
25 """
26 def __init__(self):
27 if self.excepthook:
28 self.excepthook.install()
29 # Many Qt classes require a QApplication to have been instantiated.
30 # Do this here, before everything else, to achieve this:
31 self.app
32 # We don't build as a console app on Windows, so no point in installing
33 # the SIGINT handler:
34 if not is_windows():
35 self._signal_wakeup_handler = \
36 SignalWakeupHandler(self.app, self._qt_binding.QAbstractSocket)
37 self._signal_wakeup_handler.install()
38 if self.app_icon:
39 self.app.setWindowIcon(self.app_icon)
40 def run(self):
41 """
42 You should overwrite this method with the steps for starting your app.

Callers

nothing calls this directly

Calls 3

is_windowsFunction · 0.90
SignalWakeupHandlerClass · 0.90
installMethod · 0.45

Tested by

no test coverage detected