#1 color palette bug with tk driver

closed-fixed
nobody
None
5
2002-01-23
2000-10-24
No

Trying to open the palette0 or palette1 window with the menu entries in the tk driver gives the following error:

bad window path name ""
while executing
"pack append .edit [Buttons0:create [Buttons0] .edit.buttons $plot] "top fillx""
(procedure "plcmap0_edit" line 12)
invoked from within
"plcmap0_edit .x01c"
invoked from within
".x01c.ftop.pmenu.m.options invoke active"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list $w invoke active]"
(procedure "tkMenuInvoke" line 29)
invoked from within
"tkMenuInvoke .x01c.ftop.pmenu.m.options 1"
(command bound to event)

It seems to be related with the "sclass" implementation in "pltools.tcl", but it is too complicated for my limited tcl knowledged. It seems also that "sclass" is very old, perhaps it could be now implemented with namespaces?

Thanks,
Joao

I am using a cvs version off plplot with tcl/tk-8.0.4.

Discussion

  • Geoffrey Furnish

    Thanks. sclass was an early Tcl attempt to do OO in Tcl. Itcl has now largely assumed the lead role in this area. How would you feel if the pallette widgets were Itk widgets? Meaning, they wouldn't work unless you configured with Itcl/Itk?

     
  • João Cardoso

    João Cardoso - 2000-10-31

    Thanks. sclass was an early Tcl attempt to do OO in
    Tcl. Itcl has now largely assumed the lead role in this
    area. How would you feel if the pallette widgets were
    Itk widgets? Meaning, they wouldn't work unless you
    configured with Itcl/Itk?

    I think that it should be done in plain tcl; itcl/itk is a 'configure' time option, if at all existent.

    The problem with 'sclass' must be an incompatible feature of tcl-8.0 with tcl-7.6, as I remember seeing the palette working with tcl-7.6 ( I'm using tcl-8.0.4)

    Another option would be to implement the colour palette in itcl and disable it if itcl does not exist.

     
  • João Cardoso

    João Cardoso - 2002-01-23
    • status: open --> open-fixed
     
  • João Cardoso

    João Cardoso - 2002-01-23
    • status: open-fixed --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks