OSDN Git Service

ボタン修正
authorhrwatahiki <hrwatahiki@44a3fe10-d6a8-4042-99bc-5bf971f0e03b>
Fri, 24 May 2013 12:52:33 +0000 (12:52 +0000)
committerhrwatahiki <hrwatahiki@44a3fe10-d6a8-4042-99bc-5bf971f0e03b>
Fri, 24 May 2013 12:52:33 +0000 (12:52 +0000)
git-svn-id: https://svn.osdn.net/svnroot/pydun/trunk@38 44a3fe10-d6a8-4042-99bc-5bf971f0e03b

Pydun.exe
Pydun.py

index cad04b7..b4f70b8 100644 (file)
Binary files a/Pydun.exe and b/Pydun.exe differ
index b7dda3e..0ba403e 100644 (file)
--- a/Pydun.py
+++ b/Pydun.py
@@ -707,10 +707,12 @@ class DetailDialog(QtGui.QDialog):
         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
@@ -719,7 +721,7 @@ class DetailDialog(QtGui.QDialog):
         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