[Tutor] Float and decimal spaces

2007-08-03 Thread Toon Pieton
Hey all! My memory seem to have a horrible leak. How does one limit the amount of decimal spaces for a float? I used to know that... Example: not 5.398042156, but 5.4 (if I decide to have only one place). Thanks in advance! Toon Pieton. ___ Tutor

[Tutor] Debugging

2007-02-08 Thread Toon Pieton
Hey friendly users! I have a question considering debugging: is it possible to get the current code line that is being executed? Thanks in advance! Toon Pieton ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Staring myself blind

2007-01-20 Thread Toon Pieton
7;t post the whole program, since it's ~1000 lines long. Does anybody see what causes the problem? Or have any tips how to find the error easily? Thanks in advance! Toon Pieton ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Creating folders

2007-01-10 Thread Toon Pieton
Hey friendly users! My question is pretty simple. How can I create a folder with Python? Trying to make a program which will allow me to save my notes (txt files) quickly and cleanly. Having to create folder manually would really make it a bit obsolete. Thanks in advance! ___

[Tutor] Floats and rounding down

2007-01-06 Thread Toon Pieton
ny - not to complicated - way to do that? Thanks in advance for reading and caring! Toon Pieton ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] winreg question

2006-12-22 Thread Toon Pieton
oker = Key( HKCU, "Software\\PartyGaming\\PartyPoker" ) 2) From this set of keys just opened, I want to get the data stored under one called AppPath. How do I do that? Thanks in advance! Toon Pieton ___ Tutor maillist - T

[Tutor] getting all txt files in a folder

2006-12-12 Thread Toon Pieton
Hey friendly users, Is there any way to get all the txt files in a certain folder and all of its "sub"-folders? With sub-folder I mean all the folders inside the previously found folder. Any help would be greatly appreciated Greetings, T

[Tutor] Opening a pdf on a certain page

2006-12-12 Thread Toon Pieton
Hey friendly users, Is there anyway to open a .pdf at a certain page? Been searching the internet, but couldnt find anything. Thanks in advance, Toon Pieton ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Getting the directory the program is in

2006-12-11 Thread Toon Pieton
Hey friedly users! I was wondering: how can I get the directory the program is in? For example "C:\Python Programs\Calculator\". Thanks in advance for reading, Toon Pieton ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailma

[Tutor] pyExcelerator and Graphs

2006-12-11 Thread Toon Pieton
Thanks in advance for reading this! Toon Pieton ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] WXPython Listbox Problem

2006-12-06 Thread Toon Pieton
#x27;9','8','7','6','5','4','3','2'],style=0) self.box1.Bind(wx.EVT_LISTBOX, self.b1func,id=ID_BOX1) self.box2.Bind(wx.EVT_LISTBOX, self.b2func,id=ID_BOX2) I hope anybody can help me. If you need to see the full code, just send me a reply Thanks in advance to anybody reading/helping! Toon Pieton ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Q: win32 download (attack of the newbies)

2006-12-06 Thread Toon Pieton
running Win XP Pro, and have Python ver 2.5. What am I doing wrong? BTW: I really need to get that information into Excel. This program is for some beginner computer users, and all they really know is Word and Excel. Thanks in advance! Toon Pieton. ___