473,769 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

RAD with Python

Hi,

How well is Python suited for developing database based applications?
I am new to Python so please bear with me if some of the questions are
too simple. I specifically have the following questions:

1. Is there an example of a simple data-entry application written in
Python using a GUI interface? Something like a simple address book app
with a listbox displaying all addresses with the ability to
add/modify/delete.

2. There seem to be a number of GUI frameworks available? Which one is
good for use on Windows and Linux?

3. Can Python apps be compiled to an exe? Can the resulting executable
be distributed commercially?

4. What types of applications are not suitable to be written in
Python?

I have good knowledge of many languages including C++, Assembler,
Java, etc. My preferred development tool is Clarion currently. If
anybody with a Clarion background can share their experience with
Python, that will be very helpful.

Appreciate your answers...

Thanks & Regards,
Ubaidullah Nubar.
Jul 18 '05
37 10444
"Ubaidullah Nubar" <ub************ *@hotmail.com> wrote in message
news:17******** *************** ***@posting.goo gle.com...
Hi,

How well is Python suited for developing database based applications?
I am new to Python so please bear with me if some of the questions are
too simple. I specifically have the following questions:

1. Is there an example of a simple data-entry application written in
Python using a GUI interface? Something like a simple address book app
with a listbox displaying all addresses with the ability to
add/modify/delete.

.....


In addition to the other recommendations made, you might want to check
out PythonCard [http://pythoncard.sourceforge.net/]. It is based on
wxPython (like Boa Constructor preciously mentioned), which provides a
cross-platform GUI capability. There are a lot of samples a few of
which come close to what you've described (check dbBrowser &
dbBrowser2). There is another project: GNUe
[http://www.gnuenterprise.org/project/what.php], which plans to be a
full-blown ERP system at some point, but is creating database designer,
forms, reporting, etc. tools to support the overall package. These are
in some way like what you may be considering, but I don't think that
it's quite ready yet.

As far as something that is like Clarion - I don't think you'll find
anything that can easily duplicate what you can do with that tool. That
IS something that I would also really like to see, whether you're coming
from Clarion, MS Access, FileMaker, FoxPro, Alpha Software, or any of
those type of RAD, database type tools. While each of them have their
strengths and differences, they all are in the same general solution
space, and it seems that a Python based tool could work very well in
that space. It seems that the MojoView package may be the closest.
I've been thinking about what it would take to write this myself, but,
for the time being, the project is a bit more work than I can take on
right now. Good luck if you start pursuing it.
--
Greg

Jul 18 '05 #11
In article <17************ **************@ posting.google. com>, Ubaidullah
Nubar wrote:
1. Is there an example of a simple data-entry application written in
Python using a GUI interface? Something like a simple address book app
with a listbox displaying all addresses with the ability to
add/modify/delete.
You might want to take a look at

http://www.netpromi.com/mojoview.html

and

http://www.async.com.br/projects/kiwi/ (which can interface with ZODB)

There used to be an interesting project called Koala, but it seems to have
died.

http://koala.sourceforge.net/
2. There seem to be a number of GUI frameworks available? Which one is
good for use on Windows and Linux?


wxPython or good old Tkinter are probably the best bets currently, or PyQt
if the licensing is not an issue for you.

Dave Cook
Jul 18 '05 #12
Thanks to all those who replied.

I will appreciate some more clarification regarding the GUI framework.
From the wxPython web site, it looks very good but the two tools
mentioned here
for easing the development of GUI apps (mojoview and kiwi) are both
based on GTK.

Are they fundamentally different or just a matter of style.

How easy to switch from one framework to another?

Which framework supports internationaliz ation better? Do they support
Right-to-left layouts?

Is there any site that lists the differences/capabilities of each
framework?

Also, a comparison between Boa Constructor and Glade-2. I haven't seen
either so am not sure if they are even comparable.

Thanks & Regards,
Ubaidullah Nubar.
John <jo************ @chello.no> wrote in message news:<op******* *******@news.ch ello.no>...
On 12 Sep 2003 06:09:02 -0700, Ubaidullah Nubar
<ub************ *@hotmail.com> wrote:
Hi,

How well is Python suited for developing database based applications?
I am new to Python so please bear with me if some of the questions are
too simple. I specifically have the following questions:

1. Is there an example of a simple data-entry application written in
Python using a GUI interface? Something like a simple address book app
with a listbox displaying all addresses with the ability to
add/modify/delete.

2. There seem to be a number of GUI frameworks available? Which one is
good for use on Windows and Linux?

3. Can Python apps be compiled to an exe? Can the resulting executable
be distributed commercially?

4. What types of applications are not suitable to be written in
Python?

I have good knowledge of many languages including C++, Assembler,
Java, etc. My preferred development tool is Clarion currently. If
anybody with a Clarion background can share their experience with
Python, that will be very helpful.

Appreciate your answers...

Thanks & Regards,
Ubaidullah Nubar.


My choice would be wxPython. Look at the wxPython demo form plenty of
source.

2.
My personal preference of a Python RAD is Boa Constructor.
You will need to install wxWindows (www.wxWindows.org) wxPython
(www.wxPython.org)
and finally the Boa Constructor itself (boa-constructor.sou rceforge.net).
The resulting code is portable to unix and maybe mac.

3.
py2exe is used to generate executable python programs under windows.
The resulting code can be freely distrinuted.

4.
Python is appox 400 times slower than C.
If you are doing complex algorithmics on large data sets and a module like
numpy dosn't accelerate what you need you might be better off with another
language.
(Note that for most application the time is spendt in C modules interfaced
by python.)
You have to options:
1. Implement the critical sections in C (the SWIG interface genetrator
helps grind the C interface to pyhton)
2. Use another language (My choice.. I use Common Lisp for complex
algorithmics)

Jul 18 '05 #13
Gary Herron <gh*****@island training.com> wrote in message news:<ma******* *************** ************@py thon.org>...
On Friday 12 September 2003 08:17 am, John wrote:
On 12 Sep 2003 06:09:02 -0700, Ubaidullah Nubar

<ub************ *@hotmail.com> wrote:
Hi,

How well is Python suited for developing database based applications?
I am new to Python so please bear with me if some of the questions are
too simple. I specifically have the following questions:

1. Is there an example of a simple data-entry application written in
Python using a GUI interface? Something like a simple address book app
with a listbox displaying all addresses with the ability to
add/modify/delete.

2. There seem to be a number of GUI frameworks available? Which one is
good for use on Windows and Linux?


I've used Tkinter for cross platform development with great success
for years, but recently I've been playing with pyGTK (and the
libraries it is built upon: GTK+, glade-2 and libglade), and
I like the results very much.

