Jeff Hobbs wrote:
> Michael Foord wrote:
>
>> I use Tk with Python (Tkinter).
>>
>> I have successfully got Tile working with Python and Windows
>> XP, using the pre-built dll provided with the 0.7.2 distribution.
>>
>> The 0.7.6 announcement says that a prebuilt windows binary
>> 'may' be available. It isn't available for download via
>> sourceforge (yet). Does anyone have a successfully built
>> binary for windows that I could use ?
>>
>
> I think that ActiveState has assisted in keeping module authors lazy by
> providing a recurring update of binaries with their modules, tile included. I
> believe a more recent version of tile can be found in the latest ActiveTcl.
>
>
Thanks for the reply Jeff.
I'll check out the Active TCL distribution.
>> Next I need to work out how to style my widgets from Python...
>>
>
> Any questions in particular? At worst, you fall back to calling direct Tcl
> through the eval method, but it might make sense to better support the style
> command in Python/Tkinter moving forward (as ttk::style will be core to Tk
> 8.5).
>
With tile I can't use all the normal options to create a button, but I
should use styles instead. This is fine, but making the correct Tcl
calls from Python is possibly slightly esoteric from a Python
programmers point of view.
When I went to the tile doc page on "Style", it showed just an overview
- with no actual details.
http://tktable.sourceforge.net/tile/doc/style.html
This probably isn't a problem, because there already exists a thin
Python wrapper around Tile widgets for Python. If you pass in options,
it builds the Tcl calls for you. It looks quite easy to use, and also
makes the Tcl -> Python mapping clear. It doesn't illustrate to me which
options are available though.
http://mfranklin.is-a-geek.org/docs/Tile/index.html
However, I'm not quite at that point in my code yet. :-)
When I am, you can rest assured I'll be back with questions.
All the best,
Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
>
>> (Oh and congratulations, Tile looks very good - thanks.)
>>
>
> On behalf of the various participants, you're welcome!
>
> Jeff Hobbs, The Tcl Guy, http://www.ActiveState.com/
>
>
>
>
>
|