wxBitmapButton no Image handler defined

Anonymous
2003-01-06
2003-02-25
  • Anonymous - 2003-01-06

    When I try to use any of the wxBitmap classes with boa I get an error.

    04:18:33 PM: No image handler for type 13 defined.
    04:18:33 PM: No image handler for type 13 defined.
    04:18:33 PM: No image handler for type 13 defined.

    And I can't figure out what is going on. The following is the code boa generated for my frame.

        def _init_ctrls(self, prnt):
            wxFrame.__init__(self, id = wxID_FRMMAIN, name = 'frmMain', parent = prnt, pos = wxPoint(346, 279), size = wxSize(433, 367), style = wxDEFAULT_FRAME_STYLE, title = 'Custom Libraries Data Manager')
            self._init_utils()
            self.SetClientSize(wxSize(425, 340))
            self.SetMenuBar(self.menuBar1)

            self.panel1 = wxPanel(id = wxID_FRMMAINPANEL1, name = 'panel1', parent = self, pos = wxPoint(0, 0), size = wxSize(425, 340), style = wxTAB_TRAVERSAL)

            self.btnExtractor = wxBitmapButton(bitmap = wxBitmap('extractor.gif', wxBITMAP_TYPE_GIF), id = wxID_FRMMAINBTNEXTRACTOR, name = 'btnExtractor', parent = self.panel1, pos = wxPoint(72, 80), size = wxSize(100, 100), style = wxBU_AUTODRAW, validator = wxDefaultValidator)
            self.btnExtractor.SetToolTipString('Project Settings and Settings for the Data Extraction Module')
            EVT_BUTTON(self.btnExtractor, wxID_FRMMAINBTNEXTRACTOR, self.OnBtnextractorButton)

            self.btnChecker = wxBitmapButton(bitmap = wxBitmap('checker.gif', wxBITMAP_TYPE_GIF), id = wxID_FRMMAINBTNCHECKER, name = 'btnChecker', parent = self.panel1, pos = wxPoint(240, 80), size = wxSize(100, 100), style = wxBU_AUTODRAW, validator = wxDefaultValidator)
            self.btnChecker.SetToolTipString('Check Database for Missing/Duplicate Data against .xls Shipping List')
            EVT_BUTTON(self.btnChecker, wxID_FRMMAINBTNCHECKER, self.OnBtncheckerButton)

            self.btnTransfer = wxBitmapButton(bitmap = wxBitmap('transfer.gif', wxBITMAP_TYPE_GIF), id = wxID_FRMMAINBTNTRANSFER, name = 'btnTransfer', parent = self.panel1, pos = wxPoint(160, 200), size = wxSize(100, 100), style = wxBU_AUTODRAW, validator = wxDefaultValidator)
            self.btnTransfer.SetToolTipString('Create a Customer Database from an .xls Shipping List')
            EVT_BUTTON(self.btnTransfer, wxID_FRMMAINBTNTRANSFER, self.OnBtntransferButton)

     
    • Riaan Booysen

      Riaan Booysen - 2003-02-25

      Hi Gabe,

      When an application uses images other than BMP, you need to add one call to wxInitAllImageHandlers() somewhere in that application.

      Cheers,
      Riaan.

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks