Re: [Tutor] Code Dosent work.

2009-05-09 Thread David
Jacob Mansfield wrote: not sure why i was using pygame, anyway the problem is with the saveing, press exit, the program will save to databox.txt, then start the program again giveing it the filename that it saved to, then look at the records. Post the code you have now and I am sure someone ca

Re: [Tutor] Code Dosent work.

2009-05-03 Thread Stefan Behnel
Jacob Mansfield wrote: > hi everyone, I'm a bit new here but i was wondering if someone could check > some of my code, it's not doing quite what it's meant to. As a general remark: it's a good idea to add a note on what your code is supposed to do, and in what way it behaves unexpectedly, i.e. wha

Re: [Tutor] Code Dosent work.

2009-05-03 Thread Lie Ryan
David wrote: Jacob Mansfield wrote: hi everyone, I'm a bit new here but i was wondering if someone could check some of my code, it's not doing quite what it's meant to. thanks Why were you using pygame? The only line that uses pygame is pygame.time.delay(900). It is an overkill to import

Re: [Tutor] Code Dosent work.

2009-05-03 Thread David
Jacob Mansfield wrote: hi everyone, I'm a bit new here but i was wondering if someone could check some of my code, it's not doing quite what it's meant to. thanks Works without pygame; filename, blank for none. Welcome to databox V2.0. 1. Searth the database. 2. Add a record. 3.

[Tutor] Code Dosent work.

2009-05-03 Thread Jacob Mansfield
hi everyone, I'm a bit new here but i was wondering if someone could check some of my code, it's not doing quite what it's meant to. thanks Databox_2_0.py: import pygame, sys, os pygame.init() def load(filename): if filename != '': e = 1 dec = "placeholder" fic = open(