Using python to extend a python app

2005-03-24 Thread dataangel
I'm writing a python app that works as a replacement for the menu that comes with most minimalist wms when you right click the root window. It's prettier and written completely in python. I'd like to provide hooks or some system so that people can write their own extensions to the app, for exam

PyGTK Popup menu?

2005-03-18 Thread dataangel
I want to make a pygtk app that consists completely of a window. When I run it, a menu should appear where the mouse cursor is. I've been looking at the official pygtk tutorial and documentation, but everything seems to assume that I'm either creating a window to put the menu in (I just want it

Python, Matlab and AI question

2005-02-17 Thread dataangel
I'm a student who's considering doing a project for a Machine Learning class on pathing (bots learning to run through a maze). The language primarily used by the class has been Matlab. I would prefer to do the bulk of the project in python because I'm familiar with pygame (for the visuals) but

Re: deriving from str

2004-12-27 Thread dataangel
Paolo Veronelli wrote: I want to add some methods to str class ,but when I change the __init__ methods I break into problems class Uri(str): def __init__(self,*inputs): print inputs if len(inputs)>1: str.__init__(self,'<%s:%s>'%inputs[:2]) else:

Re: Python IDE

2004-12-15 Thread dataangel
fuzzylollipop wrote: TruStudio for Eclipse is nice for those everything must be free socialists. ActiveState Komodo is probably the best commerical Python IDE and the ActiveState Python plugin for Visual Studio is great for those that do VS. It's also great for those college students looking to

Cool object trick

2004-12-12 Thread dataangel
I read some discussion on this list before about how sometimes it's useful to create a generic object class that you can just stick attributes to. I was reading the PyPanel source (not written by me) and I came across this: #--