Re: How to access a bitmap object after defining it with DefineBitmap?
Jeff Hobbs <[email protected]> Fri, 16 Jul 2010 11:31:38 -0700
| Newsgroups | gmane.comp.lang.perl.tk |
|---|---|
| Message-ID | <[email protected]> |
On 16/07/2010 7:19 AM, Craig Votava wrote: > Thanks for the response, I see how changing the way I define the bitmap > will get me access to what I'm looking for. > > Does this mean that there is a "hole" in Ptk, with respect to > DefineBitmap? I imagine that after using DefineBitmap, there is an > object available somewhere in memory, but there doesn't seem to be a way > of referencing it. The activestate documentation > (http://tcl.activestate.com/man/tcl8.4/TkCmd/bitmap.htm#M12) states: > >> When a bitmap image is created, Tk also creates a new command whose >> name is the same as the image. This command may be used to invoke >> various operations on the image. It has the following general form: >> imageName option ?arg arg ...? > This leads me to believe that I have access to a new Tk command that was > generated by using DefineBitmap. Is there a way to access this new Tk > command from pTk? That is for when you use the equivalent of 'image create bitmap ...', which is not the same as the C DefineBitmap call. 'image create bitmap ...' is for use wherever you would find -image as an option, and does result in creating a command. DefineBitmap creates bitmmaps in a hashtable recognized by -bitmap option, which is used in older parts of Tk (those closer tied to X11). Jeff --++**==--++**==--++**==--++**==--++**==--++**==--++**== ptk mailing list [email protected] https://mailman.stanford.edu/mailman/listinfo/ptk