#!/usr/bin/python
# coding: utf8

from PyQt4.QtGui import *
from PyQt4.QtCore import *
import sys

class MeinDialog(QDialog):
	def __init__(self, parent = None):
		QDialog.__init__(self, parent)
		self.setObjectName("MeinDialog")
		self.setWindowModality(Qt.WindowModal)
		self.resize(QSize(QRect(0,0,400,300).size()).expandedTo(self.minimumSizeHint()))
		self.setModal(True)
		
		self.pushButton = QPushButton(self)
		self.pushButton.setGeometry(QRect(30,250,78,27))
		self.pushButton.setObjectName("pushButton")
		
		self.pushButton_2 = QPushButton(self)
		self.pushButton_2.setGeometry(QRect(290,250,78,27))
		self.pushButton_2.setObjectName("pushButton_2")
		
		self.connect(self.pushButton,SIGNAL("clicked()"), self.on_pushButton_clicked)
		self.connect(self.pushButton_2,SIGNAL("clicked()"),self.on_pushButton_2_clicked)
		self.connect(self,SIGNAL("accepted()"),self.accept)
		self.connect(self,SIGNAL("rejected()"),self.reject)
		QMetaObject.connectSlotsByName(self)

		self.setWindowTitle(QApplication.translate("MeinDialog", "Dialog", None, QApplication.UnicodeUTF8))
		self.pushButton.setText(QApplication.translate("MeinDialog", "JAWOLL", None, QApplication.UnicodeUTF8))
		self.pushButton_2.setText(QApplication.translate("MeinDialog", "NÖÖÖ", None, QApplication.UnicodeUTF8))
	def on_pushButton_clicked(self):
		print "JA GEWÄHLT!"
		self.accept()
	def on_pushButton_2_clicked(self):
		print "NEIN GEWÄHLT!"
		self.reject()

app = QApplication(sys.argv)
w = MeinDialog()
w.show()
app.exec_()
# vim:ts=2:
