~jamestait/gwibber/fix-845374

« back to all changes in this revision

Viewing changes to gwibber/microblog/plugins/pingfm/gtk/pingfm/__init__.py

Initial conversion to PyGI/Gtk3

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
# Ping.fm widgets for Gwibber
19
19
#
20
20
 
21
 
import gtk
22
 
from gtk import Builder
 
21
from gi.repository import Gtk
23
22
from gwibber.microblog.util import resources
24
23
 
25
 
class AccountWidget(gtk.VBox):
 
24
class AccountWidget(Gtk.VBox):
26
25
  """AccountWidget: A widget that provides a user interface for configuring pingfm accounts in Gwibber
27
26
  """
28
27
  
29
28
  def __init__(self, account=None, dialog=None):
30
29
    """Creates the account pane for configuring pingfm accounts"""
31
 
    gtk.VBox.__init__( self, False, 20 )
32
 
    self.ui = gtk.Builder()
 
30
    Gtk.VBox.__init__( self, False, 20 )
 
31
    self.ui = Gtk.Builder()
33
32
    self.ui.set_translation_domain ("gwibber")
34
33
    self.ui.add_from_file (resources.get_ui_asset("gwibber-accounts-pingfm.ui"))
35
34
    self.ui.connect_signals(self)