Trees | Indices | Help |
|
---|
|
1 ############################################################################### 2 # # 3 # Copyright (C) 2013 Edward d'Auvergne # 4 # # 5 # This file is part of the program relax (http://www.nmr-relax.com). # 6 # # 7 # This program is free software: you can redistribute it and/or modify # 8 # it under the terms of the GNU General Public License as published by # 9 # the Free Software Foundation, either version 3 of the License, or # 10 # (at your option) any later version. # 11 # # 12 # This program is distributed in the hope that it will be useful, # 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # 15 # GNU General Public License for more details. # 16 # # 17 # You should have received a copy of the GNU General Public License # 18 # along with this program. If not, see <http://www.gnu.org/licenses/>. # 19 # # 20 ############################################################################### 21 22 # Module docstring. 23 """Module defining a number of text elements for use in the GUI. 24 25 Some of these text elements are operating system dependent due to the incompleteness of the unicode fonts on certain systems. 26 """ 27 28 # relax module imports. 29 from compat import SYSTEM, u 30 31 # OS Flags. 32 win = False 33 mac = False 34 if SYSTEM == 'Windows': 35 win = True 36 if SYSTEM == 'Darwin': 37 mac = True 38 39 # Relaxation data GUI text elements. 40 r1 = u("R\u2081") 41 r2 = u("R\u2082") 42 if win: 43 r1 = "R1" 44 r2 = "R2" 45 46 # Model-free GUI text elements. 47 s2 = u("S\u00B2") 48 s2f = u("S\u00B2f") 49 s2s = u("S\u00B2s") 50 local_tm = u("local \u03C4\u2098") 51 tm = u("\u03C4\u2098") 52 te = u("\u03C4e") 53 tf = u("\u03C4f") 54 ts = u("\u03C4s") 55 rex = u("R\u2091\u2093") 56 csa = "CSA" 57 r = "r" 58 if win: 59 local_tm = u("local \u03C4m") 60 tm = u("\u03C4m") 61 rex = "Rex" 62 if mac: 63 local_tm = u("local \u03C4m") 64 tm = u("\u03C4m") 65
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Nov 26 19:05:14 2013 | http://epydoc.sourceforge.net |