tcl list to python list?

2006-09-16 Thread jerry . levan
Hi, I have a file that contains a "tcl" list stored as a string. The list members are sql commands ex: { begin { select * from foo where baz='whatever'} {select * from gooble } end { insert into bar values('Tom', 25) } } I would like to parse the tcl list into a python list.

Ann: PyPgExplorer-0.8

2006-07-19 Thread jerry . levan
PyPgExplorer is a pure python application that allows the user to browse and modify Postgresql Databases. Features include: o A Scripts menu that makes access to your favorite SQL scripts only a click away. o On unix and Mac systems, if psql is detected in a standard location, then access to

Re: Fix for a Tktable bug....

2006-07-11 Thread jerry . levan
[EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] wrote: > > [EMAIL PROTECTED] wrote: > > > Hi, > > > I have a Tktable object (self.table) and when I click on a row the > > > whole row is selected. > > > > > > If I click of a button to get the row contents then > > > > > > self.table.curselection() fai

Fix for a Tktable bug....

2006-07-11 Thread jerry . levan
[EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] wrote: > > Hi, > > I have a Tktable object (self.table) and when I click on a row the > > whole row is selected. > > > > If I click of a button to get the row contents then > > > > self.table.curselection() fails with a traceback of: > > > > Traceback (

Here is the problem, need a fix :)

2006-07-11 Thread jerry . levan
[EMAIL PROTECTED] wrote: > Hi, > I have a Tktable object (self.table) and when I click on a row the > whole row is selected. > > If I click of a button to get the row contents then > > self.table.curselection() fails with a traceback of: > > Traceback (most recent call last): > File > "/Library/

Can't Get A Selection from Tktable...

2006-07-11 Thread jerry . levan
Hi, I have a Tktable object (self.table) and when I click on a row the whole row is selected. If I click of a button to get the row contents then self.table.curselection() fails with a traceback of: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.4//lib

DBus examples?

2006-07-04 Thread jerry . levan
I am trying to learn a bit about dbus on my Fedora Core 5 laptop. All of the python examples I find on google fail to "compile" for one reason or another, I guess the interface is still in flux... Does anyone know of a source for a few simple examples that can get me started? Does anyone know if

Is it possible to split a class definition?

2006-06-21 Thread jerry . levan
Hi, Is it possible to split a Class definition over two or more text files? (if so, how:) Jerry -- http://mail.python.org/mailman/listinfo/python-list

Tktable question?

2006-06-08 Thread jerry . levan
Hi, I am using a Tktable in my python database browser program to hold the results of a query. I have declared an ArrayVar like (IntVar) to hold the table contents. In Tcl/Tk programs I have observed that the associated table variable does *not* get "smaller" as various results are displayed in t

Re: wxPython problems with Fedora Core 5

2006-06-02 Thread jerry . levan
writeson wrote: > Hi all, > > I'm trying to use wxPython from a fairly new installation of Fedora > Core 5. I installed wxPython using yum -y install wxPython and that all > seemed to work fine. However, when I run Python and do this: > > import wx > > I get this: > > Traceback (most recent call l

Solved: Tktable, WinXP and ActiveState Python 2.4.3,x

2006-06-01 Thread jerry . levan
[EMAIL PROTECTED] wrote: > Hi, > I have a python app that runs fine on MacOS X and Fedora Core 5. > > This evening I dragged the folder over to my windows partition and > tried to run the rascal. > > The program starts up fine but at the first call to create a Table > object > I get > > Traceback

Tktable, WinXP and ActiveState Python 2.4.3,x

2006-05-30 Thread jerry . levan
Hi, I have a python app that runs fine on MacOS X and Fedora Core 5. This evening I dragged the folder over to my windows partition and tried to run the rascal. The program starts up fine but at the first call to create a Table object I get Traceback (most recent call last): File "C:\Python24\

Re: How to use tk.call ?

2006-05-30 Thread jerry . levan
Eric, Thanks, your tip did the trick... Is there someplace where tk.call is discussed? Jerry -- http://mail.python.org/mailman/listinfo/python-list

Re: How to use tk.call ?

2006-05-29 Thread jerry . levan
>> self.table.bind("",self.table.tk.call(self.table._w,'yview','scroll',-5,'units') >I haven't used Table, but are you sure that what you are calling >"self.table" here actually has mouse focus? >James Yup, I click on the table, and then frantically work the mouse wheel to no effect... Jerry -

How to use tk.call ?

2006-05-29 Thread jerry . levan
Hi, I am trying to port one of my Tcl/Tk apps to Python ( 2.4.2/3). One task is to try to be able to use my wheel mouse to scroll a Tktable object. The tcl code looks like: #Support the MouseWheel bind $ui_vars(table) { $ui_vars(table) yview scroll -5 units } bind $ui_vars(table) { $