[Tutor] inserting csv file into a sqlite3 memory connected table

2007-09-08 Thread ca17005
I am just getting started been though some tutorials for python and wx. I am basically just a visual basic person trying to learn python. Anyway I have spent hours experimenting with CSV and sqllite3 tutorial samples and misc snippets, Does anyone have any code samples that might get me going

[Tutor] More class questions

2007-09-08 Thread Paul McGuire
Ara - I found your question about the Pyparsing-based adventure game that I wrote. You can find more info on this from the presentation I made at PyCon'06, (http://www.python.org/pycon/2006/papers/4/). This link opens up at the title page, there are navigation controls in the lower right corner o

Re: [Tutor] Undo/Redo in wxpython?

2007-09-08 Thread Alan Gauld
"Trey Keown" <[EMAIL PROTECTED]> wrote > What is the proper way to undo/redo changes in a text box? I read > somewhere that the default undo depth is 1. How could I change this > to, > say, about 35? I dunno, its not in the book ;-) But just typing dir(TextCtrl) showed those two methods... Unfo

Re: [Tutor] WxPython Splashscreen?

2007-09-08 Thread Alan Gauld
"Trey Keown" <[EMAIL PROTECTED]> wrote > Does anyone know how to make a wxPython splashscreen? Using the wxSplashScreen widget? > not found any working examples. The wxPython book offers this: class SketchApp(wx.App): def OnInit(self): image = wx.image('splash.bmp', wx.BITMAP_TYPE_B

Re: [Tutor] replacing while loop

2007-09-08 Thread Alan Gauld
"Christopher Spears" <[EMAIL PROTECTED]> wrote > I have been asked to replace this while loop with a > try and except clause: > > while True: >fname = raw_input('Enter file name: ') >if os.path.exists(fname): >print"*** ERROR: '%s' already exists" % fname >else: >brea

Re: [Tutor] Python scripting

2007-09-08 Thread Alan Gauld
"Ryan" <[EMAIL PROTECTED]> wrote >I am on a linux machine and I was wondering about python scripting. Python is usually installed on linux. Just type python at a shell prompt. > Mainly to get it up and running but also what can I do with > it etc. Any help would be appreciated, Thnx Python

Re: [Tutor] rewriting script

2007-09-08 Thread Alan Gauld
"Christopher Spears" <[EMAIL PROTECTED]> wrote >I have written a script that reads and displays text > files: > while True: >if os.path.exists(fname): >fobj = open(fname, 'r') >for eachLine in fobj: >print eachLine, >fobj.close() > However, whenever