128 lines
6.9 KiB
Python
128 lines
6.9 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
###########################################################################
|
|
## Python code generated with wxFormBuilder (version Jun 17 2015)
|
|
## http://www.wxformbuilder.org/
|
|
##
|
|
## PLEASE DO "NOT" EDIT THIS FILE!
|
|
###########################################################################
|
|
|
|
import wx
|
|
import wx.xrc
|
|
|
|
###########################################################################
|
|
## Class Frame
|
|
###########################################################################
|
|
|
|
class Frame ( wx.Frame ):
|
|
|
|
def __init__( self, parent ):
|
|
wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = wx.EmptyString, pos = wx.DefaultPosition, size = wx.Size( 343,295 ), style = wx.DEFAULT_FRAME_STYLE )
|
|
|
|
self.SetSizeHintsSz( wx.Size( 300,274 ), wx.DefaultSize )
|
|
self.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_BTNTEXT ) )
|
|
self.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOW ) )
|
|
|
|
bSizer1 = wx.BoxSizer( wx.VERTICAL )
|
|
|
|
bSizer1.SetMinSize( wx.Size( 372,284 ) )
|
|
id_field = wx.FlexGridSizer( 3, 2, 0, 0 )
|
|
id_field.SetFlexibleDirection( wx.BOTH )
|
|
id_field.SetNonFlexibleGrowMode( wx.FLEX_GROWMODE_ALL )
|
|
|
|
self.netio_prompt = wx.StaticText( self, wx.ID_ANY, u"UW Net-ID", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
self.netio_prompt.Wrap( -1 )
|
|
id_field.Add( self.netio_prompt, 0, wx.ALIGN_RIGHT|wx.ALL, 5 )
|
|
|
|
self.net_id = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0|wx.FULL_REPAINT_ON_RESIZE|wx.WANTS_CHARS )
|
|
self.net_id.SetToolTipString( u"Your UW Net ID, WITHOUT @uw.edu" )
|
|
|
|
id_field.Add( self.net_id, 0, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL|wx.EXPAND, 5 )
|
|
|
|
self.password_promot = wx.StaticText( self, wx.ID_ANY, u"Password", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
self.password_promot.Wrap( -1 )
|
|
id_field.Add( self.password_promot, 0, wx.ALL|wx.ALIGN_RIGHT, 5 )
|
|
|
|
self.password = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, wx.TE_PASSWORD|wx.FULL_REPAINT_ON_RESIZE )
|
|
self.password.SetToolTipString( u"The password you use to login MyUW/MyPlan/Canvas and stuff at UW" )
|
|
|
|
id_field.Add( self.password, 0, wx.ALL, 5 )
|
|
|
|
self.vncPassword_prompt1 = wx.StaticText( self, wx.ID_ANY, u"VNC Password", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
self.vncPassword_prompt1.Wrap( -1 )
|
|
id_field.Add( self.vncPassword_prompt1, 0, wx.ALL|wx.ALIGN_RIGHT, 5 )
|
|
|
|
self.vnc_passwd = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, wx.TE_PASSWORD|wx.FULL_REPAINT_ON_RESIZE )
|
|
self.vnc_passwd.SetToolTipString( u"Password you set for your VNC session. If you forgot or don't know or your first time using the ECE remote linux, just type in a password you would like to set/reset" )
|
|
|
|
id_field.Add( self.vnc_passwd, 0, wx.ALL, 5 )
|
|
|
|
|
|
bSizer1.Add( id_field, 1, wx.ALIGN_CENTER_HORIZONTAL, 0 )
|
|
|
|
inputArea = wx.GridBagSizer( 0, 0 )
|
|
inputArea.SetFlexibleDirection( wx.BOTH )
|
|
inputArea.SetNonFlexibleGrowMode( wx.FLEX_GROWMODE_SPECIFIED )
|
|
|
|
self.localhos_prompt = wx.StaticText( self, wx.ID_ANY, u"Local IP", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
self.localhos_prompt.Wrap( -1 )
|
|
inputArea.Add( self.localhos_prompt, wx.GBPosition( 4, 0 ), wx.GBSpan( 1, 1 ), wx.ALL|wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL, 5 )
|
|
|
|
self.localhost = wx.TextCtrl( self, wx.ID_ANY, u"127.0.0.1", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
self.localhost.Enable( False )
|
|
self.localhost.SetToolTipString( u"ip address on your computer that the linux server's data will sent to. Normally you won't need to worry about this one" )
|
|
|
|
inputArea.Add( self.localhost, wx.GBPosition( 4, 1 ), wx.GBSpan( 1, 1 ), wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 )
|
|
|
|
self.localhost_ck = wx.CheckBox( self, wx.ID_ANY, u"Use localhost", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
self.localhost_ck.SetValue(True)
|
|
inputArea.Add( self.localhost_ck, wx.GBPosition( 3, 1 ), wx.GBSpan( 1, 1 ), wx.ALIGN_CENTER_VERTICAL, 5 )
|
|
|
|
|
|
bSizer1.Add( inputArea, 0, wx.ALIGN_CENTER|wx.ALL, 5 )
|
|
|
|
gbSizer6 = wx.GridBagSizer( 0, 0 )
|
|
gbSizer6.SetFlexibleDirection( wx.BOTH )
|
|
gbSizer6.SetNonFlexibleGrowMode( wx.FLEX_GROWMODE_SPECIFIED )
|
|
|
|
self.host_prompt = wx.StaticText( self, wx.ID_ANY, u"Server", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
self.host_prompt.Wrap( -1 )
|
|
gbSizer6.Add( self.host_prompt, wx.GBPosition( 0, 0 ), wx.GBSpan( 1, 1 ), wx.ALL, 5 )
|
|
|
|
hostChoices = [ u"linuxsrv01.ece.uw.edu", u"linux-lab-041.ece.uw.edu", u"linux-lab-042.ece.uw.edu", u"linux-lab-043.ece.uw.edu", u"linux-lab-044.ece.uw.edu", u"linux-lab-045.ece.uw.edu", u"linux-lab-046.ece.uw.edu", u"linux-lab-047.ece.uw.edu", u"linux-lab-048.ece.uw.edu", u"linux-lab-049.ece.uw.edu", u"linux-lab-050.ece.uw.edu", u"linux-lab-051.ece.uw.edu", u"linux-lab-052.ece.uw.edu", u"linux-lab-054.ece.uw.edu", u"linux-lab-055.ece.uw.edu", u"linux-lab-056.ece.uw.edu", u"linux-lab-057.ece.uw.edu", u"linux-lab-058.ece.uw.edu", u"linux-lab-059.ece.uw.edu", u"linux-lab-060.ece.uw.edu", u"linux-lab-061.ece.uw.edu", u"linux-lab-062.ece.uw.edu", u"linux-lab-063.ece.uw.edu", u"linux-lab-064.ece.uw.edu", u"linux-lab-065.ece.uw.edu", u"linux-lab-066.ece.uw.edu", u"linux-lab-067.ece.uw.edu", u"linux-lab-069.ece.uw.edu", u"linux-lab-070.ece.uw.edu", u"linux-lab-071.ece.uw.edu", u"linux-lab-072.ece.uw.edu", u"linux-lab-073.ece.uw.edu", u"linux-lab-074.ece.uw.edu", u"linux-lab-075.ece.uw.edu", u"linux-lab-076.ece.uw.edu", u"linux-lab-077.ece.uw.edu", u"linux-lab-078.ece.uw.edu", u"linux-lab-079.ece.uw.edu", u"linux-lab-080.ece.uw.edu", u"linux-lab-078.ece.uw.edu", u"linux-lab-079.ece.uw.edu" ]
|
|
self.host = wx.ComboBox( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, hostChoices, 0 )
|
|
self.host.SetSelection( 0 )
|
|
gbSizer6.Add( self.host, wx.GBPosition( 0, 1 ), wx.GBSpan( 1, 1 ), wx.ALL, 5 )
|
|
|
|
|
|
bSizer1.Add( gbSizer6, 0, wx.ALIGN_CENTER_HORIZONTAL, 5 )
|
|
|
|
self.run = wx.Button( self, wx.ID_ANY, u"RUN", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
bSizer1.Add( self.run, 0, wx.ALIGN_CENTER_HORIZONTAL, 5 )
|
|
|
|
gbSizer8 = wx.GridBagSizer( 0, 0 )
|
|
gbSizer8.SetFlexibleDirection( wx.BOTH )
|
|
gbSizer8.SetNonFlexibleGrowMode( wx.FLEX_GROWMODE_SPECIFIED )
|
|
|
|
self.kill_when_exit = wx.CheckBox( self, wx.ID_ANY, u"\"kill\" process when exit", wx.DefaultPosition, wx.DefaultSize, 0 )
|
|
self.kill_when_exit.SetValue(True)
|
|
gbSizer8.Add( self.kill_when_exit, wx.GBPosition( 0, 0 ), wx.GBSpan( 1, 1 ), wx.ALL|wx.ALIGN_CENTER_HORIZONTAL, 5 )
|
|
|
|
self.status = wx.StaticText( self, wx.ID_ANY, u"Click 'RUN' to begin, hover over any boxes to show hints", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_CENTRE )
|
|
self.status.Wrap( -1 )
|
|
gbSizer8.Add( self.status, wx.GBPosition( 1, 0 ), wx.GBSpan( 1, 1 ), wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 5 )
|
|
|
|
|
|
bSizer1.Add( gbSizer8, 0, wx.ALIGN_CENTER_HORIZONTAL, 5 )
|
|
|
|
|
|
self.SetSizer( bSizer1 )
|
|
self.Layout()
|
|
|
|
self.Centre( wx.BOTH )
|
|
|
|
def __del__( self ):
|
|
pass
|
|
|
|
|