Commits

anatoly techtonik committed 42093ea

04.dialog.color.py: show selected color in message box popup

  • Participants
  • Parent commits 19be1de

Comments (0)

Files changed (1)

File 04.dialog.color.py

 
 # Absolutely minimal example of PySide application with button calling dialog
 
-from PySide.QtGui import QApplication, QPushButton, QColorDialog
+# More info about Qt dialogs:
+# http://www.pyside.org/docs/pyside/PySide/QtGui/QDialog.html#PySide.QtGui.QDialog
+
+from PySide.QtGui import QApplication, QPushButton, QColorDialog, QMessageBox
 
 
 def choose_color():
     color  = QColorDialog().getColor()
-    print color
+    msgbox = QMessageBox(QMessageBox.NoIcon, u'Selected Color', unicode(color)).exec_()
 
 app = QApplication([])