-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0746cf2
commit 9d87513
Showing
10 changed files
with
440 additions
and
23 deletions.
There are no files selected for viewing
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.