Changeset 2609 for trunk


Ignore:
Timestamp:
07/27/12 14:14:36 (12 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: No (workarounds for OSX 10.7)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs: interactive tests on OSX 10.7

plot data with asapplotter (sdplot)
load notaion window by clicking on plot after pressing 'notation' button
# check if notation widow has sufficient size.
write a text in text window and press 'print' button
# check if the text and positions are noted on log.

Put in Release Notes: No

Module(s): sdplot, sdflag, asapplotter, flagplotter

Description:

Worarounds to fix behaivour on OSX 10.7.
These workaounds should fix issuues:

  1. notation window is too small when loaded.
  2. an error raised when trying to print/modify notes on plots.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/customgui_tkagg.py

    r2603 r2609  
    304304    def _get_note(self):
    305305        """Returns a note string specified in the text box"""
    306         return self.textbox.get("1.0",Tk.END)
     306        # A WORKAROUND for OSX 10.7 (Tk.Text returns unicode but asaplog doesn't accept it)
     307        #return self.textbox.get("1.0",Tk.END)
     308        return str(self.textbox.get("1.0",Tk.END))
    307309
    308310    def _clear_textbox(self):
     
    379381        self.textwin.deiconify()
    380382        (w,h) = self.textwin.minsize()
    381         if w*h <= 1:
     383        # WORKAROUND for too small default minsize on OSX 10.7
     384        #if w*h <= 1:
     385        if w*h <= 1500:
    382386            self.textwin.minsize(width=self.textwin.winfo_width(),
    383387                                 height=self.textwin.winfo_height())
Note: See TracChangeset for help on using the changeset viewer.