gimp r27728 - trunk/plug-ins/pygimp
- From: larsc svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27728 - trunk/plug-ins/pygimp
- Date: Thu, 27 Nov 2008 11:33:02 +0000 (UTC)
Author: larsc
Date: Thu Nov 27 11:33:02 2008
New Revision: 27728
URL: http://svn.gnome.org/viewvc/gimp?rev=27728&view=rev
Log:
Let SpinnerEntry return a float instead of trying to convert the textvalue to an
int.
Modified:
trunk/plug-ins/pygimp/gimpfu.py
Modified: trunk/plug-ins/pygimp/gimpfu.py
==============================================================================
--- trunk/plug-ins/pygimp/gimpfu.py (original)
+++ trunk/plug-ins/pygimp/gimpfu.py Thu Nov 27 11:33:02 2008
@@ -506,12 +506,6 @@
digits = 20
gtk.SpinButton.__init__(self, self.adj, step, int(digits))
- def get_value(self):
- try:
- return int(self.get_text())
- except ValueError, e:
- raise EntryValueError, e.args
-
class ToggleEntry(gtk.ToggleButton):
def __init__(self, default=0):
gtk.ToggleButton.__init__(self)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]