PyGTK works on both window and Linux/Unix, Comparing the two, it seems
that PyGTK produces GUI's which look much better, and are *much* more
responsive. And the GUI building tool, glade-2, is *very* easy and
convenient to work with.


Don't they all (PyGTK, wxPython, etc.) use the underlying GUIs (e.g.
Windows API/KDE/Gnome, etc.)? So where does the better looking part
come from? Or do some of them recreate the whole GUI layer?

Reading some other threads on this ng, there are posts that mention
that gtk has issues running under Win32. Are these concerns still
valid or have they been resolved with the latest version?
Jul 18 '05 #14
ub************* @hotmail.com (Ubaidullah Nubar) writes:
Gary Herron <gh*****@island training.com> wrote in message news:<ma******* *************** ************@py thon.org>...
[...comparing Tk and GTk...]
PyGTK works on both window and Linux/Unix, Comparing the two, it seems
that PyGTK produces GUI's which look much better, and are *much* more
responsive. And the GUI building tool, glade-2, is *very* easy and
convenient to work with.


Don't they all (PyGTK, wxPython, etc.) use the underlying GUIs (e.g.
Windows API/KDE/Gnome, etc.)? So where does the better looking part
come from? Or do some of them recreate the whole GUI layer?


They all look good except Tkinter <0.5 wink>. Tkinter builds up some
of its widgets (eg. tree views, IIRC) from simpler native widgets, so
they don't look on Windows as nice as native tree views. At least,
that used to be the case.

In fact that's unfair on Tkinter, since AFAIK no toolkit works well
with both KDE and GNOME. Yes, they both (usually) use X windows, X
never *had* a 'look and feel' in the first place. KDE and GNOME each
define a lot about the way things look and the way things work, so KDE
apps look bad in GNOME, and vice versa. The consensus is that nobody
can be bothered to put in the work to fix this.

I don't know why GTk sometimes looks bad on Windows. Of course, in
one sense the reason is simply that it didn't start out there, but I
don't know what the particulars are.

Reading some other threads on this ng, there are posts that mention
that gtk has issues running under Win32. Are these concerns still
valid or have they been resolved with the latest version?


