I'm experiencing what seems to be strange behaviour. I don't know if
it's Pmw, Tkinter on Python. I have a button, defined in a
Pmw.buttonbox, that I would like to configure to "sunken" after it has
been clicked/released. Using the example style coding:
self.buttonBox1 .add('Add', command = self.addCalenda r)
the button remains "sunken". If I bind the event:
self.buttonBox1 .add('Add')
self.buttonBox1 .component('Add ').bind('<Butto nRelease-1>',
self.addCalenda rBind)
self.buttonBox1 .component('Add ').bind('<KeyRe lease-Return>',
self.addCalenda rBind)
the button reverts to "raised". The addCalendar and addCalendarBind are
still essentially stub functions:
def addCalendarBind (self,event):
self.addCalenda r()
def addCalendar(sel f):
global prog_mode
self.clearCalen dar()
prog_mode = 'add'
self.buttonBox1 .component('Add ').config(relie f='sunken')
self.buttonBox1 .component('Com mit').config(re lief='raised')
self.buttonBox1 .component('Upd ate').config(re lief='flat')
self.buttonBox1 .component('Del ete').config(re lief='flat')
self.buttonBox1 .component('Que ry').config(rel ief='flat')
--
---------------------------------------------------------------------
Scott Holmes http://sholmes.ws
http://pages.sbcglobal.net/scottholmes
sc*********@sbc global.net
Independent Programmer/Analyst Passport 4GL
PHP HTML Composer PostgreSQL Informix 4GL, SQL
---------------------------------------------------------------------
There are more things in heaven and earth, Horatio,
than are dreamt of in your philosophy
---------------------------------------------------------------------