Public bug reported:

In python-gi, attempting to use Gtk.TreeModelSort(child_model), raises
TypeError, saying it takes no arguments.  This is incorrect.
Gtk.TreeModelSort uses a child model as its argument.

This works correctly in both quantal and raring, but not precise.  The
init api is still the same from pyGTK... http://www.pygtk.org/docs/pygtk
/class-gtktreemodelsort.html

Example code:

from gi.repository import Gtk

model = Gtk.ListStore(GdkPixbuf.Pixbuf, str, str, str, float, str, bool, bool)
sort = Gtk.TreeModelSort(model)


Raises:
TypeError: GObject.__init__() takes exactly 0 arguments (1 given)

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: python-gi 3.2.2-1~precise
ProcVersionSignature: Ubuntu 3.2.0-37.58-generic 3.2.35
Uname: Linux 3.2.0-37-generic i686
ApportVersion: 2.0.1-0ubuntu17.1
Architecture: i386
Date: Sun Feb  3 10:48:09 2013
InstallationMedia: Xubuntu 12.04.1 LTS "Precise Pangolin" - Release i386 
(20120817.3)
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: pygobject
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: pygobject (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 precise

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pygobject in Ubuntu.
https://bugs.launchpad.net/bugs/1114406

Title:
  Gtk.TreeModelSort does not init properly

Status in “pygobject” package in Ubuntu:
  New

Bug description:
  In python-gi, attempting to use Gtk.TreeModelSort(child_model), raises
  TypeError, saying it takes no arguments.  This is incorrect.
  Gtk.TreeModelSort uses a child model as its argument.

  This works correctly in both quantal and raring, but not precise.  The
  init api is still the same from pyGTK...
  http://www.pygtk.org/docs/pygtk/class-gtktreemodelsort.html

  Example code:

  from gi.repository import Gtk

  model = Gtk.ListStore(GdkPixbuf.Pixbuf, str, str, str, float, str, bool, bool)
  sort = Gtk.TreeModelSort(model)


  
  Raises:
  TypeError: GObject.__init__() takes exactly 0 arguments (1 given)

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: python-gi 3.2.2-1~precise
  ProcVersionSignature: Ubuntu 3.2.0-37.58-generic 3.2.35
  Uname: Linux 3.2.0-37-generic i686
  ApportVersion: 2.0.1-0ubuntu17.1
  Architecture: i386
  Date: Sun Feb  3 10:48:09 2013
  InstallationMedia: Xubuntu 12.04.1 LTS "Precise Pangolin" - Release i386 
(20120817.3)
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: pygobject
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pygobject/+bug/1114406/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to