import sys
from PyQt5.QtWidgets import QDialog, QApplication
from demoRadioButton1 import *
class MyForm(QDialog):
	def __init__(self):
		super().__init__()
		self.ui = Ui_Dialog()
		self.ui.setupUi(self)
		self.ui.adioButtonFirstClass.toggled.connect(self.
		dispFare)
		self.ui.radioButtonBusinessClass.toggled.connect(self.
		dispFare)
		self.ui.radioButtonEconomyClass.toggled.connect(self.
		dispFare)
		self.show()
	def dispFare(self):
		fare=0
		if self.ui.adioButtonFirstClass.isChecked()==True:
			fare=150
		if self.ui.radioButtonBusinessClass.isChecked()==True:
			fare=125
		if self.ui.radioButtonEconomyClass.isChecked()==True:
			fare=100
		self.ui.LabelFare.setText("Air Fare is "+str(fare))
if __name__=="__main__":
	app = QApplication(sys.argv)
	w = MyForm()
	w.show()
	sys.exit(app.exec_())