diff options
author | pnfisher <pnfisher> | 1999-08-04 09:36:42 +0000 |
---|---|---|
committer | pnfisher <pnfisher> | 1999-08-04 09:36:42 +0000 |
commit | d23e527136e27e1a616a4833ee3bb5a0b83c8407 (patch) | |
tree | 893a39cadbb4b00d95888c9355b250f96d2592d6 /iw/mouse.py | |
parent | 6ef2cb1ea395c7e9fa5bdfe8fe0d7c169a8d8790 (diff) | |
download | anaconda-d23e527136e27e1a616a4833ee3bb5a0b83c8407.tar.gz anaconda-d23e527136e27e1a616a4833ee3bb5a0b83c8407.tar.xz anaconda-d23e527136e27e1a616a4833ee3bb5a0b83c8407.zip |
basic GUI screens for beta1 (minus partitioning)
Diffstat (limited to 'iw/mouse.py')
-rw-r--r-- | iw/mouse.py | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/iw/mouse.py b/iw/mouse.py new file mode 100644 index 000000000..90f7d2b71 --- /dev/null +++ b/iw/mouse.py @@ -0,0 +1,49 @@ +from gtk import * +from iw import * + +class MouseWindow (InstallWindow): + + def __init__ (self, ics): + InstallWindow.__init__ (self, ics) + + ics.setTitle ("Mouse Configuration") + ics.setHTML ("<HTML><BODY>Select your mouse." + "</BODY></HTML>") + ics.setNextEnabled (TRUE) + + def getNext (self): + self.todo.mouse.set (self.typeList.get_selection ()[0].children ()[0].get ()) + return None + + def getScreen (self): + box = GtkVBox (FALSE, 5) + + sw = GtkScrolledWindow () + sw.set_border_width (5) + sw.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC) + self.locList = GtkList () + self.locList.set_selection_mode (SELECTION_BROWSE) + devs = ("PS/2 Port (psaux)", "COM 1 (ttyS0)", + "COM 2 (ttyS1)", "COM 3 (ttyS2)", "COM 4 (ttyS3)") + self.locList.append_items (map (GtkListItem, devs)) + frame = GtkFrame () + frame.set_shadow_type (SHADOW_IN) + frame.add (self.locList) + frame.set_border_width (5) + box.pack_start (frame, FALSE) + + sw = GtkScrolledWindow () + sw.set_border_width (5) + sw.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC) + self.typeList = GtkList () + self.typeList.set_selection_mode (SELECTION_BROWSE) + sorted_mice = self.todo.mouse.available () + sorted_mice.sort () + self.typeList.append_items (map (GtkListItem, sorted_mice)) + sw.add_with_viewport (self.typeList) + box.pack_start (sw) + + return box + + + |