Changeset 0cc77d8 in sasview for src/sas/sasgui/guiframe
- Timestamp:
- May 1, 2017 5:00:53 PM (8 years ago)
- Children:
- 733cdcd
- Parents:
- b9d74f3 (diff), c00a797a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- Paul Kienzle <pkienzle@…> (05/01/17 17:00:53)
- git-committer:
- GitHub <noreply@…> (05/01/17 17:00:53)
- Location:
- src/sas/sasgui/guiframe
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/config.py
rea45bfe ra1b8fee 2 2 Application settings 3 3 """ 4 from __future__ import print_function 5 4 6 import time 5 7 import os … … 150 152 :TODO - Need method doc string 151 153 """ 152 print "%g: %s" % (time.clock(), message)154 print("%g: %s" % (time.clock(), message)) 153 155 154 156 if __EVT_DEBUG_2_FILE__: -
src/sas/sasgui/guiframe/data_panel.py
r959eb01 ra1b8fee 11 11 This module provides Graphic interface for the data_manager module. 12 12 """ 13 from __future__ import print_function 14 13 15 import wx 14 16 from wx.build import build_options … … 514 516 self.parent.save_data2d(data, default_name) 515 517 else: 516 print "unable to save this type of data"518 print("unable to save this type of data") 517 519 518 520 def layout_data_list(self): … … 1497 1499 except: 1498 1500 # raise 1499 print "error", sys.exc_value1501 print("error", sys.exc_value) 1500 1502 1501 1503 app.MainLoop() -
src/sas/sasgui/guiframe/data_processor.py
rb9d74f3 r0cc77d8 18 18 19 19 """ 20 from __future__ import print_function 21 20 22 import os 21 23 import sys … … 2035 2037 frame.Show(True) 2036 2038 except: 2037 print sys.exc_value2039 print(sys.exc_value) 2038 2040 2039 2041 app.MainLoop() -
src/sas/sasgui/guiframe/dummyapp.py
r959eb01 ra1b8fee 3 3 Allows the user to set an external data manager 4 4 """ 5 from __future__ import print_function 6 5 7 import sas.sasgui.guiframe.gui_manager as gui_manager 6 8 … … 32 34 plug_menu.Append(id, '&Do something') 33 35 def _on_do_something(event): 34 print "Do something"36 print("Do something") 35 37 wx.EVT_MENU(self.parent, id, _on_do_something) 36 38 -
src/sas/sasgui/guiframe/gui_style.py
r959eb01 ra1b8fee 3 3 Provide the style for guiframe 4 4 """ 5 from __future__ import print_function 6 5 7 import wx 6 8 import os … … 79 81 if __name__ == "__main__": 80 82 81 print GUIFRAME.DEFAULT_STYLE82 print GUIFRAME.FLOATING_PANEL83 print GUIFRAME.SINGLE_APPLICATION83 print(GUIFRAME.DEFAULT_STYLE) 84 print(GUIFRAME.FLOATING_PANEL) 85 print(GUIFRAME.SINGLE_APPLICATION) 84 86 style = GUIFRAME.MULTIPLE_APPLICATIONS 85 87 style &= GUIFRAME.PLOTTING_ON 86 print style == GUIFRAME.PLOTTING_ON88 print(style == GUIFRAME.PLOTTING_ON) 87 89 style1 = GUIFRAME.MULTIPLE_APPLICATIONS 88 90 style1 &= (~GUIFRAME.MANAGER_ON) 89 print style1 == GUIFRAME.DEFAULT_STYLE90 print style191 print(style1 == GUIFRAME.DEFAULT_STYLE) 92 print(style1) -
src/sas/sasgui/guiframe/proxy.py
r463e7ffc ra1b8fee 1 1 #!/usr/bin/env python 2 2 # -*- coding: utf-8 -*- 3 from __future__ import print_function 4 3 5 import urllib2 4 6 import sys … … 157 159 response = c.connect() 158 160 if response is not None: 159 print 50 * '-'161 print(50 * '-') 160 162 content = json.loads(response.read().strip()) 161 163 pprint(content) -
src/sas/sasgui/guiframe/gui_manager.py
r2f22db9 rb9d74f3 2613 2613 wx.PostEvent(self, StatusEvent(status=msg, 2614 2614 info="error")) 2615 raise ValueError , msg2615 raise ValueError(msg) 2616 2616 # text = str(data) 2617 2617 text = data.__str__() -
src/sas/sasgui/guiframe/local_perspectives/plotting/SectorSlicer.py
r7432acb rb9d74f3 235 235 msg = "Phi left and phi right are different" 236 236 msg += " %f, %f" % (self.left_line.phi, self.right_line.phi) 237 raise ValueError , msg237 raise ValueError(msg) 238 238 params["Phi [deg]"] = self.main_line.theta * 180 / math.pi 239 239 params["Delta_Phi [deg]"] = math.fabs(self.left_line.phi * 180 / math.pi) -
src/sas/sasgui/guiframe/local_perspectives/plotting/binder.py
r463e7ffc rb9d74f3 187 187 # Check that the trigger is valid 188 188 if trigger not in self._actions: 189 raise ValueError ,"%s invalid --- valid triggers are %s" \190 % (trigger, ", ".join(self.events)) 189 raise ValueError("%s invalid --- valid triggers are %s" \ 190 % (trigger, ", ".join(self.events))) 191 191 # Register the trigger callback 192 192 self._actions[trigger][artist] = action … … 203 203 """ 204 204 if action not in self.events: 205 raise ValueError , "Trigger expects " + ", ".join(self.events)205 raise ValueError("Trigger expects " + ", ".join(self.events)) 206 206 # Tag the event with modifiers 207 207 for mod in ('alt', 'control', 'shift', 'meta'): -
src/sas/sasgui/guiframe/local_perspectives/plotting/boxSlicer.py
r7432acb rb9d74f3 152 152 if new_slab is None: 153 153 msg = "post data:cannot average , averager is empty" 154 raise ValueError , msg154 raise ValueError(msg) 155 155 self.averager = new_slab 156 156 if self.direction == "X": … … 168 168 else: 169 169 msg = "post data:no Box Average direction was supplied" 170 raise ValueError , msg170 raise ValueError(msg) 171 171 # # Average data2D given Qx or Qy 172 172 box = self.averager(x_min=x_min, x_max=x_max, y_min=y_min, y_max=y_max, -
src/sas/sasgui/guiframe/local_perspectives/plotting/plotting.py
r235f514 rb9d74f3 199 199 200 200 msg = "1D Panel of group ID %s could not be created" % str(group_id) 201 raise ValueError , msg201 raise ValueError(msg) 202 202 203 203 def create_2d_panel(self, data, group_id): … … 217 217 return new_panel 218 218 msg = "2D Panel of group ID %s could not be created" % str(group_id) 219 raise ValueError , msg219 raise ValueError(msg) 220 220 221 221 def update_panel(self, data, panel): … … 237 237 msg += " to panel %s\n" % str(panel.window_caption) 238 238 msg += "Please edit %s's units, labels" % str(data.name) 239 raise ValueError , msg239 raise ValueError(msg) 240 240 else: 241 241 if panel.group_id not in data.list_group_id: -
src/sas/sasgui/guiframe/local_perspectives/plotting/sector_mask.py
r7432acb rb9d74f3 175 175 msg += "different %f, %f" % (self.left_line.phi, 176 176 self.right_line.phi) 177 raise ValueError , msg177 raise ValueError(msg) 178 178 params["Phi"] = self.main_line.theta 179 179 params["Delta_Phi"] = math.fabs(self.left_line.phi) -
src/sas/sasgui/guiframe/plugin_base.py
r7432acb rb9d74f3 277 277 """ 278 278 msg = "%s plugin: does not support import theory" % str(self.sub_menu) 279 raise ValueError , msg279 raise ValueError(msg) 280 280 281 281 def on_set_state_helper(self, event):
Note: See TracChangeset
for help on using the changeset viewer.