Mageia Bugzilla – Attachment 11380 Details for
Bug 25651
qtbase5 new security issue CVE-2019-18281
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
testfile for pyside
pyexample (text/plain), 945 bytes, created by
Herman Viaene
on 2019-11-27 17:32:06 CET
(
hide
)
Description:
testfile for pyside
Filename:
MIME Type:
Creator:
Herman Viaene
Created:
2019-11-27 17:32:06 CET
Size:
945 bytes
patch
obsolete
>import sys >from PySide2.QtWidgets import (QLineEdit, QPushButton, QApplication, > QVBoxLayout, QDialog) > >class Form(QDialog): > > def __init__(self, parent=None): > super(Form, self).__init__(parent) > # Create widgets > self.edit = QLineEdit("Write my name here") > self.button = QPushButton("Show Greetings") > # Create layout and add widgets > layout = QVBoxLayout() > layout.addWidget(self.edit) > layout.addWidget(self.button) > # Set dialog layout > self.setLayout(layout) > # Add button signal to greetings slot > self.button.clicked.connect(self.greetings) > > # Greets the user > def greetings(self): > print ("Hello %s" % self.edit.text()) > >if __name__ == '__main__': > # Create the Qt Application > app = QApplication(sys.argv) > # Create and show the form > form = Form() > form.show() > # Run the main Qt loop > sys.exit(app.exec_())
import sys from PySide2.QtWidgets import (QLineEdit, QPushButton, QApplication, QVBoxLayout, QDialog) class Form(QDialog): def __init__(self, parent=None): super(Form, self).__init__(parent) # Create widgets self.edit = QLineEdit("Write my name here") self.button = QPushButton("Show Greetings") # Create layout and add widgets layout = QVBoxLayout() layout.addWidget(self.edit) layout.addWidget(self.button) # Set dialog layout self.setLayout(layout) # Add button signal to greetings slot self.button.clicked.connect(self.greetings) # Greets the user def greetings(self): print ("Hello %s" % self.edit.text()) if __name__ == '__main__': # Create the Qt Application app = QApplication(sys.argv) # Create and show the form form = Form() form.show() # Run the main Qt loop sys.exit(app.exec_())
View Attachment As Raw
Actions:
View
Attachments on
bug 25651
: 11380