The video was only to show there are two panel popups...
Code: Select all
# -*- coding: utf-8 -*-
###########################################################################
## Python code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################
import wx
import wx.xrc
###########################################################################
## Class MainFrame3
###########################################################################
class MainFrame3 ( wx.Frame ):
def __init__( self, parent ):
wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = u"App-Maker3", pos = wx.DefaultPosition, size = wx.Size( 607,284 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )
self.SetSizeHints( wx.DefaultSize, wx.DefaultSize )
bSizer1 = wx.BoxSizer( wx.VERTICAL )
self.m_panel1 = wx.Panel( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
self.m_panel1.SetBackgroundColour( wx.Colour( 0, 0, 51 ) )
bSizer2 = wx.BoxSizer( wx.VERTICAL )
self.m_staticText1 = wx.StaticText( self.m_panel1, wx.ID_ANY, u"Code --> App", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_CENTER_HORIZONTAL )
self.m_staticText1.Wrap( -1 )
self.m_staticText1.SetFont( wx.Font( 18, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, True, "Lucida Grande" ) )
self.m_staticText1.SetForegroundColour( wx.Colour( 255, 255, 255 ) )
bSizer2.Add( self.m_staticText1, 0, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL, 5 )
self.m_staticline1 = wx.StaticLine( self.m_panel1, wx.ID_ANY, wx.DefaultPosition, wx.Size( -1,20 ), wx.LI_HORIZONTAL )
self.m_staticline1.SetForegroundColour( wx.Colour( 230, 230, 230 ) )
self.m_staticline1.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_3DLIGHT ) )
bSizer2.Add( self.m_staticline1, 0, wx.EXPAND |wx.ALL, 5 )
fgSizer1 = wx.FlexGridSizer( 1, 2, 0, 1 )
fgSizer1.SetFlexibleDirection( wx.BOTH )
fgSizer1.SetNonFlexibleGrowMode( wx.FLEX_GROWMODE_ALL )
self.m_staticText2 = wx.StaticText( self.m_panel1, wx.ID_ANY, u"Dir and File", wx.DefaultPosition, wx.DefaultSize, 0 )
self.m_staticText2.Wrap( -1 )
self.m_staticText2.SetForegroundColour( wx.Colour( 255, 255, 255 ) )
self.m_staticText2.SetMinSize( wx.Size( 80,-1 ) )
fgSizer1.Add( self.m_staticText2, 0, wx.ALL, 5 )
self.m_filePicker1 = wx.FilePickerCtrl( self.m_panel1, wx.ID_ANY, wx.EmptyString, u"Select a file", u"*.*", wx.DefaultPosition, wx.DefaultSize, wx.FLP_DEFAULT_STYLE )
self.m_filePicker1.SetMinSize( wx.Size( 475,-1 ) )
self.m_filePicker1.SetMaxSize( wx.Size( 475,-1 ) )
fgSizer1.Add( self.m_filePicker1, 0, wx.ALL, 5 )
bSizer2.Add( fgSizer1, 1, wx.EXPAND, 5 )
bSizer3 = wx.BoxSizer( wx.VERTICAL )
fgSizer2 = wx.FlexGridSizer( 1, 3, 0, 20 )
fgSizer2.SetFlexibleDirection( wx.BOTH )
fgSizer2.SetNonFlexibleGrowMode( wx.FLEX_GROWMODE_SPECIFIED )
fgSizer2.Add( ( 350, 0), 1, wx.EXPAND, 5 )
self.m_button1 = wx.Button( self.m_panel1, wx.ID_ANY, u"Publish", wx.DefaultPosition, wx.DefaultSize, 0 )
fgSizer2.Add( self.m_button1, 0, wx.ALL, 5 )
self.m_button2 = wx.Button( self.m_panel1, wx.ID_ANY, u"Quit", wx.DefaultPosition, wx.DefaultSize, 0 )
fgSizer2.Add( self.m_button2, 0, wx.ALL, 5 )
bSizer3.Add( fgSizer2, 1, wx.EXPAND, 5 )
fgSizer3 = wx.FlexGridSizer( 1, 2, 0, 0 )
fgSizer3.SetFlexibleDirection( wx.HORIZONTAL )
fgSizer3.SetNonFlexibleGrowMode( wx.FLEX_GROWMODE_NONE )
self.m_staticText3 = wx.StaticText( self.m_panel1, wx.ID_ANY, u"The String:", wx.DefaultPosition, wx.DefaultSize, 0 )
self.m_staticText3.Wrap( -1 )
self.m_staticText3.SetForegroundColour( wx.Colour( 255, 255, 255 ) )
fgSizer3.Add( self.m_staticText3, 0, wx.ALL, 5 )
self.m_textCtrl1 = wx.TextCtrl( self.m_panel1, wx.ID_ANY, u"<text>", wx.DefaultPosition, wx.Size( 500,60 ), 0 )
self.m_textCtrl1.SetForegroundColour( wx.Colour( 33, 255, 6 ) )
self.m_textCtrl1.SetBackgroundColour( wx.Colour( 0, 0, 0 ) )
self.m_textCtrl1.SetMinSize( wx.Size( 500,60 ) )
fgSizer3.Add( self.m_textCtrl1, 0, wx.ALL, 5 )
bSizer3.Add( fgSizer3, 1, wx.EXPAND, 5 )
bSizer2.Add( bSizer3, 1, wx.EXPAND, 5 )
self.m_panel1.SetSizer( bSizer2 )
self.m_panel1.Layout()
bSizer2.Fit( self.m_panel1 )
bSizer1.Add( self.m_panel1, 1, wx.EXPAND |wx.ALL, 5 )
self.SetSizer( bSizer1 )
self.Layout()
self.Centre( wx.BOTH )
# Connect Events
self.m_filePicker1.Bind( wx.EVT_FILEPICKER_CHANGED, self.GetFile )
self.m_button1.Bind( wx.EVT_BUTTON, self.PublishTheFile )
self.m_button2.Bind( wx.EVT_BUTTON, self.Exit )
def __del__( self ):
pass
# Virtual event handlers, override them in your derived class
def GetFile( self, event ):
event.Skip()
def PublishTheFile( self, event ):
event.Skip()
def Exit( self, event ):
event.Skip()