Re: Re: selection color for wx.grid.Grid (on linux)
Demetrios Tsillas <[email protected]> Tue, 23 Apr 2019 15:07:56 -0400
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <CAHhTRkYKMJTP163HGhdkwDoaB0Fu3Kgk06+2CaNU=_fgWyJScA@mail.gmail.com> |
--0000000000000fe41a0587374e49 Content-Type: text/plain; charset="UTF-8" Is there a way to suppress this warning so it doesn't show up in the console? On Mon, Apr 22, 2019 at 11:27 AM Robin Dunn <[email protected]> wrote: > > On Friday, April 19, 2019 at 12:35:05 PM UTC-7, Demetrios Tsillas wrote: >> >> I have an app which populates a grid and selects row 0 on startup. >> >> The problem is that the selected row is shown as having a grey background. >> >> Once I select the right (left-mouse) it turns into the correct orange >> color (rgba(240, 119, 70, 0.902)). >> >> Is there someway I can have the correct color shown even before selecting >> the row with the mouse? >> > > > It sounds like the difference between the grid having the keyboard focus > or not. Have you tried calling the grid's SetFocus method? (Perhaps via > wx.CallAfter to delay it until the next iteration of the event loop.) > > > >> >> Also, once I load the grid if I left-click the column label area (above >> the grid data) before I select a row I get this message on the console: >> >> *** BUG *** >> In pixman_region32_init_rect: Invalid rectangle passed >> Set a breakpoint on '_pixman_log_error' to debug >> >> Using 4.0.4, Ubuntu 18.02 and python 2.7. Unfortunately the app is large >> so coming up with a simple .py to demonstrate the problem is not easy. >> > > GTK is very nitpicky about warnings and errors, and it seems to change on > every release. So it's usually okay to just ignore the messages. > > -- > Robin > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "wxPython-dev" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/wxPython-dev/AtqQwdMbSjY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "wxPython-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. --0000000000000fe41a0587374e49 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Is there a way to suppress this warning so it doesn't = show up in the console?</div><br><div class=3D"gmail_quote"><div dir=3D"ltr= " class=3D"gmail_attr">On Mon, Apr 22, 2019 at 11:27 AM Robin Dunn <<a h= ref=3D"mailto:[email protected]">[email protected]</a>> wrote:<br></div>= <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-= left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><br>On F= riday, April 19, 2019 at 12:35:05 PM UTC-7, Demetrios Tsillas wrote:<blockq= uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p= x solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">I have an app w= hich populates a grid and selects row 0 on startup.<div><br></div><div>The = problem is that the selected row is shown as having a grey background.</div= ><div><br></div><div>Once I select the right (left-mouse) it turns into the= correct orange color (rgba(240, 119, 70, 0.902)).</div><div><br></div><div= >Is there someway I can have the correct color shown even before selecting = the row with the mouse?</div></div></blockquote><div><br></div><div><br></d= iv><div>It sounds like the difference between the grid having the keyboard = focus or not. Have you tried calling the grid's SetFocus method? (Perha= ps via wx.CallAfter to delay it until the next iteration of the event loop.= )</div><div><br></div><div>=C2=A0</div><blockquote class=3D"gmail_quote" st= yle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padd= ing-left:1ex"><div dir=3D"ltr"><div><br></div><div>Also, once I load the gr= id if I left-click the column label area (above the grid data) before I sel= ect a row I get this message on the console:</div><div><br></div><div><div>= *** BUG ***</div><div>In pixman_region32_init_rect: Invalid rectangle passe= d</div><div>Set a breakpoint on '_pixman_log_error' to debug</div><= /div><div><br></div><div>Using 4.0.4, Ubuntu 18.02 and python 2.7. Unfortun= ately the app is large so coming up with a simple .py to demonstrate the pr= oblem is not easy.</div></div></blockquote><div><br></div><div>GTK is very = nitpicky about warnings and errors, and it seems to change on every release= . So it's usually okay to just ignore the messages.</div><div><br></div= ><div>--</div><div>Robin</div><div>=C2=A0</div></div> <p></p> -- <br> You received this message because you are subscribed to a topic in the Goog= le Groups "wxPython-dev" group.<br> To unsubscribe from this topic, visit <a href=3D"https://groups.google.com/= d/topic/wxPython-dev/AtqQwdMbSjY/unsubscribe" target=3D"_blank">https://gro= ups.google.com/d/topic/wxPython-dev/AtqQwdMbSjY/unsubscribe</a>.<br> To unsubscribe from this group and all its topics, send an email to <a href= =3D"mailto:[email protected]" target=3D"_blank">wxP= [email protected]</a>.<br> For more options, visit <a href=3D"https://groups.google.com/d/optout" targ= et=3D"_blank">https://groups.google.com/d/optout</a>.<br> </blockquote></div> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;wxPython-dev" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]">wxPyth= [email protected]</a>.<br /> For more options, visit <a href=3D"https://groups.google.com/d/optout">http= s://groups.google.com/d/optout</a>.<br /> --0000000000000fe41a0587374e49--