You can certainly get good-looking Windows GUIs out of GTk
(eg. http://www.workrave.org/), but people complain that it's hard to
do (in fact, people frequently complain that GTk is in general
difficult to work with when compared with the other popular toolkits
-- partly due to the lack of documentation).

I've never seen anybody give a convincing reason why GTk is a good
choice for *anything* except writing GNOME apps.
John
Jul 18 '05 #15
In article <87************ @pobox.com>, John J. Lee wrote:
You can certainly get good-looking Windows GUIs out of GTk
(eg. http://www.workrave.org/), but people complain that it's hard to
do (in fact, people frequently complain that GTk is in general
difficult to work with when compared with the other popular toolkits
-- partly due to the lack of documentation).
Aside from win32 issues, (which don't really worry me all that much at the
end of the day, YMMV) I'd say the *only* major problem with Gtk is
incomplete documentation. Otherwise it is an excellent, rationally designed
toolkit. It's reasonably lightweight, very responsive, has an excellent set
of controls, and is easy to bind to other languages. It's my preferred
toolkit. However, it is a UI TOOLKIT, not an app framework, and if you're
expecting an app framework you are likely to be disappointed.

There are app frameworks built on top of gtk like kiwi (still using gtk1,
but they're working on a gtk2 port.)

http://www.async.com.br/projects/kiwi/
I've never seen anybody give a convincing reason why GTk is a good
choice for *anything* except writing GNOME apps.


Change GNOME to unix and I'd agree. One can write very good Gtk apps
without ever touching the GNOME libraries.

Dave Cook
Jul 18 '05 #16
In article <17************ **************@ posting.google. com>, Ubaidullah
Nubar wrote:
Don't they all (PyGTK, wxPython, etc.) use the underlying GUIs (e.g.
Windows API/KDE/Gnome, etc.)? So where does the better looking part
come from? Or do some of them recreate the whole GUI layer?
Gtk does not use the native win32 controls. There's a theme that apparently
does use the native controls, but I've heard that it's slow. So it's not
the toolkit to choose right now if native look and feel is an overriding
concern.
Reading some other threads on this ng, there are posts that mention
that gtk has issues running under Win32. Are these concerns still
valid or have they been resolved with the latest version?


The latest version fixes some bugs, but the win32 port is still not very
mature, and does not have as large a community of testers as the unix
version.

Dave Cook
Jul 18 '05 #17
ub************* @hotmail.com (Ubaidullah Nubar) schreef:
Don't they all (PyGTK, wxPython, etc.) use the underlying GUIs (e.g.
Windows API/KDE/Gnome, etc.)? So where does the better looking part
come from? Or do some of them recreate the whole GUI layer?


On X (*nix/Linux) there isn't something like "the underlying GUI", and
there are several concurrent GUI toolkits (Tk, GTK/Gnome & Qt/KDE are
probably the best known). There exist Tk, GTK & Qt ports to Windows, but
they indeed (re)create all or most GUI elements (just like they do on X).

wxWindows is a cross-platform layer that can use a native GUI (and does so
by default). So, on Win32 it uses & looks like the Win32 GUI, on Linux it
uses GTK, on MacOS X it uses the standard Mac interface, etc.
(Recent versions of) GTK and Qt can emulate (or even use?) the Windows GUI,
but I'm told this is slow compared to using the native GUI or wxWindows.

--
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9
Jul 18 '05 #18
Ubaidullah Nubar wrote:

Don't they all (PyGTK, wxPython, etc.) use the underlying GUIs (e.g.
Windows API/KDE/Gnome, etc.)? So where does the better looking part
come from? Or do some of them recreate the whole GUI layer?
I'm pretty sure GTK draws it's own widgets and does not use the
underlying Windows API.
Reading some other threads on this ng, there are posts that mention
that gtk has issues running under Win32. Are these concerns still
valid or have they been resolved with the latest version?


Although none of my pygtk apps have been super-complex, I have had
little to no problems running them under Windows. They perform well.
Getting them to look good is usually a matter of choosing a good looking
theme engine (I use the bluecurve engine under windows) and tweaking
your Gtk rc file (for example, picking Tahoma 8pt as the font).

Jul 18 '05 #19
On 2003-09-13, John J. Lee <jj*@pobox.co m> wrote:
I've never seen anybody give a convincing reason why GTk is a good
choice for *anything* except writing GNOME apps.


I run several GTK apps that don't touch Gnome:
Sylpheed-Claws
Pan
XChat

GTK != GNOME.

--
Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
PGP Key: 8B6E99C5 | main connection to the switchboard of souls.
-------------------------------+---------------------------------------------
Jul 18 '05 #20

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
9579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9987
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9857
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7404
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5294
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3558
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2812
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.