diff options
Diffstat (limited to 'pyanaconda/gui.py')
-rwxr-xr-x | pyanaconda/gui.py | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/pyanaconda/gui.py b/pyanaconda/gui.py index aa7d2918b..9250660aa 100755 --- a/pyanaconda/gui.py +++ b/pyanaconda/gui.py @@ -866,32 +866,6 @@ class DetailedMessageWindow(MessageWindow): if run: self.run(destroyAfterRun) -class EntryWindow(MessageWindow): - def __init__ (self, title, text, prompt, entrylength = None): - mainWindow = None - MessageWindow.__init__(self, title, text, type = "okcancel", custom_icon="question", run = False) - self.entry = gtk.Entry() - if entrylength: - self.entry.set_width_chars(entrylength) - self.entry.set_max_length(entrylength) - - # eww, eww, eww... but if we pack in the vbox, it goes to the right - # place! - self.dialog.child.pack_start(self.entry) - - def run(self): - MessageWindow.run(self) - if self.rc == 0: - return None - t = self.entry.get_text() - t.strip() - if len(t) == 0: - return None - return t - - def destroy(self): - self.dialog.destroy() - class InstallInterface(InstallInterfaceBase): def __init__ (self): InstallInterfaceBase.__init__(self) @@ -1092,12 +1066,6 @@ class InstallInterface(InstallInterfaceBase): dialog.createDialog() return dialog.run() - def entryWindow(self, title, text, type="ok", entrylength = None): - d = EntryWindow(title, text, type, entrylength) - rc = d.run() - d.destroy() - return rc - def detailedMessageWindow(self, title, text, longText=None, type="ok", default=None, custom_buttons=None, custom_icon=None, expanded=False): |