Ignore:
Timestamp:
Jul 21, 2016 9:53:53 AM (8 years ago)
Author:
lewis
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
a3c538e1
Parents:
eb8da5f
Message:

Add option to export multiple frames as one file or multiple files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/file_converter/frame_select_dialog.py

    reb8da5f r94f4518  
    1313            "format").format(n_frames) 
    1414        instructions_label = wx.StaticText(self, -1, instructions) 
    15         instructions_label.Wrap(self.GetSize().width - 20) 
     15        instructions_label.Wrap(self.GetSize().width - 10) 
    1616        sizer.Add(instructions_label, (y,0), (1,2), wx.ALL, 5) 
    1717        y += 1 
    1818 
    19         first_label = wx.StaticText(self, -1, "First Frame (0-{}): ".format(n_frames-1)) 
     19        first_label = wx.StaticText(self, -1, 
     20            "First Frame (0-{}): ".format(n_frames-1)) 
    2021        sizer.Add(first_label, (y,0), (1,1), wx.ALL, 5) 
    2122 
     
    2425        y += 1 
    2526 
    26         last_label = wx.StaticText(self, -1, "Last Frame (0-{}): ".format(n_frames-1)) 
     27        last_label = wx.StaticText(self, -1, 
     28            "Last Frame (0-{}): ".format(n_frames-1)) 
    2729        sizer.Add(last_label, (y,0), (1,1), wx.ALL, 5) 
    2830 
     
    3840        y += 1 
    3941 
     42        export_label = wx.StaticText(self, -1, "Export each frame to:") 
     43        sizer.Add(export_label, (y,0), (1,1), wx.LEFT | wx.RIGHT | wx.TOP, 5) 
     44        y += 1 
     45 
     46        self.single_btn = wx.RadioButton(self, -1, label="The same file", 
     47            style=wx.RB_GROUP) 
     48        sizer.Add(self.single_btn, (y,0), (1,1), 
     49            wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) 
     50 
     51        multiple_btn = wx.RadioButton(self, -1, label="Multiple files") 
     52        sizer.Add(multiple_btn, (y,1), (1,1), 
     53            wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) 
     54        y += 1 
     55 
    4056        done_btn = wx.Button(self, wx.ID_OK) 
    41         sizer.Add(done_btn, (y,0), (1,1), wx.LEFT | wx.TOP | wx.BOTTOM, 15) 
     57        sizer.Add(done_btn, (y,0), (1,1), wx.LEFT | wx.BOTTOM, 15) 
    4258 
    4359        cancel_btn = wx.Button(self, wx.ID_CANCEL) 
    44         sizer.Add(cancel_btn, (y,1), (1,1), wx.ALL, 15) 
     60        sizer.Add(cancel_btn, (y,1), (1,1), wx.LEFT | wx.RIGHT | wx.BOTTOM, 15) 
    4561 
    4662        self.SetSizer(sizer) 
     63 
     64        size = self.GetSize() 
     65        size.height += 35 
     66        self.SetSize(size) 
Note: See TracChangeset for help on using the changeset viewer.