LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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


Reply
  Search this Thread
Old 05-26-2005, 07:38 PM   #1
ruwach
Member
 
Registered: Feb 2003
Location: sc
Distribution: mandrake 9
Posts: 73

Rep: Reputation: 15
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
 
Old 05-27-2005, 08:05 AM   #2
Dodgeram01
Member
 
Registered: Jun 2003
Distribution: Gentoo and Ubuntu
Posts: 95

Rep: Reputation: 15
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.
 
Old 05-27-2005, 08:28 AM   #3
APB_4
Member
 
Registered: Nov 2004
Distribution: KDE Neon User edition; Manjaro; OpenSUSE Leap
Posts: 298

Rep: Reputation: 31
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.
 
Old 05-27-2005, 09:19 AM   #4
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
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
 
Old 05-27-2005, 10:49 AM   #5
ruwach
Member
 
Registered: Feb 2003
Location: sc
Distribution: mandrake 9
Posts: 73

Original Poster
Rep: Reputation: 15
Hey this stuff is great !
Thanks so much guys,
i will let you know how it worked out
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
script that opens the new console and does it's stuff in there frankie_DJ Programming 4 08-16-2005 12:22 PM
python cgi script and premature end of script headers Neruocomp Programming 1 07-28-2005 11:43 AM
Python MP3 script help flamesrock Programming 2 07-31-2004 07:17 PM
python script LinuxLala Programming 14 04-07-2004 06:19 AM
Python - can I import my own stuff? miknight Programming 1 06-10-2003 07:48 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration