Ejemplo n.º 1
0
    def __init__(self, parent, eventHub, vision, ai, machine, *args, **kwargs):
        BasePanel.__init__(self, parent, *args, **kwargs)
        
        # Make sure we shut down all events on close
        self.Bind(wx.EVT_CLOSE, self._onClose)
        
        self._sizer = wx.BoxSizer(wx.VERTICAL)
                
        buoyPanel = BuoyPanel(self, self._childChangedSize, eventHub, vision, machine)
        self._sizer.Add(buoyPanel)
            
        pipePanel = OrangePipePanel(self, self._childChangedSize, eventHub, vision)
        self._sizer.Add(pipePanel)
            
        binPanel = BinPanel(self, self._childChangedSize, eventHub, vision, ai = ai)
        self._sizer.Add(binPanel)
            
        targetPanel = TargetPanel(self, self._childChangedSize, eventHub, vision)
        self._sizer.Add(targetPanel)

        windowPanel = WindowPanel(self, self._childChangedSize, eventHub, vision, machine = machine)
        self._sizer.Add(windowPanel)

            #barbedWirePanel = BarbedWirePanel(self, self._childChangedSize, eventHub, vision)
            #self._sizer.Add(barbedWirePanel)

        hedgePanel = HedgePanel(self, self._childChangedSize, eventHub,
                                    vision)
        self._sizer.Add(hedgePanel)
            
        self.SetSizerAndFit(self._sizer)
Ejemplo n.º 2
0
    def __init__(self, parent, eventHub, vision, ai, machine, *args, **kwargs):
        BasePanel.__init__(self, parent, *args, **kwargs)
        
        # Make sure we shut down all events on close
        self.Bind(wx.EVT_CLOSE, self._onClose)
        
        self._sizer = wx.BoxSizer(wx.VERTICAL)
                
        buoyPanel = BuoyPanel(self, self._childChangedSize, eventHub, vision, machine)
        self._sizer.Add(buoyPanel)
            
        pipePanel = OrangePipePanel(self, self._childChangedSize, eventHub, vision)
        self._sizer.Add(pipePanel)
            
        binPanel = BinPanel(self, self._childChangedSize, eventHub, vision, ai = ai)
        self._sizer.Add(binPanel)
            
        targetPanel = TargetPanel(self, self._childChangedSize, eventHub, vision)
        self._sizer.Add(targetPanel)

        windowPanel = WindowPanel(self, self._childChangedSize, eventHub, vision, machine = machine)
        self._sizer.Add(windowPanel)

            #barbedWirePanel = BarbedWirePanel(self, self._childChangedSize, eventHub, vision)
            #self._sizer.Add(barbedWirePanel)

        lanePanel = LanePanel(self, self._childChangedSize, eventHub,
                                    vision)
        self._sizer.Add(lanePanel)

        cupidPanel = CupidPanel(self, self._childChangedSize, eventHub,
                                    vision)
        self._sizer.Add(cupidPanel)
            
        self.SetSizerAndFit(self._sizer)
Ejemplo n.º 3
0
 def __init__(self, parent, buttonHandler, *args, **kwargs):
     BasePanel.__init__(self, parent, *args, **kwargs)
     self._controlsShowing = True
     self._hide = None
     self._bouyLED = None
     self._buttonHandler = buttonHandler
     
     # Make sure we shut down all events on close
     self.Bind(wx.EVT_CLOSE, self._onClose)
Ejemplo n.º 4
0
 def __init__(self, parent, buttonHandler, *args, **kwargs):
     BasePanel.__init__(self, parent, *args, **kwargs)
     self._controlsShowing = True
     self._hide = None
     self._bouyLED = None
     self._buttonHandler = buttonHandler
     
     # Make sure we shut down all events on close
     self.Bind(wx.EVT_CLOSE, self._onClose)