From: Blaine L. <bl...@te...> - 2001-10-18 23:18:41
|
I am using Boa 0.0.5 to develop code for an embedded Linux application. The problem I have is the screen colors change occasionally when I enter different Frames. Also, if a dialog is closed, the background it covered may change. Can someone point me where the problem is? I am hoping it is something like I have to declare background colors or some such thing... I have included the top of the frame declarations below. One other thing I am wondering about is that I have my frames nested i.e.: Fmain = BoaFrame( in Fmain's __init__ I have self.Fdiag = BoaFrame self.Foperator = BoaFrame etc... Is this the 'right' way to do things? Linux environment: Software: Debian 2.2 xfree86 3.3.6 wxPython 2.2.5 python 1.5.2 & 2.1.1 (happens under both) Hardware: processor / video NS Geode GXM w/5530 companion chip 640x480 I have also confirmed that colors change under VNC. FYI it is a virtual X server that acts as a frame buffer on the local machine and can be viewed on any connected machine with a viewer (therefore I think its not the xserver). Thank you Blaine Lee If its worth anything, here is the definition of one of the screens that frequently shows this problem: def _init_ctrls(self, prnt): wxFrame.__init__(self, size = wxSize(640, 480), id = wxID_BOAFRAME, title = 'Operator Screen', parent = prnt, name = 'BoaFrame', style = 0, pos = wxPoint(239, 306)) self._init_utils() self.SetBackgroundColour(wxColour(255, 255, 255)) self.SetFont(wxFont(10, wxMODERN, wxNORMAL, wxNORMAL, false, 'clean')) EVT_CLOSE(self, self.OnBoaframeClose) EVT_ACTIVATE(self, self.OnBoaframeActivate) self.Exit = wxButton(label = 'Back to Main Screen', id = wxID_BOAFRAMEEXIT, parent = self, name = 'Exit', size = wxSize(128, 59), style = 0, pos = wxPoint(8, 384)) EVT_BUTTON(self.Exit, wxID_BOAFRAMEEXIT, self.OnExitButton) self.Start = wxBitmapButton(bitmap = wxBitmap('start.bmp', wxBITMAP_TYPE_BMP), id = wxID_BOAFRAMESTART, validator = wxDefaultValidator, parent = self, name = 'Start', size = wxSize(72, 72), style = wxBU_AUTODRAW, pos = wxPoint(456, 368)) self.Start.SetBackgroundColour(wxColour(255, 255, 255)) EVT_BUTTON(self.Start, wxID_BOAFRAMESTART, self.OnStartButton) self.Stop = wxBitmapButton(bitmap = wxBitmap('stop.bmp', wxBITMAP_TYPE_BMP), id = wxID_BOAFRAMESTOP, validator = wxDefaultValidator, parent = self, name = 'Stop', size = wxSize(72, 72), style = wxBU_AUTODRAW, pos = wxPoint(544, 368)) EVT_BUTTON(self.Stop, wxID_BOAFRAMESTOP, self.OnStopButton) self.staticBitmap1 = wxStaticBitmap(bitmap = wxBitmap('logo.bmp', wxBITMAP_TYPE_BMP), id = wxID_BOAFRAMESTATICBITMAP1, parent = self, name = 'staticBitmap1', size = wxSize(160, 64), style = 0, pos = wxPoint(392, 30)) self.a = wxPanel(size = wxSize(264, 320), id = wxID_BOAFRAMEA, parent = self, name = 'a', style = wxTAB_TRAVERSAL, pos = wxPoint(16, 48)) |