self.detailtext.setText(u"")\r
detaillabel.setBuddy(self.detailtext)\r
\r
- self.buttonBox = QtGui.QDialogButtonBox(\r
+ self.buttonbox = QtGui.QDialogButtonBox(\r
QtGui.QDialogButtonBox.Ok | QtGui.QDialogButtonBox.Cancel)\r
- self.buttonBox.accepted.connect(self.accept)\r
- self.buttonBox.rejected.connect(self.reject)\r
+ self.buttonbox.accepted.connect(self.accept)\r
+ self.buttonbox.rejected.connect(self.reject)\r
+ self.buttonbox.button(QtGui.QDialogButtonBox.Ok).setText(u"OK")\r
+ self.buttonbox.button(QtGui.QDialogButtonBox.Cancel).setText(u"キャンセル")\r
\r
layout = QtGui.QGridLayout()\r
layout.addWidget(marklabel, 0, 0, 1, 1)\r
layout.addWidget(self.forecolorbox, 0, 3, 1, 1)\r
layout.addWidget(detaillabel, 1, 0, 1, 1)\r
layout.addWidget(self.detailtext, 1, 1, 1, 3)\r
- layout.addWidget(self.buttonBox, 2, 0, 1, 4)\r
+ layout.addWidget(self.buttonbox, 2, 0, 1, 4)\r
self.setLayout(layout)\r
self.setModal(True)\r
\r