Mejoras en la gui (2)
This commit is contained in:
parent
b6ebd06342
commit
1dca8f6e35
|
@ -1,3 +1,4 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
import json
|
import json
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
@ -177,7 +178,7 @@ class KaraokeApp(App):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
Window.fullscreen = True
|
# Window.fullscreen = True
|
||||||
Config.set('graphics', 'font_name', 'CyrBit.ttf')
|
Config.set('graphics', 'font_name', 'CyrBit.ttf')
|
||||||
Config.write()
|
Config.write()
|
||||||
KaraokeApp(Path(sys.argv[1])).run()
|
KaraokeApp(Path('../bideoak/')).run()
|
||||||
|
|
|
@ -2,7 +2,7 @@ KaraokeGUI:
|
||||||
|
|
||||||
<Label>:
|
<Label>:
|
||||||
font_name: 'CyrBit.ttf'
|
font_name: 'CyrBit.ttf'
|
||||||
font_size: 24
|
font_size: 12
|
||||||
|
|
||||||
<Action@Button>:
|
<Action@Button>:
|
||||||
size_hint: 1, None
|
size_hint: 1, None
|
||||||
|
@ -12,7 +12,7 @@ KaraokeGUI:
|
||||||
|
|
||||||
<Song>:
|
<Song>:
|
||||||
size_hint: None, None
|
size_hint: None, None
|
||||||
size: 200, 200
|
size: 100, 100
|
||||||
orientation: 'vertical'
|
orientation: 'vertical'
|
||||||
padding: 3
|
padding: 3
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
@ -53,6 +53,7 @@ KaraokeGUI:
|
||||||
color: 0.9, 0.1, 0.3, 1
|
color: 0.9, 0.1, 0.3, 1
|
||||||
outline_color: 1, 1, 1, 1
|
outline_color: 1, 1, 1, 1
|
||||||
outline_width: 1
|
outline_width: 1
|
||||||
|
font_size: 24
|
||||||
size_hint: 1, 0.1
|
size_hint: 1, 0.1
|
||||||
text: ''
|
text: ''
|
||||||
Image:
|
Image:
|
||||||
|
@ -61,13 +62,12 @@ KaraokeGUI:
|
||||||
|
|
||||||
BoxLayout: # Bottom actions and slides
|
BoxLayout: # Bottom actions and slides
|
||||||
orientation: 'horizontal'
|
orientation: 'horizontal'
|
||||||
height: 220
|
height: 120
|
||||||
size_hint: 1, None
|
size_hint: 1, None
|
||||||
|
|
||||||
BoxLayout:
|
BoxLayout:
|
||||||
orientation: 'vertical'
|
orientation: 'vertical'
|
||||||
height: 220
|
size_hint: 0.3, 1
|
||||||
size_hint: 0.3, None
|
|
||||||
Action:
|
Action:
|
||||||
text: 'Play'
|
text: 'Play'
|
||||||
on_press: root.play()
|
on_press: root.play()
|
||||||
|
@ -83,8 +83,7 @@ KaraokeGUI:
|
||||||
id: songs_scroll
|
id: songs_scroll
|
||||||
do_scroll_x: True
|
do_scroll_x: True
|
||||||
do_scroll_y: False
|
do_scroll_y: False
|
||||||
size_hint: 0.7, None
|
size_hint: 0.7, 1
|
||||||
height: 220
|
|
||||||
|
|
||||||
GridLayout:
|
GridLayout:
|
||||||
id: song_container
|
id: song_container
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Kivy==1.11.1
|
Reference in New Issue