Link to home
Start Free TrialLog in
Avatar of jskfan
jskfanFlag for Cyprus

asked on

Python forms for Database programming.

Python forms for Database programming.

In other programming languages, programmers use forms to drop labels, buttons, textboxes, drop down arrows,etc....they also create links to the database from the form.
programmers will write code for the Events created, for instance when user click on a button, or tabs to another textbox,etc....
I wonder what type of forms that Python use to achieve similar goal.

Thank you
Avatar of aikimark
aikimark
Flag of United States of America image

Have you looked at the QT library?
SOLUTION
Avatar of Norie
Norie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jskfan

ASKER

I have used VB and Delphi in the old days.
The Form has Database Connection , and the Label , Text ,Box Drop down arrows, etc... can host data from Database.
You can also use Events for each component when you click on it or select it , then enter code for the event
I wonder if Python has similar one
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jskfan

ASKER

Ok I will Check QT Designer.
Thank you
Avatar of noci
noci

Als check what is the intendaed target platform...
QT can be used accross Linux/Mac/Windows
On Linux QT are the libraries under KDE GTK+ are used with Gnome.
Avatar of jskfan

ASKER

I watched few videos regard PyQT event  driven programing , however I have not seen a scenario , where the event is created by acting on the component on the GUI automatically.

Example:

you have a a form and you add a button to it. when you double click on the button, it should open the code editor with the event automatically created,ex: Bttn_OnClick
then , all you have to do is to write the code that acts upon when the button is clicked.

on the scenario I have seen, the programmer , will go to the code editor and write  the event Bttn_onclick and the rest of the code under it
The Event should be created automatically, the programmer should write only the code under the event
As far as I know there's nothing like that available for Python.

None of the IDEs I've tried for Python supported that sort of functionality.
Avatar of jskfan

ASKER

so how are you going to know the name of the Event to write?
let's you have a text box on the form, and you want each time the cursor is on that box, you make a message popup.
or drop-down arrow, each time you select an item from the list, it should show information about that item from other tables.

In VB or Delphi, when you are in Design mode on the form, you double click the component that you have added to the form, it will create Event procedure for you, you just need to write the code for that event inside the procedure.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jskfan

ASKER

I looked at Tkinter.
I am still wondering why programmer has to programmatically create frames and buttons and events, instead of having all that done by drag and drop with the mouse and fire up events.

I remember old Visual Basic and Delphi had that (I have not used for years) , they also had a component that you can drop on the form and connect to the Database.
  Simple and quick to build an Application
why not on Python.

I downloaded PAGE, but I am not sure how good it is and whether it has limitations down the road
Avatar of jskfan

ASKER

I will check that
Tanks