Commit 553830f44ff07648d7dad7aa5eed1c1542b22905
1 parent
54fac267
Exists in
master
and in
67 other branches
Trying to resolve the problem that is happening with multiprocessing in windows …
…related to the _(i18n)
Showing
3 changed files
with
8 additions
and
9 deletions
Show diff stats
invesalius/data/surface_process.py
invesalius/gui/dialogs.py
... | ... | @@ -873,17 +873,17 @@ class NewSurfaceDialog(wx.Dialog): |
873 | 873 | keep_largest = self.check_box_largest.GetValue() |
874 | 874 | return (mask_index, surface_name, quality, fill_holes, keep_largest) |
875 | 875 | |
876 | -INDEX_TO_EXTENSION = {0: "bmp", 1: "jpg", 2: "png", 3: "ps", 4:"povray", 5:"tiff"} | |
877 | -WILDCARD_SAVE_PICTURE = _("BMP image")+" (*.bmp)|*.bmp|"+\ | |
878 | - _("JPG image")+" (*.jpg)|*.jpg|"+\ | |
879 | - _("PNG image")+" (*.png)|*.png|"+\ | |
880 | - _("PostScript document")+" (*.ps)|*.ps|"+\ | |
881 | - _("POV-Ray file")+" (*.pov)|*.pov|"+\ | |
882 | - _("TIFF image")+" (*.tif)|*.tif" | |
883 | 876 | |
884 | 877 | |
885 | 878 | def ExportPicture(type_=""): |
886 | 879 | import constants as const |
880 | + INDEX_TO_EXTENSION = {0: "bmp", 1: "jpg", 2: "png", 3: "ps", 4:"povray", 5:"tiff"} | |
881 | + WILDCARD_SAVE_PICTURE = _("BMP image")+" (*.bmp)|*.bmp|"+\ | |
882 | + _("JPG image")+" (*.jpg)|*.jpg|"+\ | |
883 | + _("PNG image")+" (*.png)|*.png|"+\ | |
884 | + _("PostScript document")+" (*.ps)|*.ps|"+\ | |
885 | + _("POV-Ray file")+" (*.pov)|*.pov|"+\ | |
886 | + _("TIFF image")+" (*.tif)|*.tif" | |
887 | 887 | |
888 | 888 | INDEX_TO_TYPE = {0: const.FILETYPE_BMP, |
889 | 889 | 1: const.FILETYPE_JPG, | ... | ... |
invesalius/project.py