Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • pygobject pygobject
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 180
    • Issues 180
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 27
    • Merge requests 27
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • pygobjectpygobject
  • Issues
  • #151

Gtk.Adjustment.__init__ overrides ignore value argument in Python 3

I suspect this is due to dict iteration ordering and in Python 2 this just worked by accident.

import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
adj = Gtk.Adjustment(1.5, -24., 12., 0.5, 3, 0)
assert adj.get_value() == 1.5

This works with Python 2.7 and fails with Python 3.6.

The workaround is to use Gtk.Adjustment.new

Edited Jan 15, 2018 by Christoph Reiter
Assignee
Assign to
Time tracking