DelphiDelphiVCLPythonPython GUIWindows

What Is A DelphiVCL.PaintBox And How Does It Work?

DelphiVCL.PaintBox or TPaintBox provides a canvas that applications can use for rendering an image when you develop Windows software. We can use TPaintBox to add custom images to a form. Unlike TImage, which displays an image that is stored in a bitmap, icon, or metafile, TPaintBox requires an application to draw the image directly on a canvas. Use the OnPaint event handler to draw on the paint…
Read more
Learn PythonPythonPython GUIVideos

How To Build An Intelligent Indoor Garden Using CircuitPython

Python is a high-level and general-purpose programming language that has been widely used by programmers in many different fields. From a recent PyCon, we have learned that the Python programming language has been effectively applied in Agriculture, High Energy Physics, and more. In this video, we will discover how Python is being applied in another field of science. Maria Jose Molina-Contreras…
Read more
Learn PythonPythonPython GUI

This Is How To Pad Python Widgets One Side At A Time

In this tutorial (which doesn’t just apply to Windows development) you will be learning how to only pad one side of a widget at a time instead of the default two sides. Whenever we pad widgets, we use pady and padx, but by default we put padding on two sides of the widget. Pady places the padding above and below, the padx puts the padding to the left and to the bottom. In this tutorial, you…
Read more
DelphiDelphiVCLPythonPython GUIWindows

How To Use The Value Property For Actions and Parameters

We use the Value property to set or specify any actions or parameters in the DelphiVCL library while using the IDE software. Here is the working example of Value with CanSelect parameter: def grdTestSelectCell(Sender, Col, Row, CanSelect): if Col == 2 and Row == 2: CanSelect.Value = False In the example above, we set the CanSelect parameter to False to prevent the cell in…
Read more