Site icon Python GUI

Learn about DelphiVCL.RadioGroup

crop diverse women doing task in campus

Photo by Charlotte May on Pexels.com

DelphiVCL.RadioGroup represents a group of radio buttons that function together.

A RadioGroup object is a special group box that contains only radio buttons. Radio buttons that are placed directly in the same control component are said to be “grouped.” When the user checks a radio button, all other radio buttons in its group become unchecked. Hence, two radio buttons on a form can be checked at the same time only if they are placed in separate containers, such as group boxes.

Each string in Items makes a radio button appear in the group box with the string as its caption. The value of the ItemIndex property determines which radio button is currently selected.
We can browse all the properties, methods, and built-in properties of the DelphiVCL.RadioGroup using dir() command:

[crayon-662bf6092282a276047228/]

See the responses in our Windows command prompt:

Here is the working example of the implementation of DelphiVCL.RadioGroup:

[crayon-662bf60922835739696246/]

To see the result, let’s run the complete script:

[crayon-662bf60922836347818872/]

The result:

 

Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.

Watch this comprehensive introduction to Python GUI Development with DelphiVCL library video by Jim McKeeth:

Exit mobile version