summaryrefslogtreecommitdiffstats
path: root/pyanaconda/gui.py
diff options
context:
space:
mode:
authorAles Kozumplik <akozumpl@redhat.com>2011-04-07 13:51:55 +0200
committerAles Kozumplik <akozumpl@redhat.com>2011-04-27 18:09:50 +0200
commitd000c195be91480b805255dd70d0b6451b9c7465 (patch)
treefca8619247f9fab09aa47ec92ede7951f18617cf /pyanaconda/gui.py
parent395dd39e3353cf8b403ca08e3b3ccc741391d398 (diff)
downloadanaconda-d000c195be91480b805255dd70d0b6451b9c7465.tar.gz
anaconda-d000c195be91480b805255dd70d0b6451b9c7465.tar.xz
anaconda-d000c195be91480b805255dd70d0b6451b9c7465.zip
Get rid of interface's entryWindow() and EntryWindow.
The only place it is used is in textw/add_drive_text where we in fact use the snack EntryWindow class directly.
Diffstat (limited to 'pyanaconda/gui.py')
-rwxr-xr-xpyanaconda/gui.py32
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):