python - StaticText items disappear in wx.StaticBox -


I am creating a static box and a stat box that is in a vertical shape. Everything works well for me, but not on the client's environment.

Everything is displayed in the Static box, but the label. The snippet below shows how I create staticboxsizer

  sbox2 = wx.StaticBox (auto, wx.ID_ANY, 'CH1 only') sboxsizer2 = wx.StaticBoxSizer (sbox2, wx.VERTICAL ) Gsizer9 = wx.GridBagSizer (1,1) gsizer9. Add (comp.minmaxlabel_21, (1,0), (1,1), wx.ALL, 1) gsizer9.Add (comp.MinMax_21, (1,1), (1,1), wx.ALL, 1) Gsizer9.Add (comp.MinMax_19, (2,1), (1,1), wx.ALL, 1) gsizer9.Add (comp.MinMaxLabel_19, (2,0), (1,1), wx.ALL, 1) gsizer9.Add (comp.VcOS_15, (3,1), (1,1), wx.ALL, 1) gsizer9.Add (comp.MinMaxLabel_22, (3,0), (1,1), wx. 8, 1) gsizer9.Add (comp.monLabel_18, (0,3), (1,1), wx.ALL, 1) gsizer9.Add (comp.MonLabel_21, (0,4), (1,1) Wx.ALL, 1) gsizer9.Add (comp.MonLabel_17, (0,5), (1,1), wx.ALL, 1) comp.MonLabel_22.Wrap (40) gsizer9. Add (comp.MonLabel_22, (0,6), (1,1), wx.ALL, 1) comp.monLabel_19.Wrap (40) gsizer9.Add (comp.MonLabel_19, (0,7), (1,1 ), Wx.ALL, 1) Gsizer9.Add (comp.VcOS_10, (1,3), (1,1), wx.ALL, 1) gsizer9.Add (comp.VcOS_11, (1,4), (1 , 1), wx.ALL, 1) gsizer9.Add (comp.VcOS_12, (1,5), (1,1), wx.ALL, 1) gsizer9.Add (comp.VcOS_13, (1,6) , (1,1), wx.ALL, 1) Gsizer9.Add (comp.VcOS_14, (1,7), (1,1), wx.ALL, 1) sboxsizer2.Add (gsizer9, 0,0,0 ) Vsizer4.ad (sboxsizer2, 0,0,0)  

comp.MinMaxLabel_ * returns a wx.StaticText (label = 'blah'), nothing fancy, only one wrapper , Which works fine for other ~ 400 items in other things. But in Static Box or Static Box Sisers, no static text is displayed on customer setup.

Normally it is displayed in my setup:

It is this that I find on the customer's setup:

Both setup the same wxpython The version is 2.8.9.1. But 2.8 * Also any suggestions on my environment displays?

The source code of wxStaticBox does different things in the pixeling code, depending on whether XP themes should be enabled. In the screen shot without themes, everything looks fine, the label with a theme is not enabled. Can you try on your system with enabled topics, and see if the labels display properly? Or can your customer temporarily disable the theme and check that this fixes the problem?

In addition to this, how do you use labels as parents - frame / dialog or static box? I can not see it with the code posted, but I'll use the static box. It may also make a difference.


Comments