add socket server thread to receive remote call,and try add skin design on it

This commit is contained in:
cuu
2018-05-31 15:38:04 +08:00
parent 81f5c56d9e
commit aea9534d4d
61 changed files with 86 additions and 91 deletions

View File

@@ -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

View File

@@ -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()

View File

@@ -17,7 +17,6 @@ from UI.util_funcs import midRect
# ------------------------
import myvars # icons_path
from icons import preload
class ListItemIcon(IconItem):