mirror of
https://github.com/gryf/wicd.git
synced 2025-12-22 05:48:03 +01:00
experimental:
- Fix some syntax/import problems created during the merge
This commit is contained in:
11
wicd/gui.py
11
wicd/gui.py
@@ -38,8 +38,8 @@ from wicd import misc
|
||||
from wicd import wpath
|
||||
from wicd.misc import noneToString
|
||||
from wicd.netentry import WiredNetworkEntry, WirelessNetworkEntry
|
||||
from wicd.prefs import PreferencesDialog
|
||||
from wicd.dbusmanager import DBusManager
|
||||
from wicd.prefs import PreferencesDialog
|
||||
|
||||
if __name__ == '__main__':
|
||||
wpath.chdir(__file__)
|
||||
@@ -84,7 +84,6 @@ def setup_dbus(dbus_man=None):
|
||||
wired = dbus_ifaces['wired']
|
||||
return True
|
||||
|
||||
|
||||
def error(parent, message):
|
||||
""" Shows an error dialog """
|
||||
dialog = gtk.MessageDialog(parent, gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR,
|
||||
@@ -92,14 +91,6 @@ def error(parent, message):
|
||||
dialog.set_markup(message)
|
||||
dialog.run()
|
||||
dialog.destroy()
|
||||
|
||||
def alert(parent, message):
|
||||
""" Shows an error dialog """
|
||||
dialog = gtk.MessageDialog(parent, gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING,
|
||||
gtk.BUTTONS_OK)
|
||||
dialog.set_markup(message)
|
||||
dialog.run()
|
||||
dialog.destroy()
|
||||
|
||||
########################################
|
||||
##### GTK EXTENSION CLASSES
|
||||
|
||||
Reference in New Issue
Block a user