Skip to content

Commit

Permalink
changed toga version in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoArkadeep committed Jul 12, 2024
1 parent b76ea87 commit 52420d9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ test_sources = [
]

requires = [
"toga==0.4.4",
"pytest",
"setuptools",
"welly",
Expand All @@ -48,6 +49,7 @@ requires = [
"pint"
]
test_requires = [
"toga==0.4.4",
"pytest",
"setuptools",
"welly",
Expand All @@ -64,13 +66,13 @@ test_requires = [

[tool.briefcase.app.WellMasterGeoMech.macOS]
requires = [
"toga-cocoa~=0.3.0",
"toga-cocoa~=0.4.4",
"std-nslog~=1.0.0"
]

[tool.briefcase.app.WellMasterGeoMech.linux]
requires = [
"toga-gtk~=0.3.0",
"toga-gtk~=0.4.4",
]

[tool.briefcase.app.WellMasterGeoMech.linux.system.debian]
Expand Down Expand Up @@ -146,7 +148,7 @@ flatpak_sdk = "org.gnome.Sdk"

[tool.briefcase.app.WellMasterGeoMech.windows]
requires = [
"toga-winforms~=0.3.0",
"toga-winforms~=0.4.4",
]

# Mobile deployments
Expand Down
3 changes: 1 addition & 2 deletions src/WellMasterGeoMech/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ def set_preferences(self, command):
# This method sets up the preferences command
self._preferences = command
def preferences(self, widget):
# This method will be called when the preferences command is activated
show_preferences_window(aliaspath, stylespath, pstylespath,unitdict,unitpath)
show_preferences_window(self, aliaspath, stylespath, pstylespath, unitdict, unitpath)
def custom_edit_ucs(self, widget):
asyncio.create_task(self.run_custom_ucs())

Expand Down
4 changes: 3 additions & 1 deletion src/WellMasterGeoMech/manage_preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def save_preferences(self, widget):
def cancel(self, widget):
self.close()

def show_preferences_window(csv1_path, csv2_path, csv3_path, drops, unitpath):
def show_preferences_window(app, csv1_path, csv2_path, csv3_path, drops, unitpath):
window = PreferencesWindow("Manage Preferences", csv1_path, csv2_path, csv3_path, drops, unitpath)
#window.app = app
app.windows.add(window)
window.show()

0 comments on commit 52420d9

Please sign in to comment.