Skip to content

Commit

Permalink
Merge pull request #1995 from rmartin16/examples-with-briefcase
Browse files Browse the repository at this point in the history
Add support for `briefcase run` to examples
  • Loading branch information
freakboy3742 authored Jun 22, 2023
2 parents 37ee15b + 79b9cf8 commit c3113be
Show file tree
Hide file tree
Showing 126 changed files with 545 additions and 457 deletions.
1 change: 1 addition & 0 deletions changes/1995.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The example apps were updated to support being run with ``briefcase run`` on all platforms.
1 change: 1 addition & 0 deletions examples/activityindicator/CHANGELOG
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See Toga releases for change notes.
1 change: 1 addition & 0 deletions examples/activityindicator/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Released under the same license as Toga. See the root of the Toga repository for details.
22 changes: 11 additions & 11 deletions examples/activityindicator/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,49 @@ bundle = "org.beeware"
version = "0.0.1"
url = "https://beeware.org"
license = "BSD license"
author = 'Tiberius Yak'
author = "Tiberius Yak"
author_email = "tiberius@beeware.org"

[tool.briefcase.app.activityindicator]
formal_name = "Activity Indicator"
description = "A testing app"
sources = ['activityindicator']
sources = ["activityindicator"]
requires = [
'../../core',
"../../core",
]


[tool.briefcase.app.activityindicator.macOS]
requires = [
'../../cocoa',
'std-nslog>=1.0.0',
"../../cocoa",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.activityindicator.linux]
requires = [
'../../gtk',
"../../gtk",
]

[tool.briefcase.app.activityindicator.windows]
requires = [
'../../winforms',
"../../winforms",
]

# Mobile deployments
[tool.briefcase.app.activityindicator.iOS]
requires = [
'../../iOS',
'std-nslog>=1.0.0',
"../../iOS",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.activityindicator.android]
requires = [
'../../android',
"../../android",
]

# Web deployment
[tool.briefcase.app.activityindicator.web]
requires = [
'../../web',
"../../web",
]
style_framework = "Shoelace v2.3"
1 change: 1 addition & 0 deletions examples/beeliza/CHANGELOG
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See Toga releases for change notes.
1 change: 1 addition & 0 deletions examples/beeliza/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Released under the same license as Toga. See the root of the Toga repository for details.
22 changes: 11 additions & 11 deletions examples/beeliza/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,49 @@ bundle = "org.beeware"
version = "0.0.1"
url = "https://beeware.org"
license = "BSD license"
author = 'Tiberius Yak'
author = "Tiberius Yak"
author_email = "tiberius@beeware.org"

[tool.briefcase.app.beeliza]
formal_name = "Beeliza"
description = "A testing app"
sources = ['beeliza']
sources = ["beeliza"]
requires = [
'../../core',
"../../core",
]


[tool.briefcase.app.beeliza.macOS]
requires = [
'../../cocoa',
'std-nslog>=1.0.0',
"../../cocoa",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.beeliza.linux]
requires = [
'../../gtk',
"../../gtk",
]

[tool.briefcase.app.beeliza.windows]
requires = [
'../../winforms',
"../../winforms",
]

# Mobile deployments
[tool.briefcase.app.beeliza.iOS]
requires = [
'../../iOS',
'std-nslog>=1.0.0',
"../../iOS",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.beeliza.android]
requires = [
'../../android',
"../../android",
]

# Web deployment
[tool.briefcase.app.beeliza.web]
requires = [
'../../web',
"../../web",
]
style_framework = "Shoelace v2.3"
1 change: 1 addition & 0 deletions examples/box/CHANGELOG
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See Toga releases for change notes.
1 change: 1 addition & 0 deletions examples/box/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Released under the same license as Toga. See the root of the Toga repository for details.
2 changes: 1 addition & 1 deletion examples/box/box/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def set_green_color(self, widget):
self.outer_box.style.background_color = GREEN

def reset_color(self, widget):
self.outer_box.style.background_color = None
del self.outer_box.style.background_color

def toggle_yellow_button(self, widget):
if widget.value:
Expand Down
22 changes: 11 additions & 11 deletions examples/box/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,49 @@ bundle = "org.beeware"
version = "0.0.1"
url = "https://beeware.org"
license = "BSD license"
author = 'Tiberius Yak'
author = "Tiberius Yak"
author_email = "tiberius@beeware.org"

[tool.briefcase.app.box]
formal_name = "Box Demo"
description = "A testing app"
sources = ['box']
sources = ["box"]
requires = [
'../../core',
"../../core",
]


[tool.briefcase.app.box.macOS]
requires = [
'../../cocoa',
'std-nslog>=1.0.0',
"../../cocoa",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.box.linux]
requires = [
'../../gtk',
"../../gtk",
]

[tool.briefcase.app.box.windows]
requires = [
'../../winforms',
"../../winforms",
]

# Mobile deployments
[tool.briefcase.app.box.iOS]
requires = [
'../../iOS',
'std-nslog>=1.0.0',
"../../iOS",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.box.android]
requires = [
'../../android',
"../../android",
]

# Web deployment
[tool.briefcase.app.box.web]
requires = [
'../../web',
"../../web",
]
style_framework = "Shoelace v2.3"
1 change: 1 addition & 0 deletions examples/button/CHANGELOG
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See Toga releases for change notes.
1 change: 1 addition & 0 deletions examples/button/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Released under the same license as Toga. See the root of the Toga repository for details.
22 changes: 11 additions & 11 deletions examples/button/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,49 @@ bundle = "org.beeware"
version = "0.0.1"
url = "https://beeware.org"
license = "BSD license"
author = 'Tiberius Yak'
author = "Tiberius Yak"
author_email = "tiberius@beeware.org"

[tool.briefcase.app.button]
formal_name = "Button Demo"
description = "A testing app"
sources = ['button']
sources = ["button"]
requires = [
'../../core',
"../../core",
]


[tool.briefcase.app.button.macOS]
requires = [
'../../cocoa',
'std-nslog>=1.0.0',
"../../cocoa",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.button.linux]
requires = [
'../../gtk',
"../../gtk",
]

[tool.briefcase.app.button.windows]
requires = [
'../../winforms',
"../../winforms",
]

# Mobile deployments
[tool.briefcase.app.button.iOS]
requires = [
'../../iOS',
'std-nslog>=1.0.0',
"../../iOS",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.button.android]
requires = [
'../../android',
"../../android",
]

# Web deployment
[tool.briefcase.app.button.web]
requires = [
'../../web',
"../../web",
]
style_framework = "Shoelace v2.3"
1 change: 1 addition & 0 deletions examples/canvas/CHANGELOG
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See Toga releases for change notes.
1 change: 1 addition & 0 deletions examples/canvas/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Released under the same license as Toga. See the root of the Toga repository for details.
22 changes: 11 additions & 11 deletions examples/canvas/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,49 @@ bundle = "org.beeware"
version = "0.0.1"
url = "https://beeware.org"
license = "BSD license"
author = 'Tiberius Yak'
author = "Tiberius Yak"
author_email = "tiberius@beeware.org"

[tool.briefcase.app.canvas]
formal_name = "Canvas Demo"
description = "A testing app"
sources = ['canvas']
sources = ["canvas"]
requires = [
'../../core',
"../../core",
]


[tool.briefcase.app.canvas.macOS]
requires = [
'../../cocoa',
'std-nslog>=1.0.0',
"../../cocoa",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.canvas.linux]
requires = [
'../../gtk',
"../../gtk",
]

[tool.briefcase.app.canvas.windows]
requires = [
'../../winforms',
"../../winforms",
]

# Mobile deployments
[tool.briefcase.app.canvas.iOS]
requires = [
'../../iOS',
'std-nslog>=1.0.0',
"../../iOS",
"std-nslog>=1.0.0",
]

[tool.briefcase.app.canvas.android]
requires = [
'../../android',
"../../android",
]

# Web deployment
[tool.briefcase.app.canvas.web]
requires = [
'../../web',
"../../web",
]
style_framework = "Shoelace v2.3"
1 change: 1 addition & 0 deletions examples/colors/CHANGELOG
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See Toga releases for change notes.
1 change: 1 addition & 0 deletions examples/colors/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Released under the same license as Toga. See the root of the Toga repository for details.
Loading

0 comments on commit c3113be

Please sign in to comment.