Quantcast
Channel: wxWidgets: Ticket Query
Viewing all articles
Browse latest Browse all 66

#11391: A mistake in the wxPython Demo

$
0
0

Note: This is not a bug of wxWidgets and wxPython but a mistake in the Demo code(2.8.10.1).

In "CommonDialogs"-->"ColourDialog", the following demo code doesn't work as expectation on Windowx XP Professional(SP2). The colour dialog is not shown as full(custom colour part are not displayed)


def OnButton(self, evt):

dlg = wx.ColourDialog(self)

# Ensure the full colour dialog is displayed, # not the abbreviated version. dlg.GetColourData().SetChooseFull(True)


I tried another which works:


colorData = wx.ColourData() colorData.SetChooseFull(True) colorDlg = wx.ColourDialog(self, colorData)



Viewing all articles
Browse latest Browse all 66

Latest Images

Trending Articles



Latest Images