Author: reinhard Date: 2009-12-10 03:40:05 -0600 (Thu, 10 Dec 2009) New Revision: 10117
Modified: trunk/gnue-forms/src/uidrivers/qt3/widgets/image.py trunk/gnue-forms/src/uidrivers/qt4/widgets/image.py trunk/gnue-forms/src/uidrivers/wx/widgets/image.py Log: Added missing function _ui_set_enabled_() to image implementations. Modified: trunk/gnue-forms/src/uidrivers/qt3/widgets/image.py =================================================================== --- trunk/gnue-forms/src/uidrivers/qt3/widgets/image.py 2009-12-10 09:36:08 UTC (rev 10116) +++ trunk/gnue-forms/src/uidrivers/qt3/widgets/image.py 2009-12-10 09:40:05 UTC (rev 10117) @@ -150,6 +150,17 @@ widget.setPixmap(pxm) pxmSize = pxm.size() + + # ------------------------------------------------------------------------- + # Enable/disable this widget + # ------------------------------------------------------------------------- + + def _ui_set_enabled_(self, index, value): + + # Images can't be disabled + pass + + # ============================================================================= # Configuration data # ============================================================================= Modified: trunk/gnue-forms/src/uidrivers/qt4/widgets/image.py =================================================================== --- trunk/gnue-forms/src/uidrivers/qt4/widgets/image.py 2009-12-10 09:36:08 UTC (rev 10116) +++ trunk/gnue-forms/src/uidrivers/qt4/widgets/image.py 2009-12-10 09:40:05 UTC (rev 10117) @@ -150,6 +150,17 @@ widget.setPixmap(pxm) pxmSize = pxm.size() + + # ------------------------------------------------------------------------- + # Enable/disable this widget + # ------------------------------------------------------------------------- + + def _ui_set_enabled_(self, index, value): + + # Images can't be disabled + pass + + # ============================================================================= # Configuration data # ============================================================================= Modified: trunk/gnue-forms/src/uidrivers/wx/widgets/image.py =================================================================== --- trunk/gnue-forms/src/uidrivers/wx/widgets/image.py 2009-12-10 09:36:08 UTC (rev 10116) +++ trunk/gnue-forms/src/uidrivers/wx/widgets/image.py 2009-12-10 09:40:05 UTC (rev 10117) @@ -175,8 +175,9 @@ dc.DrawBitmap(bmp, diffx, diffy) # draw the image to window -# ============================================================================= # Wrap an UI layer around a wx image # ============================================================================= +# Wrap an UI layer around a wx image +# ============================================================================= class UIImage (_base.UIHelper): """ @@ -237,6 +238,16 @@ widget.SetValue(value) + # ------------------------------------------------------------------------- + # Enable/disable this widget + # ------------------------------------------------------------------------- + + def _ui_set_enabled_(self, index, value): + + # Images can't be disabled + pass + + # ============================================================================= # Configuration data # ============================================================================= _______________________________________________ commit-gnue mailing list commit-gnue@gnu.org http://lists.gnu.org/mailman/listinfo/commit-gnue