26.1 Знакомство с PyQt

26.1 Знакомство с PyQt

5th Grade

6 Qs

quiz-placeholder

Similar activities

M_U4_W3_FAC

M_U4_W3_FAC

5th Grade

10 Qs

Human Ear

Human Ear

5th Grade

10 Qs

The Water Cycle

The Water Cycle

5th Grade

11 Qs

FARMACOLOGIA Antibióticos 3

FARMACOLOGIA Antibióticos 3

1st - 5th Grade

6 Qs

Aplikasi Komputer

Aplikasi Komputer

1st Grade - University

10 Qs

Light & Sound Review

Light & Sound Review

3rd - 5th Grade

11 Qs

Living & Nonliving Things

Living & Nonliving Things

4th - 5th Grade

11 Qs

27.1 Знакомство с PyQt

27.1 Знакомство с PyQt

5th Grade

6 Qs

26.1 Знакомство с PyQt

26.1 Знакомство с PyQt

Assessment

Quiz

Science

5th Grade

Medium

Created by

Igor Perekalskiy

Used 1+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Установка библиотеки PyQt 5 выполняется командой

apt-get install PyQt5
yum install PyQt5

pip install PyQt5

brew install PyQt5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Выражение label = QtWidgets.QLabel("<center>Привет, мир!</center>") выведет:

The QLabel will display the text '
Привет, мир!
' with the HTML tags visible.
The QLabel will display an error message due to incorrect syntax.
The QLabel will display the text '<center>Привет, мир!</center>' as it is.
The QLabel will display the text 'Привет, мир!' without any HTML tags.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Выражение:

window.setWindowTitle("Программа на PyQt")

задает текст, который будет выводиться в заголовке окна, для чего используется метод

setWindowTitle()

Запускает приложение окна

Python
C++

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Выражение window.resize(300, 70) делает

Closes the window
Maximizes the window
Minimizes the window
Resizes the window

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

выражение:

btnQuit = QtWidgets.QPushButton("&Закрыть окно")

QPushButton с текстом 'Закрыть окно' и комбинацией клавиш 'Alt+З'
QLineEdit с текстом 'Закрыть окно'
QLabel с текстом 'Закрыть окно'
QComboBox с текстом 'Закрыть окно'

6.

OPEN ENDED QUESTION

3 mins • 1 pt

Вася написал код. но он не работает. помогите Васе

from PyQt5 import QtWidgets


class MyWindow(QtWidgets.QWidget):
def init(self, parent=None):
QtWidgets.QWidget.__init__(self, parent)
label = QtWidgets.QLabel("Привет, мир!")
label.setAlignment(QtCore.Qt.AlignHCenter)
btnQuit = QtWidgets.QPushButton("&Закрыть окно")
vbox = QtWidgets.QVBoxLayout()
vbox.addWidget(self.label)
vbox.addWidget(self.btnQuit)
setLayout(self.vbox)
btnQuit.clicked.connect(QtWidgets.qApp.quit)


if name == "__main__":
import sys

app = QtWidgets.QApplication(sys.argv)
window = MyWindow()
window.setWindowTitle("ООП-стиль окна")
window.resize(300, 70)
window.show()
sys.exit(app.exec_())

Evaluate responses using AI:

OFF