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
jskfanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

aikimarkCommented:
Have you looked at the QT library?
0
NorieAnalyst Assistant Commented:
There's also tkinter and wxPython among others.
1
jskfanAuthor Commented:
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
0
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

nociSoftware EngineerCommented:
Basicly it has little to do with programming languages. Mostly those services are supplied through libraries (including windows)...
VBA actually calls libraries for all kinds of stuff but arguably has better integration...

Then QT delivers likewise serves and frameworks, QTDesigner, including handling event.    Bottom line is in Windows the event management is in a loop inside the Yield() function.  Tk / Tcl is a set of libraries, gtk+ another one, ...
0
jskfanAuthor Commented:
Ok I will Check QT Designer.
Thank you
0
nociSoftware EngineerCommented:
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.
0
jskfanAuthor Commented:
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
0
NorieAnalyst Assistant Commented:
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.
0
jskfanAuthor Commented:
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.
0
NorieAnalyst Assistant Commented:
Have you tried any of the suggestions made so far for creating 'forms' in Python?

Here's a link for tk, A First (Real) Example.

PS That link might show examples for multiple languages, e.g. Perl, but there's a dropdown on the right where you can select you language of choice.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jskfanAuthor Commented:
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
0
jskfanAuthor Commented:
I will check that
Tanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.