class Window(QtGui.QMainWindow):
def __init__(self):
super(Window, self).__init__()
self.tabs()
def home(self):
df = QtGui.QPushButton('hello', self)
df.move(300, 300)
self.show()
def tabs(self):
btn_1 = QtGui.QPushButton('Home', self)
btn_1.clicked.connect(self.home)
self.show()
Trying to access the module 'home()' and print button 'hello' when button btn_1 in module tabs is clicked. Not happening..