File: Gnumed.wxpython.patient.gmCrypto-pysrc.html

package info (click to toggle)
gnumed-client 0.7.10-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 95,756 kB
  • ctags: 119,392
  • sloc: python: 50,163; sh: 670; makefile: 25
file content (170 lines) | stat: -rw-r--r-- 16,384 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Gnumed.wxpython.patient.gmCrypto</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="Gnumed-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://www.gnumed.org">GNUmed Never Sleeps</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="Gnumed-module.html">Package&nbsp;Gnumed</a> ::
        <a href="Gnumed.wxpython-module.html">Package&nbsp;wxpython</a> ::
        <a href="Gnumed.wxpython.patient-module.html">Package&nbsp;patient</a> ::
        Module&nbsp;gmCrypto
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="Gnumed.wxpython.patient.gmCrypto-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="Gnumed.wxpython.patient.gmCrypto-module.html">Module Gnumed.wxpython.patient.gmCrypto</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-comment"># a simple wrapper for the cryptowidget</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"><tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">wxversion</tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">wx</tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"><tt class="py-keyword">except</tt> <tt class="py-name">ImportError</tt><tt class="py-op">:</tt> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line">        <tt class="py-keyword">from</tt> <tt class="py-name">wxPython</tt> <tt class="py-keyword">import</tt> <tt class="py-name">wx</tt> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line"> </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package Gnumed=Gnumed-module.html"><a title="Gnumed" class="py-name" href="Gnumed.wxpython.patient.gmCrypto-pysrc.html#" onclick="return doclink('link-0', 'Gnumed', 'link-0');">Gnumed</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Package Gnumed.wxpython=Gnumed.wxpython-module.html"><a title="Gnumed.wxpython" class="py-name" href="Gnumed.wxpython.patient.gmCrypto-pysrc.html#" onclick="return doclink('link-1', 'wxpython', 'link-1');">wxpython</a></tt> <tt class="py-keyword">import</tt> <tt id="link-2" class="py-name" targets="Module Gnumed.wxpython.gmPlugin_Patient=Gnumed.wxpython.gmPlugin_Patient-module.html"><a title="Gnumed.wxpython.gmPlugin_Patient" class="py-name" href="Gnumed.wxpython.patient.gmCrypto-pysrc.html#" onclick="return doclink('link-2', 'gmPlugin_Patient', 'link-2');">gmPlugin_Patient</a></tt><tt class="py-op">,</tt> <tt id="link-3" class="py-name" targets="Module Gnumed.wxpython.images_gnuMedGP_Toolbar=Gnumed.wxpython.images_gnuMedGP_Toolbar-module.html"><a title="Gnumed.wxpython.images_gnuMedGP_Toolbar" class="py-name" href="Gnumed.wxpython.patient.gmCrypto-pysrc.html#" onclick="return doclink('link-3', 'images_gnuMedGP_Toolbar', 'link-3');">images_gnuMedGP_Toolbar</a></tt><tt class="py-op">,</tt> <tt id="link-4" class="py-name" targets="Module Gnumed.wxpython.gmCryptoText=Gnumed.wxpython.gmCryptoText-module.html,Class Gnumed.wxpython.gmCryptoText.gmCryptoText=Gnumed.wxpython.gmCryptoText.gmCryptoText-class.html"><a title="Gnumed.wxpython.gmCryptoText
Gnumed.wxpython.gmCryptoText.gmCryptoText" class="py-name" href="Gnumed.wxpython.patient.gmCrypto-pysrc.html#" onclick="return doclink('link-4', 'gmCryptoText', 'link-4');">gmCryptoText</a></tt>  </tt>
<a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line"> </tt>
<a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line"><tt id="link-5" class="py-name" targets="Variable Gnumed.wxpython.patient.gmCrypto.ID_CRYPTO=Gnumed.wxpython.patient.gmCrypto-module.html#ID_CRYPTO"><a title="Gnumed.wxpython.patient.gmCrypto.ID_CRYPTO" class="py-name" href="Gnumed.wxpython.patient.gmCrypto-pysrc.html#" onclick="return doclink('link-5', 'ID_CRYPTO', 'link-5');">ID_CRYPTO</a></tt> <tt class="py-op">=</tt> <tt class="py-name">wxNewId</tt> <tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line"> </tt>
<a name="gmCrypto"></a><div id="gmCrypto-def"><a name="L13"></a><tt class="py-lineno">13</tt> <a class="py-toggle" href="Gnumed.wxpython.patient.gmCrypto-pysrc.html#" id="gmCrypto-toggle" onclick="return toggle('gmCrypto');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="Gnumed.wxpython.patient.gmCrypto.gmCrypto-class.html">gmCrypto</a> <tt class="py-op">(</tt><tt class="py-base-class">gmPlugin_Patient</tt><tt class="py-op">.</tt><tt class="py-base-class">wxPatientPlugin</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="gmCrypto-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="gmCrypto-expanded"><a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line">    <tt class="py-docstring">"""</tt> </tt>
<a name="L15"></a><tt class="py-lineno">15</tt>  <tt class="py-line"><tt class="py-docstring">    Plugin to encapsulate the cryptowidget</tt> </tt>
<a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="gmCrypto.name"></a><div id="gmCrypto.name-def"><a name="L17"></a><tt class="py-lineno">17</tt> <a class="py-toggle" href="Gnumed.wxpython.patient.gmCrypto-pysrc.html#" id="gmCrypto.name-toggle" onclick="return toggle('gmCrypto.name');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Gnumed.wxpython.patient.gmCrypto.gmCrypto-class.html#name">name</a> <tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="gmCrypto.name-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="gmCrypto.name-expanded"><a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-string">'Test cryptowidget'</tt> </tt>
</div><a name="L19"></a><tt class="py-lineno">19</tt>  <tt class="py-line"> </tt>
<a name="gmCrypto.MenuInfo"></a><div id="gmCrypto.MenuInfo-def"><a name="L20"></a><tt class="py-lineno">20</tt> <a class="py-toggle" href="Gnumed.wxpython.patient.gmCrypto-pysrc.html#" id="gmCrypto.MenuInfo-toggle" onclick="return toggle('gmCrypto.MenuInfo');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Gnumed.wxpython.patient.gmCrypto.gmCrypto-class.html#MenuInfo">MenuInfo</a> <tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="gmCrypto.MenuInfo-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="gmCrypto.MenuInfo-expanded"><a name="L21"></a><tt class="py-lineno">21</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-op">(</tt><tt class="py-string">'view'</tt><tt class="py-op">,</tt> <tt class="py-string">'&amp;Crypto'</tt><tt class="py-op">)</tt> </tt>
</div><a name="L22"></a><tt class="py-lineno">22</tt>  <tt class="py-line"> </tt>
<a name="gmCrypto.GetIcon"></a><div id="gmCrypto.GetIcon-def"><a name="L23"></a><tt class="py-lineno">23</tt> <a class="py-toggle" href="Gnumed.wxpython.patient.gmCrypto-pysrc.html#" id="gmCrypto.GetIcon-toggle" onclick="return toggle('gmCrypto.GetIcon');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Gnumed.wxpython.patient.gmCrypto.gmCrypto-class.html#GetIcon">GetIcon</a> <tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="gmCrypto.GetIcon-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="gmCrypto.GetIcon-expanded"><a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">wxBitmapFromXPMData</tt><tt class="py-op">(</tt><tt class="py-op">[</tt> </tt>
<a name="L25"></a><tt class="py-lineno">25</tt>  <tt class="py-line">        <tt class="py-string">"16 16 2 1"</tt><tt class="py-op">,</tt> </tt>
<a name="L26"></a><tt class="py-lineno">26</tt>  <tt class="py-line">        <tt class="py-string">"       c None"</tt><tt class="py-op">,</tt> </tt>
<a name="L27"></a><tt class="py-lineno">27</tt>  <tt class="py-line">        <tt class="py-string">".      c #ED0B47"</tt><tt class="py-op">,</tt> </tt>
<a name="L28"></a><tt class="py-lineno">28</tt>  <tt class="py-line">        <tt class="py-string">"                "</tt><tt class="py-op">,</tt> </tt>
<a name="L29"></a><tt class="py-lineno">29</tt>  <tt class="py-line">        <tt class="py-string">"                "</tt><tt class="py-op">,</tt> </tt>
<a name="L30"></a><tt class="py-lineno">30</tt>  <tt class="py-line">        <tt class="py-string">"                "</tt><tt class="py-op">,</tt> </tt>
<a name="L31"></a><tt class="py-lineno">31</tt>  <tt class="py-line">        <tt class="py-string">"             .  "</tt><tt class="py-op">,</tt> </tt>
<a name="L32"></a><tt class="py-lineno">32</tt>  <tt class="py-line">        <tt class="py-string">"            . . "</tt><tt class="py-op">,</tt> </tt>
<a name="L33"></a><tt class="py-lineno">33</tt>  <tt class="py-line">        <tt class="py-string">"           .   ."</tt><tt class="py-op">,</tt> </tt>
<a name="L34"></a><tt class="py-lineno">34</tt>  <tt class="py-line">        <tt class="py-string">" ...........   ."</tt><tt class="py-op">,</tt> </tt>
<a name="L35"></a><tt class="py-lineno">35</tt>  <tt class="py-line">        <tt class="py-string">" ...........   ."</tt><tt class="py-op">,</tt> </tt>
<a name="L36"></a><tt class="py-lineno">36</tt>  <tt class="py-line">        <tt class="py-string">" ..  ..    .   ."</tt><tt class="py-op">,</tt> </tt>
<a name="L37"></a><tt class="py-lineno">37</tt>  <tt class="py-line">        <tt class="py-string">" ..  ..     . . "</tt><tt class="py-op">,</tt> </tt>
<a name="L38"></a><tt class="py-lineno">38</tt>  <tt class="py-line">        <tt class="py-string">" ..  ..      .  "</tt><tt class="py-op">,</tt> </tt>
<a name="L39"></a><tt class="py-lineno">39</tt>  <tt class="py-line">        <tt class="py-string">" ..  ..         "</tt><tt class="py-op">,</tt> </tt>
<a name="L40"></a><tt class="py-lineno">40</tt>  <tt class="py-line">        <tt class="py-string">"                "</tt><tt class="py-op">,</tt> </tt>
<a name="L41"></a><tt class="py-lineno">41</tt>  <tt class="py-line">        <tt class="py-string">"                "</tt><tt class="py-op">,</tt> </tt>
<a name="L42"></a><tt class="py-lineno">42</tt>  <tt class="py-line">        <tt class="py-string">"                "</tt><tt class="py-op">,</tt> </tt>
<a name="L43"></a><tt class="py-lineno">43</tt>  <tt class="py-line">        <tt class="py-string">"                "</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div><a name="L44"></a><tt class="py-lineno">44</tt>  <tt class="py-line"> </tt>
<a name="gmCrypto.GetWidget"></a><div id="gmCrypto.GetWidget-def"><a name="L45"></a><tt class="py-lineno">45</tt> <a class="py-toggle" href="Gnumed.wxpython.patient.gmCrypto-pysrc.html#" id="gmCrypto.GetWidget-toggle" onclick="return toggle('gmCrypto.GetWidget');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Gnumed.wxpython.patient.gmCrypto.gmCrypto-class.html#GetWidget">GetWidget</a> <tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">parent</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="gmCrypto.GetWidget-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="gmCrypto.GetWidget-expanded"><a name="L46"></a><tt class="py-lineno">46</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-6" class="py-name"><a title="Gnumed.wxpython.gmCryptoText
Gnumed.wxpython.gmCryptoText.gmCryptoText" class="py-name" href="Gnumed.wxpython.patient.gmCrypto-pysrc.html#" onclick="return doclink('link-6', 'gmCryptoText', 'link-4');">gmCryptoText</a></tt><tt class="py-op">.</tt><tt id="link-7" class="py-name"><a title="Gnumed.wxpython.gmCryptoText
Gnumed.wxpython.gmCryptoText.gmCryptoText" class="py-name" href="Gnumed.wxpython.patient.gmCrypto-pysrc.html#" onclick="return doclink('link-7', 'gmCryptoText', 'link-4');">gmCryptoText</a></tt> <tt class="py-op">(</tt><tt class="py-name">parent</tt><tt class="py-op">,</tt> <tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L47"></a><tt class="py-lineno">47</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="Gnumed-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://www.gnumed.org">GNUmed Never Sleeps</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Mon Nov 29 04:05:47 2010
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>