![]() |
|
#1
|
||||
|
||||
Re: Simple Python Inventory ProgramI just posted a GID Community blog entitled: Simple Python Inventory Program.
Quote:
Please let me know what you think. This is an auto-generated message posted by GIDNetwork™ on behalf of the author. __________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
||||
|
#2
|
|||
|
|||
Re: Simple Python Inventory ProgramWhat is module quitter and which book did it come from?
|
|
#3
|
||||
|
||||
Re: Simple Python Inventory ProgramQuote:
Python Code:
Here's the code for MultiListbox (found at the Activestate Python Cookbook): Python Code:
__________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#4
|
|||
|
|||
Re: Simple Python Inventory ProgramThanks for clearing that up Crystal,
I thought I had seen that feeble-minded Quitter thing before. Another thing is that the MultiListbox code has the old Python NoNo of mixed space and tab indents and hangs up misserably on the DrPython IDE. I guess there are many dangers of importing these kind of modules. |
|
#5
|
||||
|
||||
Re: Simple Python Inventory ProgramI usually go through and clean up imported code when I use it in my programs, even if it's just to add comments so I know what it's doing. But usually I find a lot of small quirks that I can fix, like the tabs vs. spaces indenting.
The code I just posted are straight from the "source"; they aren't the modified ones I'm actually using, though I didn't modify the quitter program very much since it does what I need it to. However, they should work for someone who wants to use them as-is. Out of curiosity, why do you consider the Quitter "feeble-minded"? (I just like to know how other programmers think so I can get better myself). __________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#6
|
||||
|
||||
Re: Simple Python Inventory ProgramCongratulations C, and thank you for sharing your work.
Recently, I was also interested in a simple "inventory program", and I was going to write to you about your program but problems with my Internet connection prevented me from starting a discussion with you. Considering that I know nothing about Python, how difficult is it to 'install' this program on my (Windows XP) PC? That's considering that you are willing to share the files with me, of course. On a related note, I have been using StarOffice / OpenOffice since 2000, and the only thing I missed is the fact that it didn't include a database program. Today, I see that this is no longer true. Version 2+ (I was using ver.1+) comes with a database program (Base), and the best part, is that I can use it to connect to my existing MySQL server. I have just downloaded the file (took a while!) and I will experiment to see if I can create a simple form to help me manage my inventory. I am still struggling with the JDBC driver... |
|
#7
|
||||
|
||||
Re: Simple Python Inventory ProgramAs long as you have Python installed on your computer, it should work just fine. The easiest way to run it is just type "python MPPInventory.py" at a DOS prompt; you just have to make sure that all the necessary files are put in the same directory. Because of the interest, I'll see about making a .exe file so everything will be in one package and easily runs on Windows.
Please be aware that it's a very simplistic program right now. I made it as a coding practice mostly so it doesn't have all the whiz-bang features a true DB should have; it's really just using hash tables to store everything. But if people are interested I can work on it some more; Python 2.5 has SQLite built in so I make a true DB out of it. I wasn't aware that Base connected to MySQL. That's pretty cool. I thought it was just an Access clone; it sounds like it may be even better than Access in that sense. __________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#8
|
||||
|
||||
Re: Simple Python Inventory ProgramI've created a Windows .exe file but it weighs in at 4MB, so I can't upload it here. If you would like a copy, just PM me w/ your email address. Otherwise you can just use the Python scripts in the below ZIP file. If you need help, just ask.
__________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#9
|
|||
|
|||
Re: Simple Python Inventory ProgramIs something like Quitter "feeble-minded"?
In my opinion yes! If I want to exit a program, I really don't want to be asked again! That is something you ask a five year old child. |
|
#10
|
||||
|
||||
Re: Simple Python Inventory ProgramSo what happens if you didn't want to quit but clicked the wrong button accidentally? I've had it happen several times so I personally like being asked if I really want to quit.
Now, if I close the window with the "X" corner button, then I don't want to be bothered because I'm voluntarily closing the whole thing. Of course, it still might be good to have an "are you sure?" dialog in case the user was trying to maximize/minimize the window. Probably the best thing is to make it user selectable: have a check box where a person can specify "don't ask me again". That way everyone should be happy. __________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| BOOKEEPING program, HELP!! | yabud | C Programming Language | 10 | 17-Nov-2006 04:48 |
| i need help with a simple program!! | alfie27 | C++ Forum | 1 | 06-Oct-2006 22:29 |
| Looking for opinions | crystalattice | Miscellaneous Programming Forum | 6 | 27-Sep-2006 22:02 |
| Help with simple math table program (was a SIMPLE program) | Bubba | C Programming Language | 3 | 09-Mar-2005 13:40 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The