Exemplo n.º 1
0
 def OnLoadFile(self, event):
     wildcard_str = ""
     if (wx.PlatformInfo[4] != "wxOSX-cocoa"):
         from iotbx import file_reader
         wildcard_str = file_reader.get_wildcard_string("img")
     file_name = wx.FileSelector("Image file",
                                 wildcard=wildcard_str,
                                 default_path="",
                                 flags=(wx.OPEN if WX3 else wx.FD_OPEN))
     if (file_name != ""):
         self.load_image(file_name)
Exemplo n.º 2
0
 def OnLoadFile (self, event) :
   wildcard_str = ""
   if (wx.PlatformInfo[4] != "wxOSX-cocoa") :
     from iotbx import file_reader
     wildcard_str = file_reader.get_wildcard_string("img")
   file_name = wx.FileSelector("Reflections file",
     wildcard=wildcard_str,
     default_path="",
     flags=wx.OPEN)
   if (file_name != "") :
     self.load_image(file_name)