Skip to content

Commit

Permalink
Update 0511
Browse files Browse the repository at this point in the history
  • Loading branch information
Puiching-Memory committed May 11, 2022
1 parent 76cf97a commit 086517b
Show file tree
Hide file tree
Showing 166 changed files with 7,557 additions and 282 deletions.
73 changes: 11 additions & 62 deletions GUI_Main.fbp
Original file line number Diff line number Diff line change
Expand Up @@ -58,73 +58,22 @@
<property name="window_style">wxTAB_TRAVERSAL</property>
<property name="xrc_skip_sizer">1</property>
<event name="OnClose">Close</event>
<event name="OnEraseBackground">MainOnEraseBackground</event>
<event name="OnPaint">MainOnPaint</event>
<object class="wxBoxSizer" expanded="1">
<property name="minimum_size"></property>
<property name="name">bSizer2</property>
<property name="orient">wxVERTICAL</property>
<property name="permission">none</property>
<object class="sizeritem" expanded="1">
<property name="border">5</property>
<property name="flag">wxEXPAND</property>
<property name="proportion">1</property>
<object class="wxMediaCtrl" expanded="1">
<property name="BottomDockable">1</property>
<property name="LeftDockable">1</property>
<property name="RightDockable">1</property>
<property name="TopDockable">1</property>
<property name="aui_layer"></property>
<property name="aui_name"></property>
<property name="aui_position"></property>
<property name="aui_row"></property>
<property name="best_size"></property>
<property name="bg"></property>
<property name="caption"></property>
<property name="caption_visible">1</property>
<property name="center_pane">0</property>
<property name="close_button">1</property>
<property name="context_help"></property>
<property name="context_menu">1</property>
<property name="default_pane">0</property>
<property name="dock">Dock</property>
<property name="dock_fixed">0</property>
<property name="docking">Left</property>
<property name="enabled">1</property>
<property name="fg"></property>
<property name="file"></property>
<property name="floatable">1</property>
<property name="font"></property>
<property name="gripper">0</property>
<property name="hidden">0</property>
<property name="id">wxID_ANY</property>
<property name="max_size"></property>
<property name="maximize_button">0</property>
<property name="maximum_size"></property>
<property name="min_size"></property>
<property name="minimize_button">0</property>
<property name="minimum_size"></property>
<property name="moveable">1</property>
<property name="name">Vedio</property>
<property name="pane_border">1</property>
<property name="pane_position"></property>
<property name="pane_size"></property>
<property name="permission">protected</property>
<property name="pin_button">1</property>
<property name="play">0</property>
<property name="playback_rate">1</property>
<property name="player_controls"></property>
<property name="pos"></property>
<property name="resize">Resizable</property>
<property name="show">1</property>
<property name="size">400,300</property>
<property name="subclass">; ; forward_declare</property>
<property name="toolbar_pane">0</property>
<property name="tooltip"></property>
<property name="volume">1</property>
<property name="window_extra_style"></property>
<property name="window_name"></property>
<property name="window_style"></property>
</object>
</object>
</object>
<object class="wxTimer" expanded="1">
<property name="enabled">1</property>
<property name="id">wxID_ANY</property>
<property name="name">Timer</property>
<property name="oneshot">0</property>
<property name="period">10</property>
<property name="permission">protected</property>
<event name="OnTimer">Time_Tick</event>
</object>
</object>
</object>
Expand Down
22 changes: 16 additions & 6 deletions GUI_Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import wx
import wx.xrc
import wx.media

###########################################################################
## Class Main
Expand All @@ -25,19 +24,21 @@ def __init__( self, parent ):

bSizer2 = wx.BoxSizer( wx.VERTICAL )

self.Vedio = wx.media.MediaCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.Size( 400,300 ))
self.Vedio.SetPlaybackRate(1)
self.Vedio.SetVolume(1)
bSizer2.Add( self.Vedio, 1, wx.EXPAND, 5 )


self.SetSizer( bSizer2 )
self.Layout()
self.Timer = wx.Timer()
self.Timer.SetOwner( self, wx.ID_ANY )
self.Timer.Start( 10 )


self.Centre( wx.BOTH )

# Connect Events
self.Bind( wx.EVT_CLOSE, self.Close )
self.Bind( wx.EVT_ERASE_BACKGROUND, self.MainOnEraseBackground )
self.Bind( wx.EVT_PAINT, self.MainOnPaint )
self.Bind( wx.EVT_TIMER, self.Time_Tick, id=wx.ID_ANY )

def __del__( self ):
pass
Expand All @@ -47,4 +48,13 @@ def __del__( self ):
def Close( self, event ):
event.Skip()

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

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

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


Loading

0 comments on commit 086517b

Please sign in to comment.