Re: [Tutor] Which GUI?

2007-08-02 Thread Tiger12506
I did that once for a very good fiction book I wanted to read. <$2. for transfer. It was worth it to me. Agreed. Definitely a good system. JS > On Thu, Aug 02, 2007 at 12:48:05PM -0400, scott wrote: >> >> We do have a inter-library exchange here as well, but I have never used >> it and don't kno

Re: [Tutor] sqlite: does "?" work in PRAGMA commands?

2007-08-02 Thread John Fouhy
On 03/08/07, Terry Carroll <[EMAIL PROTECTED]> wrote: > On Thu, 2 Aug 2007, John Fouhy wrote: > > > I'm not sure about PRAGMA, but you can do introspection in sqlite by > > examining the table 'sqlite_master'. > > Thanks. That's how I get the table names, actually. But it doesn't give > the colum

Re: [Tutor] os.path.exists(path) returns false when the path actually exists!

2007-08-02 Thread Kent Johnson
Tiger12506 wrote: > I apologize for my bringing up these beliefs on this list. They are better > placed in a blog somewhere, or more efficiently, in a zip file of ASCII text > as small and as neat as possible. Yes, thanks. Could we stop the Microsoft bashing - or whatever you want to call it -

Re: [Tutor] Which GUI?

2007-08-02 Thread Dave Kuhlman
On Thu, Aug 02, 2007 at 12:48:05PM -0400, scott wrote: > > We do have a inter-library exchange here as well, but I have never used > it and don't know much about it. I'll take a trip to the library > sometime to ask. > For sure, even if you *don't* need the wxPython book, check into the inter

Re: [Tutor] [OT] Re: os.path.exists(path) returns false when the path actually exists!

2007-08-02 Thread Tiger12506
>> But they have provided Microsoft with much money because more useless >> people can use computers. > > That's a little harsh, isn't it? A person using a computer is not useless > by virtue of not wanting to program or understand technical details, but > rather just wanting to use it for its fun

Re: [Tutor] os.path.exists(path) returns false when the path actually exists!

2007-08-02 Thread Tiger12506
>> Granted, all of these are just visual sugar and are completely worthless. >> But they have provided Microsoft with much money because more useless >> people >> can use computers. It is because these people do not wish to learn, do >> not >> have the capacity, or just plain would rather pay thr

Re: [Tutor] os.path.exists(path) returns false when the pathactually exists!

2007-08-02 Thread Alan Gauld
"Kyle Brooks" <[EMAIL PROTECTED]> wrote >> would rather have Microsoft make obfuscate things, to make it >> "easier" for >> them, than to try to understand themselves. >> > Why are you making out people and Microsoft in such a negative way? JS is reflecting a commonly held view of Microsoft and

[Tutor] [OT] Re: os.path.exists(path) returns false when the path actually exists!

2007-08-02 Thread Terry Carroll
On Thu, 2 Aug 2007, Tiger12506 wrote: > But they have provided Microsoft with much money because more useless > people can use computers. That's a little harsh, isn't it? A person using a computer is not useless by virtue of not wanting to program or understand technical details, but rather ju

Re: [Tutor] tree-like functions call to find dependencies

2007-08-02 Thread Alan Gauld
"Maxim Loginov" <[EMAIL PROTECTED]> wrote > my problem is: I have (for example) 2 sets of quantity set(A,B,C) or > set(A,B,D). I need to calculate another quantity E which is function > of A,B,C or A,F. but F in turn is function of (A,B,D). ... > In reality dependecies of > course deeper sets ar

Re: [Tutor] os.path.exists(path) returns false when the path actually exists!

2007-08-02 Thread Kyle Brooks
Hi. > Granted, all of these are just visual sugar and are completely worthless. > But they have provided Microsoft with much money because more useless people > can use computers. It is because these people do not wish to learn, do not > have the capacity, or just plain would rather pay through th

Re: [Tutor] Design Pattern + Wxpython

2007-08-02 Thread Alan Gauld
"Pradeep Kumar" <[EMAIL PROTECTED]> wrote >I am new to this and wants to do a project for Autoparts industry >(Trading) > with backend SQL Server 2000. > > 1. Which Design Pattern is suitable for me. Most of them, but I'd consider the MVC as a starter. Alan G ___

Re: [Tutor] gotoxy

