Re: Tkinter <> and bindtags ordering

2007-04-03 Thread bytecolor
abpage module in my app. Guess I should take a harder look at it. Nice bit of software. -- bytecolor -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing Problems

2007-04-03 Thread bytecolor
t; > print "Supported="+str(ser) > > How can i get rid of those single quotes. > > Thanking you > > shakeel >>> l = ['0x3e', '0x28', '0x3b', '0x22', '0x20', '0x27', '0xaa'] >>> ','.join(l) '0x3e,0x28,0x3b,0x22,0x20,0x27,0xaa' You may want to look at the ConfigParser package too. It's for reading/ writing .ini file. -- bytecolor -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter <> and bindtags ordering

2007-04-03 Thread bytecolor
y as this is my first attempt at syntax highlighing. I can load a file and the highlighting works very well. I used an elaborate regex with named groups and re.finditer(). I either use the names directly as edit tags, or they help me look up other tags in a dict. It's quite fast. screenshot with

Tkinter <> and bindtags ordering

2007-04-02 Thread bytecolor
ging = False changing = False root = tk.Tk() t = tk.Text(master=root) t.pack() t.focus_set() t.tk.call(t._w, 'edit', 'modified', 0) t.bind('<>', text_changed) root.mainloop() -- bytecolor -- http://mail.python.org/mailman/listinfo/python-list

Re: package_data question

2007-03-05 Thread bytecolor
On Mar 5, 3:52 pm, "Goldfish" <[EMAIL PROTECTED]> wrote: > On Mar 5, 1:56 am, "bytecolor" <[EMAIL PROTECTED]> wrote: > I have a package along with a samples section. I have both a setup.py > script along with a MANIFEST.in file to make sure everything

package_data question

2007-03-04 Thread bytecolor
is not added to the tarball. -- bytecolor -- http://mail.python.org/mailman/listinfo/python-list

Re: win32com short path name on 2k

2006-04-26 Thread bytecolor
Thanks Russell, those funcs sound familiar. I've probably used them or, more than likely, read about them in the past. -- bytecolor -- http://mail.python.org/mailman/listinfo/python-list

Re: win32com short path name on 2k

2006-04-26 Thread bytecolor
his is really driving me nuts, because I know for a fact I was getting the long name using python on 2k not 3 days ago, but now it's returning the short name and I haven't changed/installed anything. -- bytecolor -- http://mail.python.org/mailman/listinfo/python-list

win32com short path name on 2k

2006-04-26 Thread bytecolor
com.client as w32c >>> fc = w32c.Dispatch('Featurecam.Application') >>> fc.InstallPath u'C:\\Program Files\\FeatureCAM' >>> Why the short vs long names? -- bytecolor -- http://mail.python.org/mailman/listinfo/python-list

Re: instance references?

2006-01-29 Thread bytecolor
Thanks Alex, the weak references *seem* to be doing what I want for now. In each __init__() I use: aptbase.drawables.append(weakref.ref(self)) Then in show(): for d in aptbase.drawables: o = d() if o is not None: # render it -- bytecolor -- http://mail.python.org/mailman

instance references?

2006-01-29 Thread bytecolor
objects to the render list. I only want objects that have been assigned to a variable to be rendered. (Try to ignore the function overloading.) So how can I tell if an instance of point, line or circle has actually been assigned to a variable? -- bytecolor -- http://mail.python.org/mailman/listi

Re: some suggestions about GUI toolkits?

2005-12-28 Thread bytecolor
I recently wrote a small application using wxPython (my first with this GUI). I've used it on Windows XP, Debian GNU/Linux (sarge) and OS X (Panther). The application only uses a few widgets but it wasnt difficult at all to get up and running. -- bytecolor -- http://mail.python.org/ma

Re: Is Python worth it??

2005-11-15 Thread bytecolor
http://www.norvig.com/21-days.html -- bytecolor -- http://mail.python.org/mailman/listinfo/python-list

Re: module to parse "pseudo natural" language?

2005-04-17 Thread bytecolor
is there a module out there that will already handle this > approach? > > Thanks for any suggestions :) > > Andrew If I were in your situation, I'd probably write a BNF for the tiny-language. This would help wrap my brain around the problem. The BNF would help show what kind of regular expression you are looking at creating as well. -- bytecolor -- http://mail.python.org/mailman/listinfo/python-list