update arcade dependency to development branch, add setting start

settings start category constant
This commit is contained in:
csd4ni3l
2025-05-14 15:24:16 +02:00
parent b4d343fdd0
commit 8766dd5f91
5 changed files with 8 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ import copy, pypresence, json, os
import arcade, arcade.gui
from utils.constants import button_style, dropdown_style, slider_style, settings, discord_presence_id
from utils.constants import button_style, dropdown_style, slider_style, settings, discord_presence_id, settings_start_category
from utils.utils import FakePyPresence
from utils.preload import button_texture, button_hovered_texture
@@ -25,7 +25,7 @@ class Settings(arcade.gui.UIView):
self.on_radiobuttons = {}
self.off_radiobuttons = {}
self.current_category = "Mandelbrot"
self.current_category = settings_start_category
self.modified_settings = {}
@@ -54,7 +54,7 @@ class Settings(arcade.gui.UIView):
self.display_categories()
self.display_category("Mandelbrot")
self.display_category(settings_start_category)
def display_categories(self):
for category in settings:

View File

@@ -7,4 +7,4 @@ requires-python = ">=3.11"
dependencies = ["arcade", "pypresence>=4.3.0"]
[tool.uv.sources]
arcade = { git = "https://github.com/pythonarcade/arcade.git", rev = "gui/controller" }
arcade = { git = "https://github.com/pythonarcade/arcade.git", rev = "development" }

View File

@@ -1,3 +1,3 @@
Pillow
git+https://github.com/pythonarcade/arcade.git@gui/controller
git+https://github.com/pythonarcade/arcade.git@development
pypresence

View File

@@ -43,3 +43,4 @@ settings = {
},
"Credits": {}
}
settings_start_category = "Mandelbrot"

4
uv.lock generated
View File

@@ -5,7 +5,7 @@ requires-python = ">=3.11"
[[package]]
name = "arcade"
version = "3.1.0"
source = { git = "https://github.com/pythonarcade/arcade.git?rev=gui%2Fcontroller#ed17c937dd6fa7ebc59a2f56971fe1e2596ad46e" }
source = { git = "https://github.com/pythonarcade/arcade.git?rev=development#a17e95502bc0c7cd0527445e62bff84a49183c43" }
dependencies = [
{ name = "pillow" },
{ name = "pyglet" },
@@ -78,7 +78,7 @@ dependencies = [
[package.metadata]
requires-dist = [
{ name = "arcade", git = "https://github.com/pythonarcade/arcade.git?rev=gui%2Fcontroller" },
{ name = "arcade", git = "https://github.com/pythonarcade/arcade.git?rev=development" },
{ name = "pypresence", specifier = ">=4.3.0" },
]