2007-08-02 Thread Alan Gauld
"Robert William Hanks" <[EMAIL PROTECTED]> wrote > hi folks, is there in python a gotoxy like in pascal so i can print > stuff > in other parts of the screen? Yes there is a port of the Borland Pascal conio library module available on the Vaults of Parnassus. Dunno how up to date it is though

Re: [Tutor] shelves behaving badly

2007-08-02 Thread Luke Jordan
i think that some form of that is going on. actually there is only one shelve; that's the confusing part, there are dictionaries in that shelve though. i think it has to do with running things in IDLE and losing track of what versions of shelves and modules are active in what shell, etc etc, becaus

Re: [Tutor] Which GUI?

2007-08-02 Thread Alan Gauld
"eShopping" <[EMAIL PROTECTED]> wrote >>Switching gears from linear to event driven programming is a pretty >>significant paradigm shift. Will this book help him get his head >>around >>that? > > Chapter 3 of WPIA gives a nice introduction to event driven > programming. But event driven program

Re: [Tutor] os.path.exists(path) returns false when the path actually exists!

2007-08-02 Thread Tiger12506
> I have never understood Microsoft changing things from one release to > another. In the beginning extensions were IIRC always visible. > > Every time I configure a computer I have to spend a lot of time undoing > the initial settings so my users can get their work done! Even though I completely

Re: [Tutor] os.path.exists(path) returns false when the path actually exists!

2007-08-02 Thread Bob Gailer
Iyer wrote: > So, it was the extensions all the way ! Apparently the file extension > was hidden by Windows! It now works. I have never understood Microsoft changing things from one release to another. In the beginning extensions were IIRC always visible. Every time I configure a computer I hav

Re: [Tutor] Design Pattern + Wxpython

2007-08-02 Thread Carroll, Barry
> -Original Message- > Message: 4 > Date: Wed, 1 Aug 2007 19:01:36 +0400 > From: "Pradeep Kumar" <[EMAIL PROTECTED]> > Subject: [Tutor] Design Pattern + Wxpython > To: tutor@python.org > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > I am new t

Re: [Tutor] Which GUI?

