Well, so things are going well with my application until I decided to
try it on Kubuntu under GTK...  All of the sudden my dCheckMenuItem
widgets were not working...So, I put this little script together:

# -*- coding: utf-8 -*-

import dabo
dabo.ui.loadUI('wx')

class mainForm(dabo.ui.dForm):
        def afterInit(self):
                self.panel = dabo.ui.dPanel(self, Size=(200, 300))
                self.Sizer = dabo.ui.dSizer('v')
                self.Sizer.append1x(self.panel)
        
                m = self.MenuBar
                menu = m.getMenu("File")
                menu.append("Test Check Item", menutype="check", 
OnHit=self.onHit_menuItem)
        
        def onHit_menuItem(self, evt):
                print evt.EventObject
#               print evt.EventObject.Checked
                


if __name__ == "__main__":
        app = dabo.dApp()
        app.MainFormClass = mainForm
        app.start()

My version info:
Platform: GTK
Python Version: 2.5.1 on linux2
Dabo Version: Version 0.8.2; Revision 3777
UI Version: 2.8.4.0 on wxGTK (gtk2)

Ok, so I originally had the event handler print out whether or not it
was checked...Well, I got an attribute error.  So, comment that out
and just have it print out the class statement about the menu item.
Lo and behold it's a regular menu item.  I delved into the code and
found in dMenu.py line 378 which ignores menutype if platform is GTK.
So, I figured maybe we haven't updated this section in a while... I
commented out line 378 and run everything again.  It ran and created
the menu item but wouldn't fire an event.  This is with wx 2.8.4.

Could someone running the latest wx in Linux comment out line 378 in
dMenu.py and run the above script?  Before I go futzing around with
building wx by hand I just wanted to know it it will work.  Paul or
Ed, do you remember the problems you were having before and why you
had to do that fix?  Also, if it isn't fixed can we fudge a workaround
for the time being?

Cheers,

Nate L.


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to