MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / run

Function run

src/bitmessageqt/__init__.py:4398–4425  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4396
4397
4398def run():
4399 global myapp
4400 app = init()
4401 change_translation(l10n.getTranslationLanguage())
4402 app.setStyleSheet("QStatusBar::item { border: 0px solid black }")
4403 myapp = MyForm()
4404
4405 myapp.sqlInit()
4406 myapp.appIndicatorInit(app)
4407 myapp.indicatorInit()
4408 myapp.notifierInit()
4409 myapp._firstrun = BMConfigParser().safeGetBoolean(
4410 'bitmessagesettings', 'dontconnect')
4411 if myapp._firstrun:
4412 myapp.showConnectDialog() # ask the user if we may connect
4413 myapp.ui.updateNetworkSwitchMenuLabel()
4414
4415# try:
4416# if BMConfigParser().get('bitmessagesettings', 'mailchuck') < 1:
4417# myapp.showMigrationWizard(BMConfigParser().get('bitmessagesettings', 'mailchuck'))
4418# except:
4419# myapp.showMigrationWizard(0)
4420
4421 # only show after wizards and connect dialogs have completed
4422 if not BMConfigParser().getboolean('bitmessagesettings', 'startintray'):
4423 myapp.show()
4424
4425 sys.exit(app.exec_())

Callers

nothing calls this directly

Calls 11

sqlInitMethod · 0.95
appIndicatorInitMethod · 0.95
indicatorInitMethod · 0.95
notifierInitMethod · 0.95
showConnectDialogMethod · 0.95
BMConfigParserClass · 0.90
change_translationFunction · 0.85
MyFormClass · 0.85
safeGetBooleanMethod · 0.80
initFunction · 0.70

Tested by

no test coverage detected