added fullscreen showcase screen (currently in development and still buggy
This commit is contained in:
0
.idea/.gitignore
generated
vendored
Normal file → Executable file
0
.idea/.gitignore
generated
vendored
Normal file → Executable file
0
.idea/MusicPlayer.iml
generated
Normal file → Executable file
0
.idea/MusicPlayer.iml
generated
Normal file → Executable file
0
.idea/inspectionProfiles/profiles_settings.xml
generated
Normal file → Executable file
0
.idea/inspectionProfiles/profiles_settings.xml
generated
Normal file → Executable file
0
.idea/misc.xml
generated
Normal file → Executable file
0
.idea/misc.xml
generated
Normal file → Executable file
0
.idea/modules.xml
generated
Normal file → Executable file
0
.idea/modules.xml
generated
Normal file → Executable file
0
.idea/vcs.xml
generated
Normal file → Executable file
0
.idea/vcs.xml
generated
Normal file → Executable file
0
MusicPlayer.spec
Normal file → Executable file
0
MusicPlayer.spec
Normal file → Executable file
0
bin/autocomplete.py
Normal file → Executable file
0
bin/autocomplete.py
Normal file → Executable file
0
bin/csv_parsers.py
Normal file → Executable file
0
bin/csv_parsers.py
Normal file → Executable file
0
bin/filepathanalysis.py
Normal file → Executable file
0
bin/filepathanalysis.py
Normal file → Executable file
26
bin/gui/gui.kv
Normal file → Executable file
26
bin/gui/gui.kv
Normal file → Executable file
@@ -86,6 +86,32 @@ RootScreen:
|
|||||||
on_release:
|
on_release:
|
||||||
root.dismiss()
|
root.dismiss()
|
||||||
|
|
||||||
|
<LeavePU>:
|
||||||
|
title: "DISABLE FULLSCREEN AND LEAVE"
|
||||||
|
font_size: 50
|
||||||
|
size_hint: 0.5, 0.4
|
||||||
|
auto_dismiss: False
|
||||||
|
GridLayout:
|
||||||
|
cols:1
|
||||||
|
Label:
|
||||||
|
text: "Please enter the password to leave the fullscreen mode!"
|
||||||
|
font_size: 18
|
||||||
|
TextInput:
|
||||||
|
id: passw
|
||||||
|
multiline: False
|
||||||
|
input_filter: "string"
|
||||||
|
Label:
|
||||||
|
id: output
|
||||||
|
text: ""
|
||||||
|
Button:
|
||||||
|
text:"Ok"
|
||||||
|
on_release:
|
||||||
|
root.check_pwd()
|
||||||
|
Button:
|
||||||
|
text: "cancel"
|
||||||
|
on_release:
|
||||||
|
root.dismiss()
|
||||||
|
|
||||||
###########
|
###########
|
||||||
# SCREENS
|
# SCREENS
|
||||||
###########
|
###########
|
||||||
|
|||||||
0
bin/info_handler.py
Normal file → Executable file
0
bin/info_handler.py
Normal file → Executable file
0
bin/player.py
Normal file → Executable file
0
bin/player.py
Normal file → Executable file
0
data/config.csv
Normal file → Executable file
0
data/config.csv
Normal file → Executable file
10
data/settings.ini
Normal file → Executable file
10
data/settings.ini
Normal file → Executable file
@@ -4,14 +4,24 @@
|
|||||||
showcaseRefreshRate = 0.5
|
showcaseRefreshRate = 0.5
|
||||||
|
|
||||||
[Display]
|
[Display]
|
||||||
|
# General launch-display-settings (width, height of window)
|
||||||
width = 800
|
width = 800
|
||||||
height = 600
|
height = 600
|
||||||
|
# Choose if window launches maximized or not, Boolean property
|
||||||
launchMaximized = True
|
launchMaximized = True
|
||||||
|
|
||||||
[Playback]
|
[Playback]
|
||||||
|
# Choose if you want the playback to loop at the end (1 for True, 0 for False)
|
||||||
loopPlayback = 1
|
loopPlayback = 1
|
||||||
|
|
||||||
|
[Security]
|
||||||
|
# Specifies if a password should be used for exiting the fullscreen mode on the showcase screen
|
||||||
|
pwdFSExit = False
|
||||||
|
# Set password here, will not be respected if above is "False"
|
||||||
|
pwd =
|
||||||
|
|
||||||
[Info]
|
[Info]
|
||||||
|
# Software version
|
||||||
version = V1.1
|
version = V1.1
|
||||||
subVersion =
|
subVersion =
|
||||||
|
|
||||||
|
|||||||
0
data/songtemp.csv
Normal file → Executable file
0
data/songtemp.csv
Normal file → Executable file
2
data/temp.csv
Normal file → Executable file
2
data/temp.csv
Normal file → Executable file
@@ -1 +1 @@
|
|||||||
/mnt/gamedrive/SORTED/Music/KB
|
/mnt/DATA/Music/
|
||||||
|
|||||||
|
20
musicplayer.py
Normal file → Executable file
20
musicplayer.py
Normal file → Executable file
@@ -11,6 +11,7 @@ else:
|
|||||||
os.environ["KIVY_NO_CONSOLELOG"] = "1"
|
os.environ["KIVY_NO_CONSOLELOG"] = "1"
|
||||||
|
|
||||||
import signal
|
import signal
|
||||||
|
import time
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
from kivy.core.window import Window, Config
|
from kivy.core.window import Window, Config
|
||||||
from kivy.uix.screenmanager import ScreenManager
|
from kivy.uix.screenmanager import ScreenManager
|
||||||
@@ -55,6 +56,17 @@ class invalidpathPU(Popup):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class LeavePU(Popup):
|
||||||
|
def check_pwd(self):
|
||||||
|
if self.ids.passw.text == config["Security"]["pwd"]:
|
||||||
|
self.manager.current = "Main"
|
||||||
|
self.manager.transition.direction = "right"
|
||||||
|
self.dismiss()
|
||||||
|
else:
|
||||||
|
time.sleep(2)
|
||||||
|
self.ids.output.text = "Password wrong, please try again!"
|
||||||
|
|
||||||
|
|
||||||
###########
|
###########
|
||||||
# SCREENS
|
# SCREENS
|
||||||
###########
|
###########
|
||||||
@@ -264,6 +276,9 @@ class Main(MDScreen):
|
|||||||
|
|
||||||
def back_here(self):
|
def back_here(self):
|
||||||
if self.manager.current == "Showcase":
|
if self.manager.current == "Showcase":
|
||||||
|
if config["Security"]["pwdFSExit"] == "True":
|
||||||
|
self.open_leave_popup()
|
||||||
|
else:
|
||||||
self.manager.current = "Main"
|
self.manager.current = "Main"
|
||||||
self.manager.transition.direction = "right"
|
self.manager.transition.direction = "right"
|
||||||
elif self.manager.current == "Main":
|
elif self.manager.current == "Main":
|
||||||
@@ -271,6 +286,9 @@ class Main(MDScreen):
|
|||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def open_leave_popup(self):
|
||||||
|
LeavePU().open()
|
||||||
|
|
||||||
|
|
||||||
class ShowcaseS(MDScreen):
|
class ShowcaseS(MDScreen):
|
||||||
def disablefullscreen(self):
|
def disablefullscreen(self):
|
||||||
@@ -303,7 +321,7 @@ if __name__ == "__main__":
|
|||||||
try:
|
try:
|
||||||
Window.size = (int(config['Display']['width']), int(config['Display']['height']))
|
Window.size = (int(config['Display']['width']), int(config['Display']['height']))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("Unvalid config string found for in Display settings")
|
print("Unvalid config string found in Display settings")
|
||||||
|
|
||||||
Config.set('graphics', 'width', '800')
|
Config.set('graphics', 'width', '800')
|
||||||
Config.set('graphics', 'height', '600')
|
Config.set('graphics', 'height', '600')
|
||||||
|
|||||||
Reference in New Issue
Block a user