Package pyanaconda :: Package iw :: Module kbd_gui
[hide private]
[frames] | no frames]

Source Code for Module pyanaconda.iw.kbd_gui

 1  # 
 2  # keyboard_gui.py:  Shim around system-config-keyboard 
 3  # Brrrraaaaaiiiinnnns... 
 4  # 
 5  # Copyright (C) 2006, 2007  Red Hat, Inc.  All rights reserved. 
 6  # 
 7  # This program is free software; you can redistribute it and/or modify 
 8  # it under the terms of the GNU General Public License as published by 
 9  # the Free Software Foundation; either version 2 of the License, or 
10  # (at your option) any later version. 
11  # 
12  # This program is distributed in the hope that it will be useful, 
13  # but WITHOUT ANY WARRANTY; without even the implied warranty of 
14  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
15  # GNU General Public License for more details. 
16  # 
17  # You should have received a copy of the GNU General Public License 
18  # along with this program.  If not, see <http://www.gnu.org/licenses/>. 
19  # 
20   
21  from iw_gui import * 
22  from pyanaconda.constants import ROOT_PATH 
23  import sys 
24   
25  sys.path.append("/usr/share/system-config-keyboard") 
26   
27  from keyboard_gui import childWindow as installKeyboardWindow 
28   
29 -class KeyboardWindow(InstallWindow, installKeyboardWindow):
30 - def __init__(self, ics):
31 InstallWindow.__init__(self, ics) 32 installKeyboardWindow.__init__(self) 33 34 ics.cw.mainxml.get_widget("nextButton").grab_focus()
35
36 - def getNext(self):
37 installKeyboardWindow.getNext(self)
38
39 - def getScreen(self, anaconda):
40 default = anaconda.instLanguage.getDefaultKeyboard() 41 anaconda.keyboard.set(default) 42 vbox = installKeyboardWindow.getScreen(self, default, anaconda.keyboard) 43 self.modelView.connect("select-cursor-row", lambda widget, vbox=vbox: self.ics.setGrabNext(1)) 44 45 return vbox
46