Skip to content

Commit

Permalink
Update0115
Browse files Browse the repository at this point in the history
  • Loading branch information
Puiching-Memory committed Jan 15, 2022
1 parent 0746cf2 commit 9d87513
Show file tree
Hide file tree
Showing 10 changed files with 440 additions and 23 deletions.
File renamed without changes.
268 changes: 268 additions & 0 deletions GUI_Manager.fbp

Large diffs are not rendered by default.

66 changes: 66 additions & 0 deletions GUI_Manager.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# -*- coding: utf-8 -*-

###########################################################################
## Python code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################

import wx
import wx.xrc

###########################################################################
## Class Main
###########################################################################

class Main ( wx.Frame ):

def __init__( self, parent ):
wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = u"RBS_WALP_Manager", pos = wx.DefaultPosition, size = wx.Size( 500,300 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )

self.SetSizeHints( wx.DefaultSize, wx.DefaultSize )
self.SetBackgroundColour( wx.Colour( 255, 255, 255 ) )

bSizer2 = wx.BoxSizer( wx.VERTICAL )

self.m_staticText1 = wx.StaticText( self, wx.ID_ANY, u"RBS_WALP Engine", wx.DefaultPosition, wx.DefaultSize, 0 )
self.m_staticText1.Wrap( -1 )

bSizer2.Add( self.m_staticText1, 0, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL, 5 )

bSizer3 = wx.BoxSizer( wx.VERTICAL )

self.S_Volume = wx.Slider( self, wx.ID_ANY, 50, 0, 100, wx.DefaultPosition, wx.DefaultSize, wx.SL_HORIZONTAL|wx.SL_VALUE_LABEL )
bSizer3.Add( self.S_Volume, 0, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL, 5 )

self.m_staticText2 = wx.StaticText( self, wx.ID_ANY, u"Volume", wx.DefaultPosition, wx.DefaultSize, 0 )
self.m_staticText2.Wrap( -1 )

bSizer3.Add( self.m_staticText2, 0, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL, 5 )


bSizer2.Add( bSizer3, 0, 0, 5 )


self.SetSizer( bSizer2 )
self.Layout()

self.Centre( wx.BOTH )

# Connect Events
self.Bind( wx.EVT_CLOSE, self.Close )
self.S_Volume.Bind( wx.EVT_SCROLL, self.Change_Volume )

def __del__( self ):
pass


# Virtual event handlers, override them in your derived class
def Close( self, event ):
event.Skip()

def Change_Volume( self, event ):
event.Skip()


File renamed without changes.
56 changes: 56 additions & 0 deletions Manager.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
##############################
# import
##############################
import wx

import GUI_Manager
import Main

import windows_API
import win32gui

##############################
# GUI的函数桥接
##############################


class CalcFrame(GUI_Manager.Main):
def __init__(self, parent):
# 定义主函数
GUI_Manager.Main.__init__(self, parent)

def Close(self, event):
self.Destroy()
Frame_Main.T_Check.Stop()
Frame_Main.Destroy()

def Change_Volume(self, event):
Frame_Main.Vedio.SetVolume(self.S_Volume.GetValue())
print("Volume",self.S_Volume.GetValue())


##############################
# 主函数
##############################


def main():
global app

app = wx.App(False)
frame = CalcFrame(None)
frame.Show(True)

global Frame_Main
Frame_Main = Main.CalcFrame(None)
Frame_Main.Show()

# windows api creature
windows_API.RUN(player_window_handel=win32gui.FindWindow(None, "RBS_WALP"))

app.MainLoop()


if __name__ == "__main__":
main()

44 changes: 44 additions & 0 deletions Manager.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# -*- mode: python ; coding: utf-8 -*-


block_cipher = None


a = Analysis(['Manager.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)

exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=True,
name='Manager',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='Manager')
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,18 @@ Desktop wallpaper engine based on wxPython Library

基于wxpython库实现的桌面壁纸引擎

---
# 功能计划 || Plan 2022/01/15

# 功能
* [X] 可循环播放
* [X] 控制面版
* [X] 音量调节

循环播放MP4文件

---

所需库:
# 所需库:

wxpython

pywin32api

---


# 版权

所有者:@PUICHING_Memory
13 changes: 0 additions & 13 deletions RUN.py

This file was deleted.

Empty file removed test.txt
Empty file.
File renamed without changes.

0 comments on commit 9d87513

Please sign in to comment.