[POS-commit] Kiwi/Kiwi Proxies.py,1.67,1.68
kiko at async.com.br
kiko at async.com.br
Sat May 31 13:03:47 BRST 2003
Update of /cvs/Kiwi/Kiwi
In directory anthem:/tmp/cvs-serv28724/Kiwi
Modified Files:
Proxies.py
Log Message:
Disabling numeric SpinButtons when the proxy uses decimal separators or
formats. It's a workaround for a python bug, actually, but it's
complicated. See http://bugs.gnome.org/show_bug.cgi?id=114132
Index: Proxies.py
===================================================================
RCS file: /cvs/Kiwi/Kiwi/Proxies.py,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- Proxies.py 22 May 2003 22:13:03 -0000 1.67
+++ Proxies.py 31 May 2003 16:03:45 -0000 1.68
@@ -38,7 +38,7 @@
import mx
import Views
-from WidgetProxies import standard_widgets, RadioGroup
+from WidgetProxies import standard_widgets, RadioGroup, Entry
from Views import SlaveView, GladeView, GladeSlaveView, BaseView
from Delegates import SlaveDelegate, GladeSlaveDelegate, GladeDelegate, \
Delegate
@@ -430,7 +430,6 @@
% (attr_name, widget)
widgetproxy = wpklass(self, widget, attr_name)
-
# XXX: move these out when Widget() is implemented
if pre_formats.has_key(attr_name):
widgetproxy.set_format(pre_formats[attr_name])
@@ -438,6 +437,13 @@
widgetproxy.set_numeric(TRUE)
if attr_name in pre_datetime:
widgetproxy.set_datetime(TRUE)
+
+ # See Entry.SpinButtonProxy for details; numeric separators
+ # bungle things up. Could be cleaned up by GNOME bug
+ # http://bugs.gnome.org/show_bug.cgi?id=114132
+ if self._decimal_separator and isinstance(widgetproxy,
+ Entry.SpinButtonProxy):
+ widgetproxy.disable_numeric()
widgetproxy.default = widgetproxy.read()
attr_map[attr_name] = widgetproxy
More information about the POS-commit
mailing list