eric6/Project/UicCompilerOptionsDialog.py

changeset 7050
b66cac9a6560
parent 6942
2602857055c5
child 7201
6b42677d7043
equal deleted inserted replaced
7049:0a8a9bd15242 7050:b66cac9a6560
32 """ 32 """
33 super(UicCompilerOptionsDialog, self).__init__(parent) 33 super(UicCompilerOptionsDialog, self).__init__(parent)
34 self.setupUi(self) 34 self.setupUi(self)
35 35
36 self.packageEdit.setText(compilerOptions["Package"]) 36 self.packageEdit.setText(compilerOptions["Package"])
37 self.packageRootEdit.setText(compilerOptions["PackagesRoot"])
37 self.suffixEdit.setText(compilerOptions["RcSuffix"]) 38 self.suffixEdit.setText(compilerOptions["RcSuffix"])
38 39
39 if 'uic5' not in compiler or PYQT_VERSION < 0x050600: 40 if 'uic5' not in compiler or PYQT_VERSION < 0x050600:
40 # only supported for PyQt5 >= 5.6 (April 2016) 41 # only supported for PyQt5 >= 5.6 (April 2016)
41 self.packageGroup.setEnabled(False) 42 self.packageGroup.setEnabled(False)
45 46
46 def getData(self): 47 def getData(self):
47 """ 48 """
48 Public method to get the entered data. 49 Public method to get the entered data.
49 50
50 @return tuple containing the package and the rc-file suffix 51 @return tuple containing the package, the rc-file suffix and the
51 @rtype tuple of (str, str) 52 project relative root of the packages directory
53 @rtype tuple of (str, str, str)
52 """ 54 """
53 return ( 55 return (
54 self.packageEdit.text().strip(), 56 self.packageEdit.text().strip(),
55 self.suffixEdit.text().strip(), 57 self.suffixEdit.text().strip(),
58 self.packageRootEdit.text().strip(),
56 ) 59 )

eric ide

mercurial