After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 325452 - Second argument of gtk.SpinButton.spin() should have a default value
Second argument of gtk.SpinButton.spin() should have a default value
Status: RESOLVED FIXED
Product: pygtk
Classification: Bindings
Component: gtk
2.6.x
Other Linux
: Normal enhancement
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2006-01-01 17:03 UTC by Sebastian Rittau
Modified: 2006-04-02 15:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastian Rittau 2006-01-01 17:03:55 UTC
It would be nice if the signature of gtk.SpinButton.spin() could be changed to:

  spin(direction, increment = 1)

For most values of direction the increment parameter is ignored anyways. I don't see why I should specify an irrelevant parameter. A spin value of "1" seems to be a reasonable default.
Comment 1 Johan (not receiving bugmail) Dahlin 2006-04-02 15:48:25 UTC
Fixed in CVS:

Checking in ChangeLog;
/cvs/gnome/gnome-python/pygtk/ChangeLog,v  <--  ChangeLog
new revision: 1.1381; previous revision: 1.1380
done
Checking in gtk/gtk.defs;
/cvs/gnome/gnome-python/pygtk/gtk/gtk.defs,v  <--  gtk.defs
new revision: 1.233; previous revision: 1.232
done