Project/AddLanguageDialog.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1112
8a7d1b9d18db
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
10 from PyQt4.QtCore import * 10 from PyQt4.QtCore import *
11 from PyQt4.QtGui import * 11 from PyQt4.QtGui import *
12 12
13 from .Ui_AddLanguageDialog import Ui_AddLanguageDialog 13 from .Ui_AddLanguageDialog import Ui_AddLanguageDialog
14 14
15
15 class AddLanguageDialog(QDialog, Ui_AddLanguageDialog): 16 class AddLanguageDialog(QDialog, Ui_AddLanguageDialog):
16 """ 17 """
17 Class implementing a dialog to add a new language to the project. 18 Class implementing a dialog to add a new language to the project.
18 """ 19 """
19 def __init__(self, parent = None, name = None): 20 def __init__(self, parent=None, name=None):
20 """ 21 """
21 Constructor 22 Constructor
22 23
23 @param parent parent widget of this dialog (QWidget) 24 @param parent parent widget of this dialog (QWidget)
24 @param name name of this dialog (string) 25 @param name name of this dialog (string)
25 """ 26 """
26 QDialog.__init__(self,parent) 27 QDialog.__init__(self, parent)
27 if name: 28 if name:
28 self.setObjectName(name) 29 self.setObjectName(name)
29 self.setupUi(self) 30 self.setupUi(self)
30 31
31 def getSelectedLanguage(self): 32 def getSelectedLanguage(self):

eric ide

mercurial