mirror of
https://github.com/clockworkpi/launcher.git
synced 2026-03-20 19:02:51 +01:00
add socket server thread to receive remote call,and try add skin design on it
This commit is contained in:
@@ -1,26 +1,14 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import pygame
|
||||
from pygame.locals import *
|
||||
from sys import exit
|
||||
import os
|
||||
import sys
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
import base64
|
||||
from beeprint import pp
|
||||
|
||||
|
||||
## local UI import
|
||||
import pages
|
||||
import myvars
|
||||
from icons import preload
|
||||
|
||||
def Init(main_screen):
|
||||
pages.InitPoller()
|
||||
|
||||
preload.load_icons()
|
||||
pages.InitListPage(main_screen)
|
||||
pages.InitMusicLibPage(main_screen)
|
||||
pages.InitSpectrumPage(main_screen)
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 198 B |
@@ -1,21 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import pygame
|
||||
from pygame.locals import *
|
||||
from sys import exit
|
||||
import os
|
||||
import sys
|
||||
|
||||
from beeprint import pp
|
||||
|
||||
ICONS_PRELOAD={}
|
||||
|
||||
|
||||
def load_icons():
|
||||
basepath = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
files = os.listdir(basepath)
|
||||
for i in files:
|
||||
if os.path.isfile(basepath+"/"+i) and i.endswith(".png"):
|
||||
keyname = i.split(".")[0]
|
||||
ICONS_PRELOAD[keyname] = pygame.image.load(basepath+"/"+i).convert_alpha()
|
||||
@@ -17,7 +17,6 @@ from UI.util_funcs import midRect
|
||||
# ------------------------
|
||||
|
||||
import myvars # icons_path
|
||||
from icons import preload
|
||||
|
||||
class ListItemIcon(IconItem):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user