2007-08-02 Thread scott
Terry Carroll wrote: > I'm an avid user of my local public library, and if you're not sure you > want to shell out the bucks for it (and assuming you're in the US), I'd > suggest you do what I did: try to borrow a copy through your library. My > library did not have it, but could get it for me on

Re: [Tutor] [Bulk] Re: Which GUI?

2007-08-02 Thread scott
Eric Brunson wrote: > Thanks for the review, I hope > it helps the original poster. Yes, defiantly. Everyone haves been a great help in choosing which GUI. My mind is much clearer now and I know what I want to do. I'm going to try and get a copy of the WxPython book and then go through some

Re: [Tutor] sqlite: does "?" work in PRAGMA commands?

2007-08-02 Thread Kent Johnson
Terry Carroll wrote: > GET_TABLE_INFO_COMMAND = "PRAGMA TABLE_INFO(?)" > pragma_cmd = GET_TABLE_INFO_COMMAND > field_data = self.dbconn.execute(pragma_cmd, (tablename)) > > I get the error: > > sqlite3.OperationalError: near "?": syntax error > > Some of the variations included using "tablenam

Re: [Tutor] Which GUI?

2007-08-02 Thread eShopping
>Richard Querin wrote: > > On 8/2/07, scott <[EMAIL PROTECTED]> wrote: > > > > > >> I was thinking about finding a copy of that book, so maybe starting > >> WxPython would be easier then and not worry about Tkinter. Is "WxPython > >> in Action" a very good book? > >> > >> > > > > I'm no programme

Re: [Tutor] Which GUI?

2007-08-02 Thread Terry Carroll
On Thu, 2 Aug 2007, Eric Brunson wrote: > Switching gears from linear to event driven programming is a pretty > significant paradigm shift. Will this book help him get his head around > that? Hard to say. It does have a chapter, Chapter 3, devoted to that. ___

Re: [Tutor] Which GUI?

2007-08-02 Thread Terry Carroll
On Thu, 2 Aug 2007, scott wrote: > I was thinking about finding a copy of that book, so maybe starting > WxPython would be easier then and not worry about Tkinter. Is "WxPython > in Action" a very good book? I can say that it's the best book on wxPython that I'm aware of. Of course, it's the

Re: [Tutor] Which GUI?

2007-08-02 Thread Eric Brunson
Richard Querin wrote: > On 8/2/07, Eric Brunson <[EMAIL PROTECTED]> wrote: > > >> Switching gears from linear to event driven programming is a pretty >> significant paradigm shift. Will this book help him get his head around >> that? >> >> > > That's one of the main reasons why I bought it

Re: [Tutor] Which GUI?

2007-08-02 Thread Richard Querin
On 8/2/07, Eric Brunson <[EMAIL PROTECTED]> wrote: > Switching gears from linear to event driven programming is a pretty > significant paradigm shift. Will this book help him get his head around > that? > That's one of the main reasons why I bought it actually. I couldn't grasp in any significan

Re: [Tutor] sqlite: does "?" work in PRAGMA commands?

2007-08-02 Thread Terry Carroll
On Thu, 2 Aug 2007, John Fouhy wrote: > I'm not sure about PRAGMA, but you can do introspection in sqlite by > examining the table 'sqlite_master'. Thanks. That's how I get the table names, actually. But it doesn't give the column names. It does give the SQL used to create the table, so I c

Re: [Tutor] Which GUI?

2007-08-02 Thread Eric Brunson
Richard Querin wrote: > On 8/2/07, scott <[EMAIL PROTECTED]> wrote: > > >> I was thinking about finding a copy of that book, so maybe starting >> WxPython would be easier then and not worry about Tkinter. Is "WxPython >> in Action" a very good book? >> >> > > I'm no programmer by trade, bu

Re: [Tutor] Which GUI?

2007-08-02 Thread Jeff Johnson
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of scott > Sent: Friday, July 27, 2007 2:29 PM > To: tutor@python.org > Subject: [Tutor] Which GUI? > > Hi, > > now that I have a very basic understanding of Python I would like to > take a look at

Re: [Tutor] Which GUI?

2007-08-02 Thread Richard Querin
On 8/2/07, scott <[EMAIL PROTECTED]> wrote: > I was thinking about finding a copy of that book, so maybe starting > WxPython would be easier then and not worry about Tkinter. Is "WxPython > in Action" a very good book? > I'm no programmer by trade, but dabble in Python/wxPython for fun and bough

Re: [Tutor] Which GUI?

2007-08-02 Thread scott
Terry Carroll wrote: >> I think that is a good plan, Tkinter is pretty easy to learn but harder >> to use to create polished, high-function interfaces. wxPython comes with >> a lot more in the box. > > I've heard "Tkinter is easier to learn" before, and I think I would once > have agreed. But

Re: [Tutor] gendata.py

2007-08-02 Thread Kyle Brooks
Hi. If you think time.ctime is Unix specific, it is not. - Kyle On 8/2/07, Eric Brunson <[EMAIL PROTECTED]> wrote: > > What is it that you think makes it Unix specific? > > Que Prime wrote: > > > > This script appears to be written for Unix systems. Is there a way to > > get it to work for Pyth

Re: [Tutor] operator * of the list and tuple

2007-08-02 Thread Kyle Brooks
Hi. The explanation on that page may be a bit confusing, so I will add to it. If you think of L * n as something similiar to doing a shallow copy of the list L n times, then it makes some sense: >>> a = [] >>> L = [[]] >>> for i in xrange(5): ... a.append(L[:][0]) has the same (or similia

Re: [Tutor] shelves behaving badly

2007-08-02 Thread Kent Johnson
Luke Jordan wrote: > i've implemented a database as a shelve of record class instances. some > of the fields in each record are dictionaries. > > i needed to parse info from 3 different reports into the dictionary > fields in each record instance. i wrote the code to do this and tinkered > it

Re: [Tutor] operator * of the list and tuple

2007-08-02 Thread Kent Johnson
Yang wrote: > So, can somebody tell me how the * operator of list and tuple work, > and how can we make use of it? A bit more here: http://docs.python.org/lib/typesseq.html See especially note (2) Kent ___ Tutor maillist - Tutor@python.org http://mai

Re: [Tutor] Filemaker interactions

2007-08-02 Thread Kent Johnson
Ian Witham wrote: > Can my CGI script be an ODBC client? How? Yes mxODBC is a payware ODBC driver: http://www.egenix.com/products/python/mxODBC/ Here is an example of connecting to ODBC on Windows: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303667 which apparently has been replaced

Re: [Tutor] sqlite: does "?" work in PRAGMA commands?

2007-08-02 Thread John Fouhy
I'm not sure about PRAGMA, but you can do introspection in sqlite by examining the table 'sqlite_master'. -- John. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor