Skip to content

Commit c446790

Browse files
committed
build: remove deprecation usage of wxpython to make build successfully
1 parent 9496a69 commit c446790

2 files changed

Lines changed: 26 additions & 3 deletions

File tree

‎news/rm-deprecation-ilnes.rst‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Added:**
2+
3+
* <news item>
4+
5+
**Changed:**
6+
7+
* <news item>
8+
9+
**Deprecated:**
10+
11+
* <news item>
12+
13+
**Removed:**
14+
15+
* <news item>
16+
17+
**Fixed:**
18+
19+
* Fixed deprecation usage of `wxpython` to make package build successfully
20+
21+
**Security:**
22+
23+
* <news item>

‎src/diffpy/pdfgui/gui/mainframe.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ def __setupToolBar(self):
682682
# The bitmap has a white transparency color (mask)
683683
maskcolor = wx.Colour(red=255, green=255, blue=255)
684684
bitmap = wx.Bitmap(iconpath("run.png"))
685-
bitmap.SetSize(size)
685+
# bitmap.SetSize(size)
686686
mask = wx.Mask(bitmap, maskcolor)
687687
bitmap.SetMask(mask)
688688
self.toolBar.AddTool(
@@ -694,7 +694,7 @@ def __setupToolBar(self):
694694
"Start a fit or calculation",
695695
)
696696
bitmap = wx.Bitmap(iconpath("stop.png"))
697-
bitmap.SetSize(size)
697+
# bitmap.SetSize(size)
698698
mask = wx.Mask(bitmap, maskcolor)
699699
bitmap.SetMask(mask)
700700
self.toolBar.AddTool(
@@ -707,7 +707,7 @@ def __setupToolBar(self):
707707
)
708708
self.toolBar.AddSeparator()
709709
bitmap = wx.Bitmap(iconpath("datasetitem.png"))
710-
bitmap.SetSize(size)
710+
# bitmap.SetSize(size)
711711
self.toolBar.AddTool(
712712
self.quickPlotId,
713713
"Quick plot",

0 commit comments

Comments
 (0)