This page is being performed while I'm porting Typing Turtle Activity to Gtk3.
There is a [ticket] with some useful information that I'm using on the porting and to keep tracking this port. Besides, this wiki page will be useful to write some code snippets about what are the difficulties that I'm having on the port and maybe can be useful for someone else.
I will take this guide as reference on the Gtk3 porting.
gc = self.get_style().fg_gc[Gtk.StateType.NORMAL]
gc = self.get_style().fg[Gtk.StateType.NORMAL]
self.layout = self.create_pango_layout() self.layout.set_text(self.title_original)
self.layout = self.create_pango_layout() self.layout.set_text(self.title_original, len(self.title_original)
self.lessonbuffer = Gtk.TextBuffer.new(self.tagtable) self.lessontext = Gtk.TextView.new_with_buffer(self.lessonbuffer)
instructions_tag = Gtk.TextTag('instructions')
instructions_tag = Gtk.TextTag.new('instructions')
entries = self.keymap.get_entries_for_keyval(keyval)
valid, entries = self.keymap.get_entries_for_keyval(keyval)
Every entry was a tuple of (keycode, group, level). Now, this is an object with those attributes.