Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 714476 Details for
Bug 924683
Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion `GTK_IS_WIDGET (widget)' failed
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Sample checkbox and radiobutton code
sample_qt.py (text/x-python), 2.22 KB, created by
amar_urs
on 2013-03-22 10:39:37 UTC
(
hide
)
Description:
Sample checkbox and radiobutton code
Filename:
MIME Type:
Creator:
amar_urs
Created:
2013-03-22 10:39:37 UTC
Size:
2.22 KB
patch
obsolete
># -*- coding: utf-8 -*- > > >from PyQt4 import QtCore, QtGui > >class Window(QtGui.QWidget): > def __init__(self): > QtGui.QWidget.__init__(self) > self.setObjectName("Dialog") > self.resize(220, 160) > > self.button = QtGui.QPushButton(self) > self.button.setGeometry(QtCore.QRect(50, 110, 110, 32)) > self.button.setObjectName("button") > > self.Radio_1 = QtGui.QRadioButton(self) > self.Radio_1.setGeometry(QtCore.QRect(50, 10, 114, 22)) > self.Radio_1.setObjectName("Radio_1") > > self.Radio_2 = QtGui.QRadioButton(self) > self.Radio_2.setGeometry(QtCore.QRect(50, 40, 114, 22)) > self.Radio_2.setObjectName("Radio_2") > > self.checkBox = QtGui.QCheckBox(self) > self.checkBox.setGeometry(QtCore.QRect(50, 70, 95, 22)) > self.checkBox.setObjectName("checkBox") > > > self.retranslateUi() > self.initUI() > QtCore.QMetaObject.connectSlotsByName(self) > > def initUI(self): > self.connect(self.button, QtCore.SIGNAL("clicked()"), self.handleButton) > self.connect(self.Radio_1, QtCore.SIGNAL("clicked(bool)"), self.handleRadio_1) > self.connect(self.Radio_2, QtCore.SIGNAL("clicked(bool)"), self.handleRadio_2) > self.connect(self.checkBox, QtCore.SIGNAL("clicked(bool)"), self.handleCheckBox) > > > def retranslateUi(self): > self.Radio_1.setText(QtGui.QApplication.translate("Dialog", "Radio_1", None, QtGui.QApplication.UnicodeUTF8)) > self.Radio_2.setText(QtGui.QApplication.translate("Dialog", "Radio_2", None, QtGui.QApplication.UnicodeUTF8)) > self.checkBox.setText(QtGui.QApplication.translate("Dialog", "CheckBox", None, QtGui.QApplication.UnicodeUTF8)) > self.button.setText(QtGui.QApplication.translate("Dialog", "Button", None, QtGui.QApplication.UnicodeUTF8)) > > def handleButton(self): > print "\nbutton clicked" > > def handleRadio_1(self, b): > print "\nRadiobutton 1 clicked Val = ",b > > def handleRadio_2(self, b): > print "\nRadiobutton 2 clicked Val = ",b > > def handleCheckBox(self,b): > print "\nCheckBox clicked Val = ",b > > >if __name__ == '__main__': > import sys > app = QtGui.QApplication(sys.argv) > window = Window() > window.show() > sys.exit(app.exec_()) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 924683
: 714476