Skip to content

Commit

Permalink
Update code to toga 0.3.0.dev8 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Mar 23, 2018
1 parent 16fbb01 commit 8db1ee9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions cricket/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,6 @@ def __repr__(self):
# Methods required by the TreeSource interface
######################################################################

def __len__(self):
return 0

def can_have_children(self):
return False

Expand Down
3 changes: 1 addition & 2 deletions cricket/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ def startup(self):
self.executor = None

# Main window of the application with title and size
self.main_window = toga.MainWindow(self.name, size=(1024, 768))
self.main_window.app = self
self.main_window = toga.MainWindow(title=self.name, size=(1024, 768))

# Setup the menu and toolbar
self._setup_commands()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
'cricket': ['icons/*'],
},
include_package_data=True,
install_requires=['toga'],
install_requires=['toga==0.3.0.dev8'],
scripts=[],
entry_points={
'console_scripts': [
Expand Down

0 comments on commit 8db1ee9

Please sign in to comment.