Initial Commit
This commit is contained in:
36
bin/package_manager/backend/componentmanager.py
Normal file
36
bin/package_manager/backend/componentmanager.py
Normal file
@@ -0,0 +1,36 @@
|
||||
from kivy.app import App
|
||||
from kivy.lang import Builder
|
||||
from kivy.uix.screenmanager import Screen, ScreenManager
|
||||
from kivy.uix.popup import Popup
|
||||
|
||||
|
||||
class MainScreen(Screen):
|
||||
pass
|
||||
|
||||
|
||||
class AddComponent(Screen):
|
||||
pass
|
||||
|
||||
|
||||
class ModifyComponent(Screen):
|
||||
pass
|
||||
|
||||
|
||||
class RemoveComponent(Screen):
|
||||
pass
|
||||
|
||||
|
||||
class RootScreen(ScreenManager):
|
||||
pass
|
||||
|
||||
|
||||
kv = Builder.load_file("../gui/gui.kv")
|
||||
|
||||
|
||||
class ComponentManager(App):
|
||||
def build(self):
|
||||
return kv
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
ComponentManager().run()
|
||||
55
bin/package_manager/backend/package_managing.py
Normal file
55
bin/package_manager/backend/package_managing.py
Normal file
@@ -0,0 +1,55 @@
|
||||
import datetime
|
||||
import csv
|
||||
"""@package docstring
|
||||
This software / package is used to easily manage the available products. This software will automatically update
|
||||
whenever there is an update for the reader available on the website.
|
||||
--------
|
||||
|
||||
NOTE: This software changes files in the directory in which it is located and as such is not made for
|
||||
inexperienced users. Please read the readme.txt file for further notice.
|
||||
|
||||
NOTE: This software does not feature a standard gui (Graphical User Interface) currently and as such is
|
||||
based on commands. You cna find a full lists of commands on the wiki.
|
||||
|
||||
NOTE: The simplePCBuilding-Configurator comes with an Update service for the component list. In the event of
|
||||
an Update, there is a script installed with your software that merges the new updates to the components file
|
||||
with the changes you made.
|
||||
|
||||
NOTE: Changing the CSV-File containing the component information with any other editor other than this one,
|
||||
the file might get unreadable for the software. Do always use this software here to change something.
|
||||
"""
|
||||
version = str("alpha 1.0")
|
||||
print("""
|
||||
================================================================
|
||||
Welcome to the simplePCBuilding PC-Configurator-Package-Manager!
|
||||
You are currently running""", version, """!
|
||||
================================================================
|
||||
|
||||
This software is used to easily manage the available products. This software will automatically update
|
||||
whenever there is an update for the reader available on the website.
|
||||
--------
|
||||
|
||||
NOTE: This software changes files in the directory in which it is located and as such is not made for
|
||||
inexperienced users. Please read the readme.txt file for further notice.
|
||||
|
||||
NOTE: This software does not feature a standard gui (Graphical User Interface) currently and as such is
|
||||
based on commands. You cna find a full lists of commands on the wiki.
|
||||
|
||||
NOTE: The simplePCBuilding-Configurator comes with an Update service for the component list. In the event of
|
||||
an Update, there is a script installed with your software that merges the new updates to the components file
|
||||
with the changes you made.
|
||||
|
||||
NOTE: Changing the CSV-File containing the component information with any other editor other than this one,
|
||||
might result in loss of correct operation of the software. Do always use this software here to change something.
|
||||
""")
|
||||
|
||||
|
||||
|
||||
i = input("Please read above carefully and type a y to continue, a \"n\" to exit the software:")
|
||||
|
||||
if i == "y":
|
||||
print("Starting...")
|
||||
|
||||
else:
|
||||
print("Leaving...")
|
||||
|
||||
57
bin/package_manager/gui/gui.kv
Normal file
57
bin/package_manager/gui/gui.kv
Normal file
@@ -0,0 +1,57 @@
|
||||
RootScreen:
|
||||
MainScreen:
|
||||
AddComponent:
|
||||
RemoveComponent:
|
||||
ModifyComponent:
|
||||
|
||||
<MainScreen>:
|
||||
name: "Main"
|
||||
GridLayout:
|
||||
cols:1
|
||||
Label:
|
||||
text: "Welcome to the simplePCBuilding\n PC-Configuration-Suite\n Component-Manager!"
|
||||
font_size:30
|
||||
color: (0,0,1,0.6)
|
||||
FloatLayout:
|
||||
GridLayout:
|
||||
size_hint: 0.9, 0.9
|
||||
pos_hint:{"x":0.05, "y":0.05}
|
||||
cols:3
|
||||
Button:
|
||||
text: "New Component"
|
||||
on_release:
|
||||
app.root.current = "NewComp"
|
||||
root.manager.transition.direction = "right"
|
||||
Button:
|
||||
text: "Modify Component"
|
||||
on_release:
|
||||
app.root.current = "ModComp"
|
||||
root.manager.transition.direction = "down"
|
||||
Button:
|
||||
text: "Remove Component"
|
||||
on_release:
|
||||
app.root.current = "RemComp"
|
||||
root.manager.transition.direction = "left"
|
||||
|
||||
<AddComponent>:
|
||||
name: "NewComp"
|
||||
GridLayout:
|
||||
cols:1
|
||||
Label:
|
||||
text: "New Component"
|
||||
|
||||
<ModifyComponent>:
|
||||
name: "ModComp"
|
||||
GridLayout:
|
||||
cols:1
|
||||
Label:
|
||||
text: "Modify Component"
|
||||
|
||||
|
||||
<RemoveComponent>:
|
||||
name: "RemComp"
|
||||
GridLayout:
|
||||
cols:1
|
||||
Label:
|
||||
text: "Remove Component"
|
||||
|
||||
Reference in New Issue
Block a user