Commit fcf4fcc18c1d51020e49604cf48044a224357583
1 parent
9ced0a47
Exists in
import_mesh
Changed the import button icon and added a tooltip
Showing
2 changed files
with
3 additions
and
5 deletions
Show diff stats
invesalius/gui/data_notebook.py
@@ -593,9 +593,7 @@ class SurfaceButtonControlPanel(wx.Panel): | @@ -593,9 +593,7 @@ class SurfaceButtonControlPanel(wx.Panel): | ||
593 | wx.BITMAP_TYPE_PNG) | 593 | wx.BITMAP_TYPE_PNG) |
594 | BMP_DUPLICATE = wx.Bitmap(os.path.join(const.ICON_DIR, "data_duplicate.png"), | 594 | BMP_DUPLICATE = wx.Bitmap(os.path.join(const.ICON_DIR, "data_duplicate.png"), |
595 | wx.BITMAP_TYPE_PNG) | 595 | wx.BITMAP_TYPE_PNG) |
596 | - | ||
597 | - BMP_OPEN = wx.Bitmap(os.path.join(const.ICON_DIR, "data_duplicate.png"), | ||
598 | - wx.BITMAP_TYPE_PNG) | 596 | + BMP_OPEN = wx.ArtProvider.GetBitmap(wx.ART_FOLDER_OPEN, wx.ART_BUTTON, (18,18)) |
599 | 597 | ||
600 | # Plate buttons based on previous bitmaps | 598 | # Plate buttons based on previous bitmaps |
601 | button_style = pbtn.PB_STYLE_SQUARE | pbtn.PB_STYLE_DEFAULT | 599 | button_style = pbtn.PB_STYLE_SQUARE | pbtn.PB_STYLE_DEFAULT |
@@ -615,6 +613,7 @@ class SurfaceButtonControlPanel(wx.Panel): | @@ -615,6 +613,7 @@ class SurfaceButtonControlPanel(wx.Panel): | ||
615 | BMP_OPEN, | 613 | BMP_OPEN, |
616 | style=button_style, | 614 | style=button_style, |
617 | size = wx.Size(24, 20)) | 615 | size = wx.Size(24, 20)) |
616 | + button_open.SetToolTipString(_("Import a surface file into InVesalius")) | ||
618 | 617 | ||
619 | # Add all controls to gui | 618 | # Add all controls to gui |
620 | sizer = wx.BoxSizer(wx.HORIZONTAL) | 619 | sizer = wx.BoxSizer(wx.HORIZONTAL) |
invesalius/gui/dialogs.py
@@ -386,8 +386,7 @@ def ShowImportMeshFilesDialog(): | @@ -386,8 +386,7 @@ def ShowImportMeshFilesDialog(): | ||
386 | # Default system path | 386 | # Default system path |
387 | current_dir = os.path.abspath(".") | 387 | current_dir = os.path.abspath(".") |
388 | dlg = wx.FileDialog(None, message=_("Import surface file"), | 388 | dlg = wx.FileDialog(None, message=_("Import surface file"), |
389 | - defaultDir="", | ||
390 | - defaultFile="", wildcard=WILDCARD_MESH_FILES, | 389 | + wildcard=WILDCARD_MESH_FILES, |
391 | style=wx.FD_OPEN | wx.FD_CHANGE_DIR) | 390 | style=wx.FD_OPEN | wx.FD_CHANGE_DIR) |
392 | 391 | ||
393 | # stl filter is default | 392 | # stl filter is default |