我有一个gtk旋转按钮“ self.spinbutton_points_team_left”,并希望通过以下方式增加它
self.spinbutton_points_team_left.spin(gtk.SPIN_STEP_FORWARD,increment=0)
但是由于错误而停止
File "/home/family/glade/scoreboard_uwr/scoreboard_uwr.py", line 2478, in transferlog_to_board
self.spinbutton_points_team_left.spin(gtk.SPIN_STEP_FORWARD,increment=0)
File "/usr/lib/python3/dist-packages/gi/overrides/__init__.py", line 39, in __getattr__
return getattr(self._introspection_module, name)
File "/usr/lib/python3/dist-packages/gi/module.py", line 139, in __getattr__
self.__name__, name))
AttributeError: 'gi.repository.Gtk' object has no attribute 'SPIN_STEP_FORWARD'
有人建议我在这里做错了吗?