Re: import structures

2007-04-30 Thread spohle
On Apr 30, 8:16 am, "Hamilton, William " <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: [EMAIL PROTECTED] > [mailto:python- > > [EMAIL PROTECTED] On Behalf Of spohle > > Sent: Monday, April 30, 2007 10:03 AM > > To: [EMAIL PROTE

Re: import structures

2007-04-30 Thread spohle
On Apr 30, 8:00 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > On Apr 30, 9:56 am, spohle <[EMAIL PROTECTED]> wrote: > > > > > hi, > > > i have written a small project for myself all in seperate classes and > > each of the classes lives in a sepe

import structures

2007-04-30 Thread spohle
hi, i have written a small project for myself all in seperate classes and each of the classes lives in a seperate file. now i am looking for an import structure something like import wx, and then have access to all my classes just like wx.Button or wx.BoxSizer etc. as of now i have a __init__.py

writing my own extension

2007-04-10 Thread spohle
hi, i use a lot the enumerate in my scripts and got really interested in possibly writing my own enumerate as an extension, for which i would want to extend it to be able to pass a start and step attribute. can anyone point me on my way with good examples for that and how to write extensions ? t

calling class instances and their methods

2007-03-26 Thread spohle
hi, i created an instance of a my own class which has methods and all. now i get an outside function called, which is unfortunatly not aware of the instace at all (i don't control how this outside function is called). but i would like to get access back to my instance and it's methods. is there a

Re: formatting strings to have the same width

2007-03-17 Thread spohle
sorry the code should read: foo = ["aaa", "1232"] for each in foo: print each.center(10, " ") + " | " -- http://mail.python.org/mailman/listinfo/python-list

formatting strings to have the same width

2007-03-17 Thread spohle
hi, i got random strings and wanna attach a " | " at the end. now if i print them i want the | to always be underneath each other. example code: foo = ["aaa", "1232"] for each in foo: print foo[0].center(10, " ") + " | " foo2 = "1232" print foo2.center(10, " ") + " | " even though i define a c

tkinter modifying multiple widgets with one scrollbar

2006-06-23 Thread spohle
hi how can i modify multiple widgets with one scrollbar ? thanks in advance sven -- http://mail.python.org/mailman/listinfo/python-list

Re: sort a dictionary by keys in specific order

2006-05-26 Thread spohle
i write the dict out to a file, not with file methods but rather with an inhouse python code. unfortunatly the order plays a big role for that. -- http://mail.python.org/mailman/listinfo/python-list

Re: sort a dictionary by keys in specific order

2006-05-26 Thread spohle
how do i get the result back into the dictionary ? -- http://mail.python.org/mailman/listinfo/python-list

sort a dictionary by keys in specific order

2006-05-26 Thread spohle
hi i have a normal dictionary with key and value pairs. now i wanna sort by the keys BUT in a specific order i determine in a list !? any ideas dic = {'key1':'value1', 'key2':'value2', 'key3':'value3'} list = [key2, key3, key1] -- http://mail.python.org/mailman/listinfo/python-list

MAC Laptop right click/drag mouse button TKinter

2006-05-22 Thread spohle
hi, i programmed a small app with TK and use TK. some of the functions are called with events like rightDrag and rightClick on an item on the canvas. that works fine on a pc. on my mac laptop i only have the one button, so im used to use CTRL+ Mouse Button. that doesn't work with TK. any ideas ho