Skip to content

Commit

Permalink
fixing gui bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDoyle2 committed Apr 10, 2019
1 parent 80d8ead commit c021a0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions packages.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""helper for setup.py"""
import os
import sys

Expand All @@ -8,22 +9,24 @@
PY3 = False

def check_python_version():
"""verifies the python version"""
imajor, minor1, minor2 = sys.version_info[:3]
if sys.version_info < (2, 7, 7): # 2.7.15 used
# makes sure we don't get the following bug:
# Issue #19099: The struct module now supports Unicode format strings.
sys.exit('Upgrade your Python to >= 2.7.7 or 3.5+; version=(%s.%s.%s)' % (imajor, minor1, minor2))
sys.exit('Upgrade your Python to >= 2.7.7 or 3.5+; version=(%s.%s.%s)' % (
imajor, minor1, minor2))

if PY3:
if sys.version_info < (3, 6, 0): # 3.7.1 used
sys.exit('Upgrade your Python to >= 2.7.7 or 3.6+; version=(%s.%s.%s)' % (imajor, minor1, minor2))
sys.exit('Upgrade your Python to >= 2.7.7 or 3.6+; version=(%s.%s.%s)' % (
imajor, minor1, minor2))


def get_package_requirements(is_gui=True):
"""gets the requirements for setup.py"""
all_reqs = {}
py2_gui_scripts = []
py2_packages = []
py3_gui_scripts = []
py3_packages = []


Expand Down
2 changes: 1 addition & 1 deletion pyNastran/gui/styles/area_pick_style.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def _pick_depth_ids(self, xmin, ymin, xmax, ymax):
is_nids=self.is_nids, is_eids=self.is_eids,
representation='points', add_actors=False)
self.actor = actors[0]
add_actors(gui, actors, render=False)
add_actors_to_gui(gui, actors, render=False)

if self.callback is not None:
self.callback(eids, nids, self.name)
Expand Down

0 comments on commit c021a0a

Please sign in to comment.