<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
In a .ui file created with QDesigner, I have one QButtunGroup with
three radio-buttons :<br>
<br>
...<br>
<item><br>
<widget class="QRadioButton" name="camera_is_local_rdo"><br>
<property name="text"><br>
<string>Time of camera is local time.</string><br>
</property><br>
<attribute name="buttonGroup"><br>
<string>buttonGroup</string><br>
</attribute><br>
</widget><br>
</item><br>
...<br>
<br>
After conversion with pyuic4, I obtain this code :<br>
<br>
...<br>
self.camera_is_local_rdo = QtGui.QRadioButton(GPSDialog)<br>
self.camera_is_local_rdo.setObjectName("camera_is_local_rdo")<br>
self.QtGui.QApplication.translate("GPSDialog", "buttonGroup",
None, QtGui.QApplication.UnicodeUTF8) = QtGui.QButtonGroup(GPSDialog)<br>
self.QtGui.QApplication.translate("GPSDialog", "buttonGroup",
None,
QtGui.QApplication.UnicodeUTF8).setObjectName("QtGui.QApplication.translate(\"GPSDialog\",
\"buttonGroup\", None, QtGui.QApplication.UnicodeUTF8)")<br>
self.QtGui.QApplication.translate("GPSDialog", "buttonGroup",
None,
QtGui.QApplication.UnicodeUTF8).addButton(self.camera_is_local_rdo)<br>
self.verticalLayout_4.addWidget(self.camera_is_local_rdo)<br>
...<br>
The same code for each radio-button.<br>
<br>
And the (expected) error:<br>
<br>
File "guigps.py", line 92<br>
self.QtGui.QApplication.translate("GPSDialog", "buttonGroup", None,
QtGui.QApplication.UnicodeUTF8) = QtGui.QButtonGroup(GPSDialog)<br>
SyntaxError: can't assign to function call<br>
<br>
I corrected the text manually.<br>
<br>
PyQt-4.7.2 on Linux<br>
<br>
Cheers<br>
<div class="moz-signature">-- <br>
Vincent V.V.<br>
<a href="https://launchpad.net/oqapy">Oqapy</a></div>
</body>
</html>