A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/themix-project/themix-gui/commit/64c8f1cfd61b1489aafe8499e5aafca0740c08c4 below:

( · themix-project/themix-gui@64c8f1c · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+7

-7

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+7

-7

lines changed Original file line number Diff line number Diff line change

@@ -1,4 +1,5 @@

1 1

import os

2 +

import sys

2 3

import traceback

3 4 4 5

from gi.repository import Gtk

@@ -96,13 +97,12 @@ def init_plugins(cls) -> None:

96 97

'\n' * 2 +

97 98

traceback.format_exc()

98 99

)

99 -

# @TODO: have no clue why gtk dialogs stopped working here,

100 -

# but guess that's just gtk traditions to break things once in a while

101 -

print(f"{message_header}\n{message_text}")

102 -

error_dialog = Gtk.MessageDialog()

103 -

error_dialog.text = message_header

104 -

error_dialog.secondary_text = message_text

105 -

error_dialog.buttons = Gtk.ButtonsType.CLOSE

100 +

sys.stderr.write(f"{message_header}\n{message_text}\n")

101 +

error_dialog = Gtk.MessageDialog(

102 +

text=message_header,

103 +

secondary_text=message_text,

104 +

buttons=Gtk.ButtonsType.CLOSE

105 +

)

106 106

error_dialog.run()

107 107

error_dialog.destroy()

108 108

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4