L
L
Limons2021-04-04 14:52:44
PyQt
Limons, 2021-04-04 14:52:44

How to correctly use radioButton in PyQT5 using QtDesinger?

There is:
QtDesinger
PyQT - 5
PySide -6
Python - 3.9.2

file.Ui
file.py

I don't understand how to work with radioButton when using QtDesisnger (that is, when designing gui in ui).

Let's say there is this:
https://imgur.com/a/ppJtNsR

and there is such a code

from PyQt5 import uic
from PyQt5.QtWidgets import QApplication

Form, Window = uic.loadUiType("Window.ui")
app = QApplication([])
window = Window()
form = Form()
form.setupUi(window)
window.show()

app.exec_()

What is the correct way to assign the changeOfFishingRod variable the number 0 (let's say the first option) or 1 (let's say the second option)?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question