diff options
-rwxr-xr-x | pyanaconda/gui.py | 32 | ||||
-rw-r--r-- | pyanaconda/text.py | 8 |
2 files changed, 0 insertions, 40 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): diff --git a/pyanaconda/text.py b/pyanaconda/text.py index 89c858d65..9ecfcb99f 100644 --- a/pyanaconda/text.py +++ b/pyanaconda/text.py @@ -379,14 +379,6 @@ class InstallInterface(InstallInterfaceBase): self.messageWindow(_("Error"), _("Repository editing is not available in text mode.")) - def entryWindow(self, title, text, prompt, entrylength = None): - (res, value) = EntryWindow(self.screen, title, text, [prompt]) - if res == "cancel": - return None - r = value[0] - r.strip() - return r - def getLuksPassphrase(self, passphrase = "", preexist = False): w = LuksPassphraseWindow(self.screen, passphrase = passphrase, preexist = preexist) |