Hello,
It was pretty straight forward to edit the u_main.tk to get it to use my X11 tcl/tk. But, I can't get it to draw any subwindows. IOW pd launches as expected, the main window is displayed, but choosing the 'open' or 'new' menu commands doesn't draw a new window. The patch is loaded though - if I start the DAC the patch produces audio...
Any ideas?
/Henrik
The C code will probably be easy to get going, but there is going to be some added checks on the Tcl/Tk side of things (pd/src/u_main.tk aka pd.tk). Basically, the GUI only checks the OS not the Windowing engine. So you'll have to add checks to pd/src/u_main.tk. In an installed app its known as bin/pd.tk, but its the exact same file.
This is the command you'll need: tk windowingsystem
which returns one of
aqua win32 x11
tk::mac::useCGDrawing is a Tk/Aqua-only command, so that might be the only change needed.
.hc
In the mean time, I'm trying to compile pd for Tcl/Tk for X11, the one installed through Fink. I changed a few lines i s_inter.c so that it finds wish, but it still assumes I have the Aqua version of Tcl/Tk installed and complains about tk::mac::useCGDrawing is missing (run time
- compiling works fine). Any help would be appreciated.
/Henrik Frisk