libraries options not split in setup.cfg

2006-10-19 Thread Alexandre Guimond
Hi. I just noticed that the "libraries" options under the [build_ext] section in setup.cfg doesn't seem to get expanded. In particular, in distutils.command.build_ext.py of python 2.4. (line147): if type(self.libraries) is StringType: self.libraries = [self.libraries] though l

portable extensions options for external libraries

2006-10-18 Thread Alexandre Guimond
Hi. I want to create a portable setup.py file for windows / linux for an extension package that i need to link with external libraries (gsl and boost). on windows i do something like this: imaging = Extension( 'pyag.imaging._imaging', sources = ( glob.glob( 'Source/pyag/imagi

Re: how to deepcopy a slice object?

2006-08-16 Thread Alexandre Guimond
thx for all the help simon. good ideas i can work with. thx again. alex. Simon Forman wrote: > Alexandre Guimond wrote: > > Here is my reason: > > > > I have an object that contrains a 2D regular grid (matrix). In this > > regular grid, I place points at regular in

Re: how to deepcopy a slice object?

2006-08-15 Thread Alexandre Guimond
s somewhat annoying to carry so many indices in my class definition. Simon Forman wrote: > Alexandre Guimond wrote: > > Hi all, > > > > i'm trying to deepcopy a slice object but i get the following error. > > Does anyone know a workaround? > > > > ActiveP

how to deepcopy a slice object?

2006-08-15 Thread Alexandre Guimond
Hi all, i'm trying to deepcopy a slice object but i get the following error. Does anyone know a workaround? ActivePython 2.4.3 Build 12 (ActiveState Software Inc.) based on Python 2.4.3 (#69, Apr 11 2006, 15:32:42) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "licen

tkFileDialog.Open to select a large number of files

2006-05-25 Thread Alexandre Guimond
Hi. I've noticed that when i select a large number of files (> 400) using tkFileDialog.Open i get an empty list. Does anyone knows the limits of that interface regarding the maximum number of files that can be selected, or the maximum length of the resulting list? Does anyone have any work around?

distutils and binding a script to a file extension on windows

2006-05-13 Thread Alexandre Guimond
Hi. I built a little installer on windows XP using distutils for my package. In there i add a few files to the python script directory. I would like one of these scripts to be the default program to be used by files with a given extention (e.g. i have an image viewer and would like it to be used w

Re: python interpreter widget for Tkinter?

2006-04-11 Thread Alexandre Guimond
thx ian. exactly what I wanted. best, alex. -- http://mail.python.org/mailman/listinfo/python-list

python interpreter widget for Tkinter?

2006-04-10 Thread Alexandre Guimond
Hi i was wondering if there already existed a simple python interpreter widget for tkinter? Basically, i would like to be able to lauch a python interpreter in a seperate window from my tkinter app for debugging purposes. I would assume that this would be possible using idlelib, but i can't figure

creating custom options for custom widgets?

2006-03-22 Thread Alexandre Guimond
Hi all. I'm creating a new widget class using Tkinter (class inherited form Tkinter.Frame). This class creates a bunch of other widgets inside it that can be "gridded" either horizontally or vertically. I would like to provide the user of the class an option to change this layout on the fly, using

logging to a text widget

2006-03-02 Thread Alexandre Guimond
Hi. I'm using the logging package. I would like to send my log messages to a Text widget creating using Tkinter. I was wondering if there was a logging handler class that would do this. It seems that the standard handlers do not support this. Has anyone tried to do this? Thx for any help, alex -