[PD-dev] Fw: impd

Mathieu Bouchard matju at sympatico.ca
Thu Mar 25 20:09:31 CET 2004


On Fri, 19 Mar 2004, Thomas Grill wrote:

> Ok, right now i realize that it's a problem in u_main.tk /
> pdtk_canvas_altkey and pdtk_canvas_ctrlkey. The variable "context" is not
> defined there. Consequently, the problems only occur with keyboard
> interaction. Using the menus just works fine.

Yeah, I fixed it. It was a hurried fix to a problem with the
"accelerators" database.

You see, that code is replacing a pageful of "if" statements that would
check for each key individually instead of using how the menus were
defined. I also changed how the menus are defined, as entries were created
one by one using the "add command" method of Menu objects. I replaced that
by a menu generator and data tables. It's nicer-looking code, easier to
modify, and cutting hundreds of lines in u_main.tk.

> - src/makefile should be in the cvs as it is created from makefile.in by
> autoconf

oh yeah? but I am configuring with --prefix=$HOME, which changes the
makefile, right?

> - the arrowheads look nice in some cases but ugly when the objects are close
> to each other... i think there should be a menu command to switch them off.

Well, what I want is change the arrowhead size from default to something
smaller depending on patchcord length, and make it disappear completely
under a certain threshold. Right now the arrow code is only half a line of
code (really), as that capability is already builtin in Tk's Canvas
objects.

> very nice work!

thanks

________________________________________________________________
Mathieu Bouchard                       http://artengine.ca/matju





More information about the Pd-dev mailing list