Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def onActivated():
- s=combo.currentText()
- print(s)
- comb = QComboBox(root)
- comb.addItems(["Ubuntu", "Mandriva", "Fedora", "Arch", "Gentoo"])
- comb.move(50, 250)
- comb.activated[str].connect(onActivated)
- btn = QPushButton('Button',root)
- btn.resize(100,30)
- btn.clicked.connect(onActivated)
- btn.move(50, 50)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement