Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example program needs a toolbar set on app.main_window #1

Closed
evanbrumley opened this issue Aug 2, 2014 · 2 comments
Closed

Example program needs a toolbar set on app.main_window #1

evanbrumley opened this issue Aug 2, 2014 · 2 comments

Comments

@evanbrumley
Copy link

Just tried this out on Ubuntu 12.04, and the example program raises the following exception;

Traceback (most recent call last):
    File "/home/evan/.virtualenvs/psmove_toga/local/lib/python2.7/site-packages/toga/platform/gtk/app.py", line 27, in _startup
    self.main_window.app = self
  File "/home/evan/.virtualenvs/psmove_toga/local/lib/python2.7/site-packages/toga/platform/gtk/window.py", line 61, in app
    self._startup()
  File "/home/evan/.virtualenvs/psmove_toga/local/lib/python2.7/site-packages/toga/platform/gtk/window.py", line 24, in _startup
    if self.toolbar:
AttributeError: 'MainWindow' object has no attribute 'toolbar'

Adding this seems to fix the problem:

app.main_window.toolbar = []
cyrildoussin added a commit to cyrildoussin/toga that referenced this issue Aug 2, 2014
Fix issue beeware#1 to do with the main window toolbar not being specified in the first tutorial.
@freakboy3742
Copy link
Member

Thanks for the suggestion. However, I see this as a bug in the code, not the tutorial. You shouldn't need to explicitly specify "there's no toolbar".

@freakboy3742
Copy link
Member

Oops - sorry - commented on the bug report, not the pull request. Thanks for the report!

danyeaw pushed a commit that referenced this issue May 16, 2018
Merging in recent changes
freakboy3742 pushed a commit that referenced this issue May 28, 2019
freakboy3742 pushed a commit that referenced this issue Oct 17, 2020
freakboy3742 pushed a commit that referenced this issue Apr 6, 2022
freakboy3742 pushed a commit that referenced this issue Dec 7, 2022
Add a CI configuration for the testbed app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants