VertexEngine 1.4.dev1__tar.gz → 1.4rc1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {vertexengine-1.4.dev1/src/VertexEngine.egg-info → vertexengine-1.4rc1}/PKG-INFO +6 -1
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/README.md +5 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/pyproject.toml +1 -1
- vertexengine-1.4rc1/src/VertexEngine/VertexWidgets/AdvancedVWidgets/OptionBtnWidget.py +75 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1/src/VertexEngine.egg-info}/PKG-INFO +6 -1
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine.egg-info/SOURCES.txt +1 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/LICENSE +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/setup.cfg +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/InputSystem/BtnInputs.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/InputSystem/Events.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/InputSystem/KeyInputs.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/Vertex/__init__.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/VertexScreenModifiers.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/VertexWidgets/AdvancedVWidgets/ChatBubble.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/VertexWidgets/AdvancedVWidgets/CheckBox.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/VertexWidgets/AdvancedVWidgets/Counter.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/VertexWidgets/AdvancedVWidgets/Dropdown.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/VertexWidgets/AdvancedVWidgets/List.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/VertexWidgets/AdvancedVWidgets/StatusLight.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/VertexWidgets/AdvancedVWidgets/ToggleSwitch.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/VertexWidgets/AdvancedVWidgets/WindowMods.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/VertexWidgets/AdvancedVWidgets/Windows.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/VertexWidgets/BasicWidgets/SimpleGUI.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/__init__.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/assets.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/audio.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/engine.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/example.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/examples/games/Dodge/main.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/examples/games/platformer/main.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/examples/games/snake/main.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/examples/test.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/scenes.py +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine.egg-info/dependency_links.txt +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine.egg-info/requires.txt +0 -0
- {vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: VertexEngine
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4rc1
|
|
4
4
|
Summary: A high-performance SDK for Python Development.
|
|
5
5
|
Author-email: Tyrel Miguel <annbasilan0828@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -28,6 +28,11 @@ VertexEngine is a GUI and Game Engine for python applications, it works best if
|
|
|
28
28
|
Discord is out NOW!
|
|
29
29
|
[Discord Server](https://discord.com/channels/1468208686869643327/1468208687670890588)
|
|
30
30
|
## Change Logs (1.0rc1 - 1.3.0), NEW!
|
|
31
|
+
### 1.4rc2
|
|
32
|
+
- Final RC!
|
|
33
|
+
- Fixed internals for the WebEngine and CLI.
|
|
34
|
+
- Added 1 New Module:
|
|
35
|
+
- OptionBtnWidget
|
|
31
36
|
### 1.4rc1
|
|
32
37
|
- 21 Stablization Fixes!
|
|
33
38
|
- Added builtin KeyDown/Up events to GameEngine!
|
|
@@ -10,6 +10,11 @@ VertexEngine is a GUI and Game Engine for python applications, it works best if
|
|
|
10
10
|
Discord is out NOW!
|
|
11
11
|
[Discord Server](https://discord.com/channels/1468208686869643327/1468208687670890588)
|
|
12
12
|
## Change Logs (1.0rc1 - 1.3.0), NEW!
|
|
13
|
+
### 1.4rc2
|
|
14
|
+
- Final RC!
|
|
15
|
+
- Fixed internals for the WebEngine and CLI.
|
|
16
|
+
- Added 1 New Module:
|
|
17
|
+
- OptionBtnWidget
|
|
13
18
|
### 1.4rc1
|
|
14
19
|
- 21 Stablization Fixes!
|
|
15
20
|
- Added builtin KeyDown/Up events to GameEngine!
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
from PyQt6.QtWidgets import QWidget, QHBoxLayout, QPushButton, QApplication
|
|
2
|
+
from PyQt6.QtCore import pyqtSignal
|
|
3
|
+
import sys
|
|
4
|
+
|
|
5
|
+
# -----------------------------
|
|
6
|
+
# Custom OptionButtonWidget
|
|
7
|
+
# -----------------------------
|
|
8
|
+
class OptionButtonWidget(QWidget):
|
|
9
|
+
"""Widget for Option buttons. Options by default is A, B and C.
|
|
10
|
+
Usage:
|
|
11
|
+
.. code-block :: python
|
|
12
|
+
options_widget = OptionButtonWidget(["Option A", "Option B", "Option C"]) \n
|
|
13
|
+
layout.addWidget(options_widget) \n
|
|
14
|
+
def on_option_clicked(option): \n
|
|
15
|
+
print(f"You clicked: {option}") \n
|
|
16
|
+
|
|
17
|
+
options_widget.optionClicked.connect(on_option_clicked)
|
|
18
|
+
"""
|
|
19
|
+
# Signal emits the clicked option text
|
|
20
|
+
optionClicked = pyqtSignal(str)
|
|
21
|
+
|
|
22
|
+
def __init__(self, options=None):
|
|
23
|
+
super().__init__()
|
|
24
|
+
options = options or ["A", "B", "C"] # default options
|
|
25
|
+
|
|
26
|
+
# Layout
|
|
27
|
+
layout = QHBoxLayout()
|
|
28
|
+
self.setLayout(layout)
|
|
29
|
+
|
|
30
|
+
# Create buttons
|
|
31
|
+
self.buttons = []
|
|
32
|
+
for opt in options:
|
|
33
|
+
btn = QPushButton(opt)
|
|
34
|
+
btn.setCheckable(True) # allows toggle behavior
|
|
35
|
+
btn.clicked.connect(lambda checked, o=opt: self._on_clicked(o))
|
|
36
|
+
layout.addWidget(btn)
|
|
37
|
+
self.buttons.append(btn)
|
|
38
|
+
|
|
39
|
+
def _on_clicked(self, option):
|
|
40
|
+
# Uncheck all other buttons
|
|
41
|
+
for btn in self.buttons:
|
|
42
|
+
if btn.text() != option:
|
|
43
|
+
btn.setChecked(False)
|
|
44
|
+
# Emit signal
|
|
45
|
+
self.optionClicked.emit(option)
|
|
46
|
+
|
|
47
|
+
# Optional: get currently selected option
|
|
48
|
+
def selected_option(self):
|
|
49
|
+
for btn in self.buttons:
|
|
50
|
+
if btn.isChecked():
|
|
51
|
+
return btn.text()
|
|
52
|
+
return None
|
|
53
|
+
|
|
54
|
+
# -----------------------------
|
|
55
|
+
# Demo usage
|
|
56
|
+
# -----------------------------
|
|
57
|
+
if __name__ == "__main__":
|
|
58
|
+
app = QApplication(sys.argv)
|
|
59
|
+
window = QWidget()
|
|
60
|
+
window.setWindowTitle("Option Button Demo")
|
|
61
|
+
layout = QHBoxLayout()
|
|
62
|
+
window.setLayout(layout)
|
|
63
|
+
|
|
64
|
+
# Create option button widget
|
|
65
|
+
options_widget = OptionButtonWidget(["Option A", "Option B", "Option C"])
|
|
66
|
+
layout.addWidget(options_widget)
|
|
67
|
+
|
|
68
|
+
# Connect the clicked signal
|
|
69
|
+
def on_option_clicked(option):
|
|
70
|
+
print(f"You clicked: {option}")
|
|
71
|
+
|
|
72
|
+
options_widget.optionClicked.connect(on_option_clicked)
|
|
73
|
+
|
|
74
|
+
window.show()
|
|
75
|
+
sys.exit(app.exec())
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: VertexEngine
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4rc1
|
|
4
4
|
Summary: A high-performance SDK for Python Development.
|
|
5
5
|
Author-email: Tyrel Miguel <annbasilan0828@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -28,6 +28,11 @@ VertexEngine is a GUI and Game Engine for python applications, it works best if
|
|
|
28
28
|
Discord is out NOW!
|
|
29
29
|
[Discord Server](https://discord.com/channels/1468208686869643327/1468208687670890588)
|
|
30
30
|
## Change Logs (1.0rc1 - 1.3.0), NEW!
|
|
31
|
+
### 1.4rc2
|
|
32
|
+
- Final RC!
|
|
33
|
+
- Fixed internals for the WebEngine and CLI.
|
|
34
|
+
- Added 1 New Module:
|
|
35
|
+
- OptionBtnWidget
|
|
31
36
|
### 1.4rc1
|
|
32
37
|
- 21 Stablization Fixes!
|
|
33
38
|
- Added builtin KeyDown/Up events to GameEngine!
|
|
@@ -23,6 +23,7 @@ src/VertexEngine/VertexWidgets/AdvancedVWidgets/CheckBox.py
|
|
|
23
23
|
src/VertexEngine/VertexWidgets/AdvancedVWidgets/Counter.py
|
|
24
24
|
src/VertexEngine/VertexWidgets/AdvancedVWidgets/Dropdown.py
|
|
25
25
|
src/VertexEngine/VertexWidgets/AdvancedVWidgets/List.py
|
|
26
|
+
src/VertexEngine/VertexWidgets/AdvancedVWidgets/OptionBtnWidget.py
|
|
26
27
|
src/VertexEngine/VertexWidgets/AdvancedVWidgets/StatusLight.py
|
|
27
28
|
src/VertexEngine/VertexWidgets/AdvancedVWidgets/ToggleSwitch.py
|
|
28
29
|
src/VertexEngine/VertexWidgets/AdvancedVWidgets/WindowMods.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine/examples/games/platformer/main.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{vertexengine-1.4.dev1 → vertexengine-1.4rc1}/src/VertexEngine.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|