From a4803bf362a0c399b539aa4ae8a805008c95b216 Mon Sep 17 00:00:00 2001 From: Denis Spiridonov Date: Tue, 3 Apr 2012 09:31:43 +0400 Subject: [PATCH] fix comments in radiobutton --- console/gui/mainframe.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/console/gui/mainframe.py b/console/gui/mainframe.py index cbeb36c..39d4dcb 100755 --- a/console/gui/mainframe.py +++ b/console/gui/mainframe.py @@ -63,7 +63,7 @@ class MainFrame(QtGui.QWidget): self.initUI() def initUI(self): -# print self.view + print self.view self.grid = QtGui.QGridLayout(self) self.grid.setSpacing(10) x = 0 @@ -410,6 +410,9 @@ class MainFrame(QtGui.QWidget): self.ButGrp_dict[field.name] = QtGui.QButtonGroup(self) layout = QtGui.QVBoxLayout(self.GroupBox) radiolist = [] + + if field.default == None: + field.default = '' for i in range(0,len(choice)): radio_but = RadioButton(self)