Skip to content

Commit bee88ba

Browse files
authored
Merge pull request #42 from Sparks29032/add_wx_import
Add wx import
2 parents 7ec6441 + 0139997 commit bee88ba

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

news/add_wx_import.rst

+23
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+
* Added a wx import to fix module not found error.
20+
21+
**Security:**
22+
23+
* <news item>

setup.py

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ def getversioncfg():
5959
g = gitinfo()
6060
except OSError:
6161
pass
62+
if len(g['version']) == 0:
63+
g['version'] = FALLBACK_VERSION
64+
6265
# finally, check and update the active version file
6366
cp = RawConfigParser()
6467
cp.read(versioncfgfile)

src/diffpy/utils/wx/gridutils.py

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
"""Common functions for manipulating wx.grid.Grid.
1717
"""
1818

19+
import wx
20+
1921

2022
def getSelectionRows(grid):
2123
"""Indices of the rows that have any cell selected.

0 commit comments

Comments
 (0)