Re: "Is this an RBEntryView bug?"
Jonathan Matthew <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.rhythmbox.devel |
|---|---|
| Message-ID | <CAHSf_vM0tHG2XFBSges1NeE9cXm=+d7vjPdCZziKossxAqQd1A@mail.gmail.com> |
On Wed, Sep 26, 2012 at 7:04 PM, David Mohammed <[email protected]> wrote: > Hi, > this little code snippet entered into the v2.97 Rhythmbox python console > gives the errors below - is this a bug - or have I incorrectly created the > RBEntryView? >>>> from gi.repository import RB >>>> db = shell.props.db >>>> shell_player = shell.props.shell_player >>>> entry_view = RB.EntryView().new(shell.props.db, >>>> shell.props.shell_player, True,False) You're doing RB.EntryView() here, which is going to call the constructor without setting any of the properties correctly. You probably wanted to do RB.EntryView.new(args) instead.