question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tutorial 2: toga.Group for Gtk

See original GitHub issue
(scrolling.py:20344): GLib-GIO-CRITICAL **: g_application_set_application_id: assertion 'application_id == NULL || g_application_id_is_valid (application_id)' failed
Traceback (most recent call last):
  File "/home/ry/.virtualenvs/Contrib-Beware/lib/python3.5/site-packages/toga_gtk/app.py", line 139, in _startup
    self.startup()
  File "/home/ry/.virtualenvs/Contrib-Beware/lib/python3.5/site-packages/toga/interface/app.py", line 125, in startup
    self.main_window.content = self._startup_method(self)
  File "scrolling.py", line 61, in build
    things = toga.Group('Things')
AttributeError: module 'toga' has no attribute 'Group'

This error is pulled from the tutorial 2. https://github.com/pybee/toga/blob/master/examples/tutorial2/tutorial/app.py The error is in regards to line 61.

This is found using the linux version of toga (toga-Gtk).

I have been able to work around the issue in the mean time.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
freakboy3742commented, Aug 3, 2017

Correct. Toga-gtk is an wrapper around what GTK provides. The intention is that the same Toga API can then be used to talk to Cocoa (on macOS), iOS, Windows Forms, or whatever other system native layer is available.

To that end - yes - everything that Gtk+ provides is fair game.

0reactions
freakboy3742commented, Dec 29, 2017

This should be resolved as a result of recent refactoring and testing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release 0.2.13 Russell Keith-Magee - Toga Documentation
Toga has some minimum requirements: • If you're on OS X, you need to be on 10.7 (Lion) or newer. • If you're...
Read more >
Alternate GTK/Gnome mapping for Toga.Command/Group · Issue ...
Toga needs an alternate GTK/Gnome mapping for Toga. ... Command/Group #1159 ... If you want to do this in practical terms: What would...
Read more >
Anagram Finding app with Python Part 2: Enter Toga - Medium
Welcome back! In the second part of our tutorial, we are going to create a GUI for our anagrama solver application. For newcomers...
Read more >
Toga Documentation | Manualzz
3.4. Toga internals 25. Toga Documentation, Release 0.2.5. 0.1.2 ... Cocoa: NSTextView inside an NSScrollView - GTK+: Gtk.TextView?
Read more >
toga-core: Documentation | Openbase
toga -core docs, getting started, code examples, API reference and more. ... When running under Linux, Toga uses the system native python GTK+3...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found