DelphiDelphiVCLPythonPython GUIWindows

Learn about delphivcl.RadioGroup

crop diverse women doing task in campus

Description

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:

See the responses in our Windows command prompt:

output01 6823361

Code example

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

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

The result:

1 2 5087157

Note for beta release users

In practice, the only difference between DelphiVCL4Python release version and the beta version is only in how you write the DelphiVCL. Here is the example for how you import the library:

  • Release version:
  • Beta version:

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

Also, watch the following webinar by Alexey Sharagin to Master the Secrets of Beautiful Modern Windows Apps:


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

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


References & further readings

[1] Embarcadero DocWiki. (2014). 

Vcl.ExtCtrls.TRadioGroup. Embarcadero DocWiki. Embarcadero Technologies. docwiki.embarcadero.com/Libraries/Sydney/en/ Vcl.ExtCtrls.TRadioGroup

Related posts
CodeIDELearn PythonPythonPython GUITkinter

How To Make More Than 20 ChatGPT Prompts Work With Python GUI Builders And OpenCV Library?

CodeIDEProjectsPythonWindows

Unlock the Power of Python for Deep Learning with Radial Basis Function Networks (RBFNs)

CodeIDELearn PythonPythonPython GUITkinter

How To Make More Than 20 ChatGPT Prompts Work With Python GUI Builders And NumPy Library?

CodeIDEProjectsPythonWindows

Unlock the Power of Python for Deep Learning with Generative Adversarial Networks (GANs) - The Engine behind DALL-E

Leave a Reply

Your email address will not be published. Required fields are marked *