Ejemplo n.º 1
0
    def __init__(self, parent, mainFrame):

        TogglePanel.__init__(self, parent, force_layout=1)
        self.mainFrame = mainFrame

        self.SetLabel(_t("Additions"))
        pane = self.GetContentPanel()

        baseSizer = wx.BoxSizer(wx.HORIZONTAL)
        pane.SetSizer(baseSizer)

        self.notebook = ChromeNotebook(pane, can_add=False, tabWidthMode=1)
        self.notebook.SetMinSize((-1, 1000))

        baseSizer.Add(self.notebook, 1, wx.EXPAND)

        droneImg = BitmapLoader.getImage("drone_small", "gui")
        fighterImg = BitmapLoader.getImage("fighter_small", "gui")
        implantImg = BitmapLoader.getImage("implant_small", "gui")
        boosterImg = BitmapLoader.getImage("booster_small", "gui")
        projectedImg = BitmapLoader.getImage("projected_small", "gui")
        gangImg = BitmapLoader.getImage("fleet_fc_small", "gui")
        cargoImg = BitmapLoader.getImage("cargo_small", "gui")
        notesImg = BitmapLoader.getImage("skill_small", "gui")

        self.drone = DroneView(self.notebook)
        self.notebook.AddPage(self.drone, _t("Drones"), image=droneImg, closeable=False)

        self.fighter = FighterView(self.notebook)
        self.notebook.AddPage(self.fighter, _t("Fighters"), image=fighterImg, closeable=False)

        self.cargo = CargoView(self.notebook)
        self.notebook.AddPage(self.cargo, _t("Cargo"), image=cargoImg, closeable=False)

        self.implant = ImplantView(self.notebook)
        self.notebook.AddPage(self.implant, _t("Implants"), image=implantImg, closeable=False)

        self.booster = BoosterView(self.notebook)
        self.notebook.AddPage(self.booster, _t("Boosters"), image=boosterImg, closeable=False)

        self.projectedPage = ProjectedView(self.notebook)
        self.notebook.AddPage(self.projectedPage, _t("Projected"), image=projectedImg, closeable=False)

        self.gangPage = CommandView(self.notebook)
        self.notebook.AddPage(self.gangPage, _t("Command"), image=gangImg, closeable=False)

        self.notes = NotesView(self.notebook)
        self.notebook.AddPage(self.notes, _t("Notes"), image=notesImg, closeable=False)

        self.mainFrame.Bind(GE.FIT_CHANGED, self.OnFitChanged)
        self.mainFrame.Bind(GE.FIT_NOTES_CHANGED, self.OnNotesChanged)

        self.notebook.SetSelection(0)
Ejemplo n.º 2
0
    def __init__(self, parent):

        TogglePanel.__init__(self, parent, force_layout=1)

        self.SetLabel("Additions")
        pane = self.GetContentPanel()

        baseSizer = wx.BoxSizer(wx.HORIZONTAL)
        pane.SetSizer(baseSizer)

        self.notebook = ChromeNotebook(pane, False)
        self.notebook.SetMinSize((-1, 1000))

        baseSizer.Add(self.notebook, 1, wx.EXPAND)

        droneImg = BitmapLoader.getImage("drone_small", "gui")
        fighterImg = BitmapLoader.getImage("fighter_small", "gui")
        implantImg = BitmapLoader.getImage("implant_small", "gui")
        boosterImg = BitmapLoader.getImage("booster_small", "gui")
        projectedImg = BitmapLoader.getImage("projected_small", "gui")
        gangImg = BitmapLoader.getImage("fleet_fc_small", "gui")
        cargoImg = BitmapLoader.getImage("cargo_small", "gui")
        notesImg = BitmapLoader.getImage("skill_small", "gui")

        self.drone = DroneView(self.notebook)
        self.notebook.AddPage(self.drone, "Drones", image=droneImg, closeable=False)

        self.fighter = FighterView(self.notebook)
        self.notebook.AddPage(self.fighter, "Fighters", image=fighterImg, closeable=False)

        self.cargo = CargoView(self.notebook)
        self.notebook.AddPage(self.cargo, "Cargo", image=cargoImg, closeable=False)

        self.implant = ImplantView(self.notebook)
        self.notebook.AddPage(self.implant, "Implants", image=implantImg, closeable=False)

        self.booster = BoosterView(self.notebook)
        self.notebook.AddPage(self.booster, "Boosters", image=boosterImg, closeable=False)

        self.projectedPage = ProjectedView(self.notebook)
        self.notebook.AddPage(self.projectedPage, "Projected", image=projectedImg, closeable=False)

        self.gangPage = CommandView(self.notebook)
        self.notebook.AddPage(self.gangPage, "Command", image=gangImg, closeable=False)

        self.notes = NotesView(self.notebook)
        self.notebook.AddPage(self.notes, "Notes", image=notesImg, closeable=False)

        self.notebook.SetSelection(0)
Ejemplo n.º 3
0
    def __init__(self, parent):

        TogglePanel.__init__(self, parent, force_layout=1)

        self.SetLabel("Additions")
        pane = self.GetContentPanel()

        baseSizer = wx.BoxSizer(wx.HORIZONTAL)
        pane.SetSizer(baseSizer)

        self.notebook = ChromeNotebook(pane, False)
        self.notebook.SetMinSize((-1, 1000))

        baseSizer.Add(self.notebook, 1, wx.EXPAND)

        droneImg = BitmapLoader.getImage("drone_small", "gui")
        fighterImg = BitmapLoader.getImage("fighter_small", "gui")
        implantImg = BitmapLoader.getImage("implant_small", "gui")
        boosterImg = BitmapLoader.getImage("booster_small", "gui")
        projectedImg = BitmapLoader.getImage("projected_small", "gui")
        gangImg = BitmapLoader.getImage("fleet_fc_small", "gui")
        cargoImg = BitmapLoader.getImage("cargo_small", "gui")
        notesImg = BitmapLoader.getImage("skill_small", "gui")

        self.drone = DroneView(self.notebook)
        self.notebook.AddPage(self.drone,
                              "Drones",
                              image=droneImg,
                              closeable=False)

        self.fighter = FighterView(self.notebook)
        self.notebook.AddPage(self.fighter,
                              "Fighters",
                              image=fighterImg,
                              closeable=False)

        self.cargo = CargoView(self.notebook)
        self.notebook.AddPage(self.cargo,
                              "Cargo",
                              image=cargoImg,
                              closeable=False)

        self.implant = ImplantView(self.notebook)
        self.notebook.AddPage(self.implant,
                              "Implants",
                              image=implantImg,
                              closeable=False)

        self.booster = BoosterView(self.notebook)
        self.notebook.AddPage(self.booster,
                              "Boosters",
                              image=boosterImg,
                              closeable=False)

        self.projectedPage = ProjectedView(self.notebook)
        self.notebook.AddPage(self.projectedPage,
                              "Projected",
                              image=projectedImg,
                              closeable=False)

        self.gangPage = CommandView(self.notebook)
        self.notebook.AddPage(self.gangPage,
                              "Command",
                              image=gangImg,
                              closeable=False)

        self.notes = NotesView(self.notebook)
        self.notebook.AddPage(self.notes,
                              "Notes",
                              image=notesImg,
                              closeable=False)

        self.notebook.SetSelection(0)