Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-26-2005, 07:38 PM
|
#1
|
|
Member
Registered: Feb 2003
Location: sc
Distribution: mandrake 9
Posts: 73
Rep:
|
which script stuff to use? --Python
Hey there,
i have been spending some time learning python. i do enjoy it so.
Heres the deal. i need some dirrection advice.
i have a friend that wants me to set up a customer database for him. Easy stuff like name, phone number, email address. and current status.
he also wants to be able to print this stuff out.
Heres the deal. He runs windows xp.
how could i write something to help him out ? i thought of glade, since its gtk and gtk can use a windows runtime.... i also thought of making something web-based and doing this with cgi scripts. but what would be easier to learn.... using a database like mysql, or writing text files and reading them to retrieve the info. The scripting itself could just be a simple dictionary... so........
any suggestions?
thanks
|
|
|
|
05-27-2005, 08:05 AM
|
#2
|
|
Member
Registered: Jun 2003
Distribution: Gentoo and Ubuntu
Posts: 95
Rep:
|
I would use wxPython with MySQL, although you could use a different database if you wanted. It would depend on how big the database needed to be and all the features of the database that might need to be utilized in the future.
|
|
|
|
05-27-2005, 08:28 AM
|
#3
|
|
Member
Registered: Nov 2004
Distribution: KDE Neon User edition; Manjaro; OpenSUSE Leap
Posts: 298
Rep:
|
I'd agree with wxPython. You can set it out in a spreadsheet like grid which can be useful. If it's a small, simple database text files are probably the easiest as it doesn't require learning anything about MySQL or similar.
|
|
|
|
05-27-2005, 09:19 AM
|
#4
|
|
Senior Member
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524
Rep:
|
following up on APB_4:
if you go the text-file route, have a look at the ConfigParser module, which easily reads and writes files on this format:
Code:
[foo]
name0: value
name1: some other value
name2:
a value on
multiple lines
[bar]
more_names: more_values
...
and it basically reads into
Code:
{'foo': {'name0': 'value', 'name1': 'some other value', ...}}
well, a ConfigParser object with that structure.
for more ideas, read http://www.catb.org/~esr/writings/ta...l/ch05s02.html
hth --Jonas
|
|
|
|
05-27-2005, 10:49 AM
|
#5
|
|
Member
Registered: Feb 2003
Location: sc
Distribution: mandrake 9
Posts: 73
Original Poster
Rep:
|
Hey this stuff is great !
Thanks so much guys,
i will let you know how it worked out
|
|
|
|
All times are GMT -5. The time now is 06:05 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|