Commit fcf4fcc18c1d51020e49604cf48044a224357583

Authored by Thiago Franco de Moraes
1 parent 9ced0a47
Exists in import_mesh

Changed the import button icon and added a tooltip

invesalius/gui/data_notebook.py
... ... @@ -593,9 +593,7 @@ class SurfaceButtonControlPanel(wx.Panel):
593 593 wx.BITMAP_TYPE_PNG)
594 594 BMP_DUPLICATE = wx.Bitmap(os.path.join(const.ICON_DIR, "data_duplicate.png"),
595 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 598 # Plate buttons based on previous bitmaps
601 599 button_style = pbtn.PB_STYLE_SQUARE | pbtn.PB_STYLE_DEFAULT
... ... @@ -615,6 +613,7 @@ class SurfaceButtonControlPanel(wx.Panel):
615 613 BMP_OPEN,
616 614 style=button_style,
617 615 size = wx.Size(24, 20))
  616 + button_open.SetToolTipString(_("Import a surface file into InVesalius"))
618 617  
619 618 # Add all controls to gui
620 619 sizer = wx.BoxSizer(wx.HORIZONTAL)
... ...
invesalius/gui/dialogs.py
... ... @@ -386,8 +386,7 @@ def ShowImportMeshFilesDialog():
386 386 # Default system path
387 387 current_dir = os.path.abspath(".")
388 388 dlg = wx.FileDialog(None, message=_("Import surface file"),
389   - defaultDir="",
390   - defaultFile="", wildcard=WILDCARD_MESH_FILES,
  389 + wildcard=WILDCARD_MESH_FILES,
391 390 style=wx.FD_OPEN | wx.FD_CHANGE_DIR)
392 391  
393 392 # stl filter is default
... ...