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 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342
|
<?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.pycommon.gmGuiBroker</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> <a
href="Gnumed-module.html">Home</a> </th>
<!-- Tree link -->
<th> <a
href="module-tree.html">Trees</a> </th>
<!-- Index link -->
<th> <a
href="identifier-index.html">Indices</a> </th>
<!-- Help link -->
<th> <a
href="help.html">Help</a> </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 Gnumed</a> ::
<a href="Gnumed.pycommon-module.html">Package pycommon</a> ::
Module gmGuiBroker
</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
>] | <a href="Gnumed.pycommon.gmGuiBroker-pysrc.html"
target="_top">no frames</a>]</span></td></tr>
</table>
</td>
</tr>
</table>
<h1 class="epydoc">Source Code for <a href="Gnumed.pycommon.gmGuiBroker-module.html">Module Gnumed.pycommon.gmGuiBroker</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt> <tt class="py-line"><tt class="py-docstring">"""GNUMed GUI element brokerage</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt> <tt class="py-line"><tt class="py-docstring">This module provides wrappers for the equivalent of global</tt> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt> <tt class="py-line"><tt class="py-docstring">variables needed for a gnumed GUI client interface</tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt> <tt class="py-line"><tt class="py-docstring">@author: Dr. Horst Herb</tt> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt> <tt class="py-line"><tt class="py-docstring">@version: 0.2</tt> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt> <tt class="py-line"><tt class="py-docstring">@copyright: GPL v2 or later</tt> </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt> <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt> <tt class="py-line"><tt class="py-comment">#-----------------------------------------------------------</tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt> <tt class="py-line"><tt class="py-comment"># $Source: /home/ncq/Projekte/cvs2git/vcs-mirror/gnumed/gnumed/client/pycommon/gmGuiBroker.py,v $</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt> <tt class="py-line"><tt class="py-comment"># $Id: gmGuiBroker.py,v 1.4 2004-06-20 15:44:28 ncq Exp $</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt> <tt class="py-line"><tt id="link-0" class="py-name" targets="Variable Gnumed.pycommon.gmGuiBroker.__version__=Gnumed.pycommon.gmGuiBroker-module.html#__version__"><a title="Gnumed.pycommon.gmGuiBroker.__version__" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-0', '__version__', 'link-0');">__version__</a></tt> <tt class="py-op">=</tt> <tt class="py-string">"$Revision: 1.4 $"</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt> <tt class="py-line"><tt id="link-1" class="py-name" targets="Variable Gnumed.pycommon.gmGuiBroker.__author__=Gnumed.pycommon.gmGuiBroker-module.html#__author__"><a title="Gnumed.pycommon.gmGuiBroker.__author__" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-1', '__author__', 'link-1');">__author__</a></tt> <tt class="py-op">=</tt> <tt class="py-string">"H.Herb <hherb@gnumed.net>, H.Berger <Hilmar.Berger@gmx.de>"</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt> <tt class="py-line"><tt class="py-comment">#===========================================================</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt> <tt class="py-line"><tt class="py-keyword">if</tt> <tt class="py-name">__name__</tt> <tt class="py-op">==</tt> <tt class="py-string">'__main__'</tt><tt class="py-op">:</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt> <tt class="py-line"> <tt id="link-2" class="py-name" targets="Function Gnumed.business.gmClinNarrative._()=Gnumed.business.gmClinNarrative-module.html#_,Function Gnumed.business.gmDemographicRecord._()=Gnumed.business.gmDemographicRecord-module.html#_,Function Gnumed.business.gmEMRStructItems._()=Gnumed.business.gmEMRStructItems-module.html#_,Function Gnumed.business.gmXdtMappings._()=Gnumed.business.gmXdtMappings-module.html#_,Function Gnumed.wxpython.gmAbout._()=Gnumed.wxpython.gmAbout-module.html#_,Function Gnumed.wxpython.gmAuthWidgets._()=Gnumed.wxpython.gmAuthWidgets-module.html#_,Variable Gnumed.wxpython.gmDemographicsWidgets._=Gnumed.wxpython.gmDemographicsWidgets-module.html#_,Variable Gnumed.wxpython.gmFormPrinter._=Gnumed.wxpython.gmFormPrinter-module.html#_,Variable Gnumed.wxpython.gmGuiMain._=Gnumed.wxpython.gmGuiMain-module.html#_,Function Gnumed.wxpython.gmPersonContactWidgets._()=Gnumed.wxpython.gmPersonContactWidgets-module.html#_"><a title="Gnumed.business.gmClinNarrative._
Gnumed.business.gmDemographicRecord._
Gnumed.business.gmEMRStructItems._
Gnumed.business.gmXdtMappings._
Gnumed.wxpython.gmAbout._
Gnumed.wxpython.gmAuthWidgets._
Gnumed.wxpython.gmDemographicsWidgets._
Gnumed.wxpython.gmFormPrinter._
Gnumed.wxpython.gmGuiMain._
Gnumed.wxpython.gmPersonContactWidgets._" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-2', '_', 'link-2');">_</a></tt> <tt class="py-op">=</tt> <tt class="py-keyword">lambda</tt> <tt class="py-name">x</tt><tt class="py-op">:</tt><tt class="py-name">x</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt> <tt class="py-line"> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt> <tt class="py-line"><tt class="py-comment"># FIXME !!! hack moved here from gmConf. This definitely must be replaced by some </tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt> <tt class="py-line"><tt class="py-comment"># structure getting data from the backend</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt> <tt class="py-line"><tt class="py-comment"># FIXME: hardcoded color/width !?! move to DB (?)</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt> <tt class="py-line"><tt id="link-3" class="py-name" targets="Variable Gnumed.pycommon.gmGuiBroker.config=Gnumed.pycommon.gmGuiBroker-module.html#config"><a title="Gnumed.pycommon.gmGuiBroker.config" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-3', 'config', 'link-3');">config</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'main.use_notebook'</tt><tt class="py-op">:</tt><tt class="py-number">1</tt><tt class="py-op">,</tt> <tt class="py-string">'main.shadow.colour'</tt><tt class="py-op">:</tt><tt class="py-op">(</tt><tt class="py-number">131</tt><tt class="py-op">,</tt> <tt class="py-number">129</tt><tt class="py-op">,</tt> <tt class="py-number">131</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-string">'main.shadow.width'</tt><tt class="py-op">:</tt><tt class="py-number">10</tt><tt class="py-op">}</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt> <tt class="py-line"> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt> <tt class="py-line"><tt class="py-comment">#===========================================================</tt> </tt>
<a name="GuiBroker"></a><div id="GuiBroker-def"><a name="L25"></a><tt class="py-lineno"> 25</tt> <a class="py-toggle" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" id="GuiBroker-toggle" onclick="return toggle('GuiBroker');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="Gnumed.pycommon.gmGuiBroker.GuiBroker-class.html">GuiBroker</a><tt class="py-op">:</tt> </tt>
</div><div id="GuiBroker-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="GuiBroker-expanded"><a name="L26"></a><tt class="py-lineno"> 26</tt> <tt class="py-line"> <tt class="py-docstring">"Wrapper for global objects needed by GNUMmed GUI clients"</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt> <tt class="py-line"> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt> <tt class="py-line"> <tt class="py-comment">#This class wraps all global gui objects (variables)for a gnumed</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt> <tt class="py-line"> <tt class="py-comment">#application. The static (at application level)dictionary</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt> <tt class="py-line"> <tt class="py-comment">#__objects can be accessed through the method addobject</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt> <tt class="py-line"> <tt class="py-comment">#and getobject.</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt> <tt class="py-line"> <tt class="py-comment">#So, if you need to access the main window frame, you would</tt> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt> <tt class="py-line"> <tt class="py-comment">#query an instance of GuiBroker for it.</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt> <tt class="py-line"> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt> <tt class="py-line"> <tt id="link-4" class="py-name" targets="Variable Gnumed.pycommon.gmGuiBroker.GuiBroker.__objects=Gnumed.pycommon.gmGuiBroker.GuiBroker-class.html#__objects"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.__objects" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-4', '__objects', 'link-4');">__objects</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt> <tt class="py-line"> <tt id="link-5" class="py-name" targets="Variable Gnumed.pycommon.gmGuiBroker.GuiBroker.__keycounter=Gnumed.pycommon.gmGuiBroker.GuiBroker-class.html#__keycounter"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.__keycounter" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-5', '__keycounter', 'link-5');">__keycounter</a></tt><tt class="py-op">=</tt><tt class="py-number">0</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt> <tt class="py-line"> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt> <tt class="py-line"> </tt>
<a name="GuiBroker.__init__"></a><div id="GuiBroker.__init__-def"><a name="L39"></a><tt class="py-lineno"> 39</tt> <a class="py-toggle" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" id="GuiBroker.__init__-toggle" onclick="return toggle('GuiBroker.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Gnumed.pycommon.gmGuiBroker.GuiBroker-class.html#__init__">__init__</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="GuiBroker.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++++++"></div><div id="GuiBroker.__init__-expanded"><a name="L40"></a><tt class="py-lineno"> 40</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
</div><a name="L41"></a><tt class="py-lineno"> 41</tt> <tt class="py-line"> </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt> <tt class="py-line"> </tt>
<a name="GuiBroker.addobject"></a><div id="GuiBroker.addobject-def"><a name="L43"></a><tt class="py-lineno"> 43</tt> <a class="py-toggle" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" id="GuiBroker.addobject-toggle" onclick="return toggle('GuiBroker.addobject');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Gnumed.pycommon.gmGuiBroker.GuiBroker-class.html#addobject">addobject</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">widget</tt><tt class="py-op">,</tt> <tt class="py-param">key</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GuiBroker.addobject-collapsed" style="display:none;" pad="+++" indent="++++++++++++"></div><div id="GuiBroker.addobject-expanded"><a name="L44"></a><tt class="py-lineno"> 44</tt> <tt class="py-line"> <tt class="py-docstring">"Add an object to the gnumed gui object dictionary"</tt> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt> <tt class="py-line"> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt> <tt class="py-line"> <tt class="py-comment">#An object can be anything (class, variable, widget)</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt> <tt class="py-line"> <tt class="py-comment">#The "key" is a key expression (number, text) that</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt> <tt class="py-line"> <tt class="py-comment">#allows you to retrieve the object.</tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt> <tt class="py-line"> <tt class="py-comment">#Convention for keys is the widget or variable name</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt> <tt class="py-line"> <tt class="py-comment">#as a text string</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt> <tt class="py-line"> <tt class="py-comment">#If key is not passed as parameter, a unique serial</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt> <tt class="py-line"> <tt class="py-comment">#number is allocated as key and returned</tt> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt> <tt class="py-line"> </tt>
<a name="L54"></a><tt class="py-lineno"> 54</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">key</tt><tt class="py-op">:</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt> <tt class="py-line"> <tt class="py-comment"># create a new sequential key that doesn't exist yet</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt> <tt class="py-line"> <tt class="py-name">key</tt> <tt class="py-op">=</tt> <tt id="link-6" class="py-name" targets="Class Gnumed.pycommon.gmGuiBroker.GuiBroker=Gnumed.pycommon.gmGuiBroker.GuiBroker-class.html"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-6', 'GuiBroker', 'link-6');">GuiBroker</a></tt><tt class="py-op">.</tt><tt id="link-7" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.__keycounter" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-7', '__keycounter', 'link-5');">__keycounter</a></tt> <tt class="py-op">+</tt> <tt class="py-number">1</tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt> <tt class="py-line"> <tt class="py-keyword">while</tt> <tt id="link-8" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-8', 'GuiBroker', 'link-6');">GuiBroker</a></tt><tt class="py-op">.</tt><tt id="link-9" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.__objects" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-9', '__objects', 'link-4');">__objects</a></tt><tt class="py-op">.</tt><tt id="link-10" class="py-name" targets="Method Gnumed.pycommon.gmGuiBroker.GuiBroker.has_key()=Gnumed.pycommon.gmGuiBroker.GuiBroker-class.html#has_key"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.has_key" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-10', 'has_key', 'link-10');">has_key</a></tt><tt class="py-op">(</tt><tt class="py-name">key</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt> <tt class="py-line"> <tt class="py-name">key</tt> <tt class="py-op">+=</tt><tt class="py-number">1</tt> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt> <tt class="py-line"> <tt id="link-11" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-11', 'GuiBroker', 'link-6');">GuiBroker</a></tt><tt class="py-op">.</tt><tt id="link-12" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.__keycounter" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-12', '__keycounter', 'link-5');">__keycounter</a></tt> <tt class="py-op">=</tt> <tt class="py-name">key</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt> <tt class="py-line"> <tt id="link-13" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-13', 'GuiBroker', 'link-6');">GuiBroker</a></tt><tt class="py-op">.</tt><tt id="link-14" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.__objects" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-14', '__objects', 'link-4');">__objects</a></tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">widget</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">key</tt> </tt>
</div><a name="L62"></a><tt class="py-lineno"> 62</tt> <tt class="py-line"> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt> <tt class="py-line"> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt> <tt class="py-line"> </tt>
<a name="GuiBroker.getobject"></a><div id="GuiBroker.getobject-def"><a name="L65"></a><tt class="py-lineno"> 65</tt> <a class="py-toggle" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" id="GuiBroker.getobject-toggle" onclick="return toggle('GuiBroker.getobject');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Gnumed.pycommon.gmGuiBroker.GuiBroker-class.html#getobject">getobject</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">key</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GuiBroker.getobject-collapsed" style="display:none;" pad="+++" indent="++++++++++++"></div><div id="GuiBroker.getobject-expanded"><a name="L66"></a><tt class="py-lineno"> 66</tt> <tt class="py-line"> <tt class="py-docstring">"allows to retrieve a gnumed gui element; see addobject() regarding the key parameter"</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-15" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-15', 'GuiBroker', 'link-6');">GuiBroker</a></tt><tt class="py-op">.</tt><tt id="link-16" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.__objects" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-16', '__objects', 'link-4');">__objects</a></tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt> </tt>
</div><a name="L68"></a><tt class="py-lineno"> 68</tt> <tt class="py-line"> </tt>
<a name="GuiBroker.has_key"></a><div id="GuiBroker.has_key-def"><a name="L69"></a><tt class="py-lineno"> 69</tt> <a class="py-toggle" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" id="GuiBroker.has_key-toggle" onclick="return toggle('GuiBroker.has_key');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Gnumed.pycommon.gmGuiBroker.GuiBroker-class.html#has_key">has_key</a><tt class="py-op">(</tt> <tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">key</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GuiBroker.has_key-collapsed" style="display:none;" pad="+++" indent="++++++++++++"></div><div id="GuiBroker.has_key-expanded"><a name="L70"></a><tt class="py-lineno"> 70</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-17" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-17', 'GuiBroker', 'link-6');">GuiBroker</a></tt><tt class="py-op">.</tt><tt id="link-18" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.__objects" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-18', '__objects', 'link-4');">__objects</a></tt><tt class="py-op">.</tt><tt id="link-19" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.has_key" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-19', 'has_key', 'link-10');">has_key</a></tt><tt class="py-op">(</tt><tt class="py-name">key</tt><tt class="py-op">)</tt> </tt>
</div><a name="L71"></a><tt class="py-lineno"> 71</tt> <tt class="py-line"> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt> <tt class="py-line"> </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt> <tt class="py-line"> </tt>
<a name="GuiBroker.keylist"></a><div id="GuiBroker.keylist-def"><a name="L74"></a><tt class="py-lineno"> 74</tt> <a class="py-toggle" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" id="GuiBroker.keylist-toggle" onclick="return toggle('GuiBroker.keylist');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Gnumed.pycommon.gmGuiBroker.GuiBroker-class.html#keylist">keylist</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="GuiBroker.keylist-collapsed" style="display:none;" pad="+++" indent="++++++++++++"></div><div id="GuiBroker.keylist-expanded"><a name="L75"></a><tt class="py-lineno"> 75</tt> <tt class="py-line"> <tt class="py-docstring">" returns a list of all keys; see documentation for the dictionary data type"</tt> </tt>
<a name="L76"></a><tt class="py-lineno"> 76</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-20" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-20', 'GuiBroker', 'link-6');">GuiBroker</a></tt><tt class="py-op">.</tt><tt id="link-21" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.__objects" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-21', '__objects', 'link-4');">__objects</a></tt><tt class="py-op">.</tt><tt id="link-22" class="py-name" targets="Method Gnumed.business.gmPerson.cDTO_person.keys()=Gnumed.business.gmPerson.cDTO_person-class.html#keys"><a title="Gnumed.business.gmPerson.cDTO_person.keys" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-22', 'keys', 'link-22');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L77"></a><tt class="py-lineno"> 77</tt> <tt class="py-line"> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt> <tt class="py-line"> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt> <tt class="py-line"> </tt>
<a name="GuiBroker.valuelist"></a><div id="GuiBroker.valuelist-def"><a name="L80"></a><tt class="py-lineno"> 80</tt> <a class="py-toggle" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" id="GuiBroker.valuelist-toggle" onclick="return toggle('GuiBroker.valuelist');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Gnumed.pycommon.gmGuiBroker.GuiBroker-class.html#valuelist">valuelist</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="GuiBroker.valuelist-collapsed" style="display:none;" pad="+++" indent="++++++++++++"></div><div id="GuiBroker.valuelist-expanded"><a name="L81"></a><tt class="py-lineno"> 81</tt> <tt class="py-line"> <tt class="py-docstring">"returns a list of all values; see documentation for the dictionary data type"</tt> </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-23" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-23', 'GuiBroker', 'link-6');">GuiBroker</a></tt><tt class="py-op">.</tt><tt id="link-24" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.__objects" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-24', '__objects', 'link-4');">__objects</a></tt><tt class="py-op">.</tt><tt class="py-name">values</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L83"></a><tt class="py-lineno"> 83</tt> <tt class="py-line"> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt> <tt class="py-line"> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt> <tt class="py-line"> </tt>
<a name="GuiBroker.itemlist"></a><div id="GuiBroker.itemlist-def"><a name="L86"></a><tt class="py-lineno"> 86</tt> <a class="py-toggle" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" id="GuiBroker.itemlist-toggle" onclick="return toggle('GuiBroker.itemlist');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Gnumed.pycommon.gmGuiBroker.GuiBroker-class.html#itemlist">itemlist</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="GuiBroker.itemlist-collapsed" style="display:none;" pad="+++" indent="++++++++++++"></div><div id="GuiBroker.itemlist-expanded"><a name="L87"></a><tt class="py-lineno"> 87</tt> <tt class="py-line"> <tt class="py-docstring">"returns a list of all key:value pairs; see documentation for the dictionary data type"</tt> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-25" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-25', 'GuiBroker', 'link-6');">GuiBroker</a></tt><tt class="py-op">.</tt><tt id="link-26" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.__objects" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-26', '__objects', 'link-4');">__objects</a></tt><tt class="py-op">.</tt><tt class="py-name">items</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L89"></a><tt class="py-lineno"> 89</tt> <tt class="py-line"> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt> <tt class="py-line"> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt> <tt class="py-line"> </tt>
<a name="GuiBroker.__getitem__"></a><div id="GuiBroker.__getitem__-def"><a name="L92"></a><tt class="py-lineno"> 92</tt> <a class="py-toggle" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" id="GuiBroker.__getitem__-toggle" onclick="return toggle('GuiBroker.__getitem__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Gnumed.pycommon.gmGuiBroker.GuiBroker-class.html#__getitem__">__getitem__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">key</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GuiBroker.__getitem__-collapsed" style="display:none;" pad="+++" indent="++++++++++++"></div><div id="GuiBroker.__getitem__-expanded"><a name="L93"></a><tt class="py-lineno"> 93</tt> <tt class="py-line"> <tt class="py-docstring">"Allows retrieving the value via value = instance[key]"</tt> </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name" targets="Method Gnumed.pycommon.gmGuiBroker.GuiBroker.getobject()=Gnumed.pycommon.gmGuiBroker.GuiBroker-class.html#getobject"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.getobject" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-27', 'getobject', 'link-27');">getobject</a></tt><tt class="py-op">(</tt><tt class="py-name">key</tt><tt class="py-op">)</tt> </tt>
</div><a name="L95"></a><tt class="py-lineno"> 95</tt> <tt class="py-line"> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt> <tt class="py-line"> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt> <tt class="py-line"> </tt>
<a name="GuiBroker.__setitem__"></a><div id="GuiBroker.__setitem__-def"><a name="L98"></a><tt class="py-lineno"> 98</tt> <a class="py-toggle" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" id="GuiBroker.__setitem__-toggle" onclick="return toggle('GuiBroker.__setitem__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Gnumed.pycommon.gmGuiBroker.GuiBroker-class.html#__setitem__">__setitem__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">key</tt><tt class="py-op">,</tt> <tt class="py-param">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GuiBroker.__setitem__-collapsed" style="display:none;" pad="+++" indent="++++++++++++"></div><div id="GuiBroker.__setitem__-expanded"><a name="L99"></a><tt class="py-lineno"> 99</tt> <tt class="py-line"> <tt class="py-docstring">"Allows access in the style of instance[key]=value"</tt> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-28" class="py-name" targets="Method Gnumed.pycommon.gmGuiBroker.GuiBroker.addobject()=Gnumed.pycommon.gmGuiBroker.GuiBroker-class.html#addobject"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.addobject" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-28', 'addobject', 'link-28');">addobject</a></tt><tt class="py-op">(</tt><tt class="py-name">object</tt><tt class="py-op">,</tt> <tt class="py-name">key</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L101"></a><tt class="py-lineno">101</tt> <tt class="py-line"> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt> <tt class="py-line"><tt class="py-comment">#===========================================================</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt> <tt class="py-line"><tt class="py-comment"># you can test this module by invoking it as main program</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt> <tt class="py-line"><tt class="py-keyword">if</tt> <tt class="py-name">__name__</tt> <tt class="py-op">==</tt> <tt class="py-string">"__main__"</tt><tt class="py-op">:</tt> </tt>
<a name="L105"></a><tt class="py-lineno">105</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-string">'>>> gmGuiBroker.GuiBroker test'</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt> <tt class="py-line"> <tt id="link-29" class="py-name" targets="Method Gnumed.pycommon.gmMimeMagic.magicTest.test()=Gnumed.pycommon.gmMimeMagic.magicTest-class.html#test,Function Gnumed.pycommon.gmNull.test()=Gnumed.pycommon.gmNull-module.html#test"><a title="Gnumed.pycommon.gmMimeMagic.magicTest.test
Gnumed.pycommon.gmNull.test" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-29', 'test', 'link-29');">test</a></tt> <tt class="py-op">=</tt> <tt id="link-30" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-30', 'GuiBroker', 'link-6');">GuiBroker</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt> <tt class="py-line"> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-string">'>>> test.addobject("something", 3)'</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt> <tt class="py-line"> <tt class="py-name">var</tt> <tt class="py-op">=</tt> <tt id="link-31" class="py-name"><a title="Gnumed.pycommon.gmMimeMagic.magicTest.test
Gnumed.pycommon.gmNull.test" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-31', 'test', 'link-29');">test</a></tt><tt class="py-op">.</tt><tt id="link-32" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.addobject" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-32', 'addobject', 'link-28');">addobject</a></tt><tt class="py-op">(</tt><tt class="py-string">"something"</tt><tt class="py-op">,</tt> <tt class="py-number">3</tt><tt class="py-op">)</tt> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-name">var</tt><tt class="py-op">,</tt> <tt class="py-string">"\n"</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt> <tt class="py-line"> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-string">'>>> test.addobject("something else without a specified key")'</tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt> <tt class="py-line"> <tt class="py-name">var</tt> <tt class="py-op">=</tt> <tt id="link-33" class="py-name"><a title="Gnumed.pycommon.gmMimeMagic.magicTest.test
Gnumed.pycommon.gmNull.test" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-33', 'test', 'link-29');">test</a></tt><tt class="py-op">.</tt><tt id="link-34" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.addobject" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-34', 'addobject', 'link-28');">addobject</a></tt><tt class="py-op">(</tt><tt class="py-string">"something else without a specified key"</tt><tt class="py-op">)</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-name">var</tt><tt class="py-op">,</tt> <tt class="py-string">"\n"</tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt> <tt class="py-line"> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-string">'>>> test.addobject(test)'</tt> </tt>
<a name="L117"></a><tt class="py-lineno">117</tt> <tt class="py-line"> <tt class="py-name">testreference</tt> <tt class="py-op">=</tt> <tt id="link-35" class="py-name"><a title="Gnumed.pycommon.gmMimeMagic.magicTest.test
Gnumed.pycommon.gmNull.test" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-35', 'test', 'link-29');">test</a></tt><tt class="py-op">.</tt><tt id="link-36" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.addobject" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-36', 'addobject', 'link-28');">addobject</a></tt><tt class="py-op">(</tt><tt id="link-37" class="py-name"><a title="Gnumed.pycommon.gmMimeMagic.magicTest.test
Gnumed.pycommon.gmNull.test" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-37', 'test', 'link-29');">test</a></tt><tt class="py-op">)</tt> </tt>
<a name="L118"></a><tt class="py-lineno">118</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-name">testreference</tt><tt class="py-op">,</tt> <tt class="py-string">"\n"</tt> </tt>
<a name="L119"></a><tt class="py-lineno">119</tt> <tt class="py-line"> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-string">'>>> test.addobject(100, "hundred)'</tt> </tt>
<a name="L121"></a><tt class="py-lineno">121</tt> <tt class="py-line"> <tt class="py-name">var</tt> <tt class="py-op">=</tt> <tt id="link-38" class="py-name"><a title="Gnumed.pycommon.gmMimeMagic.magicTest.test
Gnumed.pycommon.gmNull.test" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-38', 'test', 'link-29');">test</a></tt><tt class="py-op">.</tt><tt id="link-39" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.addobject" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-39', 'addobject', 'link-28');">addobject</a></tt><tt class="py-op">(</tt><tt class="py-number">100</tt><tt class="py-op">,</tt> <tt class="py-string">"hundred"</tt><tt class="py-op">)</tt> </tt>
<a name="L122"></a><tt class="py-lineno">122</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-name">var</tt><tt class="py-op">,</tt> <tt class="py-string">"\n"</tt> </tt>
<a name="L123"></a><tt class="py-lineno">123</tt> <tt class="py-line"> </tt>
<a name="L124"></a><tt class="py-lineno">124</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-string">">>> test.keylist()"</tt> </tt>
<a name="L125"></a><tt class="py-lineno">125</tt> <tt class="py-line"> <tt class="py-name">var</tt> <tt class="py-op">=</tt> <tt id="link-40" class="py-name"><a title="Gnumed.pycommon.gmMimeMagic.magicTest.test
Gnumed.pycommon.gmNull.test" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-40', 'test', 'link-29');">test</a></tt><tt class="py-op">.</tt><tt id="link-41" class="py-name" targets="Method Gnumed.pycommon.gmGuiBroker.GuiBroker.keylist()=Gnumed.pycommon.gmGuiBroker.GuiBroker-class.html#keylist"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.keylist" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-41', 'keylist', 'link-41');">keylist</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-name">var</tt><tt class="py-op">,</tt> <tt class="py-string">"\n"</tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt> <tt class="py-line"> </tt>
<a name="L128"></a><tt class="py-lineno">128</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-string">">>> test.valuelist()"</tt> </tt>
<a name="L129"></a><tt class="py-lineno">129</tt> <tt class="py-line"> <tt class="py-name">var</tt> <tt class="py-op">=</tt> <tt id="link-42" class="py-name"><a title="Gnumed.pycommon.gmMimeMagic.magicTest.test
Gnumed.pycommon.gmNull.test" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-42', 'test', 'link-29');">test</a></tt><tt class="py-op">.</tt><tt id="link-43" class="py-name" targets="Method Gnumed.pycommon.gmGuiBroker.GuiBroker.valuelist()=Gnumed.pycommon.gmGuiBroker.GuiBroker-class.html#valuelist"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.valuelist" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-43', 'valuelist', 'link-43');">valuelist</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L130"></a><tt class="py-lineno">130</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-name">var</tt><tt class="py-op">,</tt> <tt class="py-string">"\n"</tt> </tt>
<a name="L131"></a><tt class="py-lineno">131</tt> <tt class="py-line"> </tt>
<a name="L132"></a><tt class="py-lineno">132</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-string">">>> test.itemlist()"</tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt> <tt class="py-line"> <tt class="py-name">var</tt> <tt class="py-op">=</tt> <tt id="link-44" class="py-name"><a title="Gnumed.pycommon.gmMimeMagic.magicTest.test
Gnumed.pycommon.gmNull.test" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-44', 'test', 'link-29');">test</a></tt><tt class="py-op">.</tt><tt id="link-45" class="py-name" targets="Method Gnumed.pycommon.gmGuiBroker.GuiBroker.itemlist()=Gnumed.pycommon.gmGuiBroker.GuiBroker-class.html#itemlist"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.itemlist" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-45', 'itemlist', 'link-45');">itemlist</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-name">var</tt><tt class="py-op">,</tt> <tt class="py-string">"\n"</tt> </tt>
<a name="L135"></a><tt class="py-lineno">135</tt> <tt class="py-line"> </tt>
<a name="L136"></a><tt class="py-lineno">136</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-string">">>> test[3]"</tt> </tt>
<a name="L137"></a><tt class="py-lineno">137</tt> <tt class="py-line"> <tt class="py-name">var</tt> <tt class="py-op">=</tt> <tt id="link-46" class="py-name"><a title="Gnumed.pycommon.gmMimeMagic.magicTest.test
Gnumed.pycommon.gmNull.test" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-46', 'test', 'link-29');">test</a></tt><tt class="py-op">[</tt><tt class="py-number">3</tt><tt class="py-op">]</tt> </tt>
<a name="L138"></a><tt class="py-lineno">138</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-name">var</tt><tt class="py-op">,</tt> <tt class="py-string">"\n"</tt> </tt>
<a name="L139"></a><tt class="py-lineno">139</tt> <tt class="py-line"> </tt>
<a name="L140"></a><tt class="py-lineno">140</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-string">">>> test[testreference].getobject('hundred')"</tt> </tt>
<a name="L141"></a><tt class="py-lineno">141</tt> <tt class="py-line"> <tt class="py-name">var</tt> <tt class="py-op">=</tt> <tt id="link-47" class="py-name"><a title="Gnumed.pycommon.gmMimeMagic.magicTest.test
Gnumed.pycommon.gmNull.test" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-47', 'test', 'link-29');">test</a></tt><tt class="py-op">[</tt><tt class="py-name">testreference</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-48" class="py-name"><a title="Gnumed.pycommon.gmGuiBroker.GuiBroker.getobject" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-48', 'getobject', 'link-27');">getobject</a></tt><tt class="py-op">(</tt><tt class="py-string">'hundred'</tt><tt class="py-op">)</tt> </tt>
<a name="L142"></a><tt class="py-lineno">142</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-name">var</tt><tt class="py-op">,</tt> <tt class="py-string">"\n"</tt> </tt>
<a name="L143"></a><tt class="py-lineno">143</tt> <tt class="py-line"> </tt>
<a name="L144"></a><tt class="py-lineno">144</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-string">">>> var = test[testreference]"</tt> </tt>
<a name="L145"></a><tt class="py-lineno">145</tt> <tt class="py-line"> <tt class="py-name">var</tt> <tt class="py-op">=</tt> <tt id="link-49" class="py-name"><a title="Gnumed.pycommon.gmMimeMagic.magicTest.test
Gnumed.pycommon.gmNull.test" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-49', 'test', 'link-29');">test</a></tt><tt class="py-op">[</tt><tt class="py-name">testreference</tt><tt class="py-op">]</tt> </tt>
<a name="L146"></a><tt class="py-lineno">146</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-name">var</tt><tt class="py-op">,</tt> <tt class="py-string">"\n"</tt> </tt>
<a name="L147"></a><tt class="py-lineno">147</tt> <tt class="py-line"> </tt>
<a name="L148"></a><tt class="py-lineno">148</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-string">">>> var = var['hundred']"</tt> </tt>
<a name="L149"></a><tt class="py-lineno">149</tt> <tt class="py-line"> <tt class="py-name">var</tt> <tt class="py-op">=</tt> <tt class="py-name">var</tt><tt class="py-op">[</tt><tt class="py-string">'hundred'</tt><tt class="py-op">]</tt> </tt>
<a name="L150"></a><tt class="py-lineno">150</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-name">var</tt><tt class="py-op">,</tt> <tt class="py-string">"\n"</tt> </tt>
<a name="L151"></a><tt class="py-lineno">151</tt> <tt class="py-line"> </tt>
<a name="L152"></a><tt class="py-lineno">152</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-string">'>>> try: test.addobject["duplicate key", 3]'</tt> </tt>
<a name="L153"></a><tt class="py-lineno">153</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-string">'>>> except KeyError: print "Duplicate keys not allowed!"'</tt> </tt>
<a name="L154"></a><tt class="py-lineno">154</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> <tt id="link-50" class="py-name"><a title="Gnumed.pycommon.gmMimeMagic.magicTest.test
Gnumed.pycommon.gmNull.test" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-50', 'test', 'link-29');">test</a></tt><tt class="py-op">[</tt><tt class="py-string">"duplicate key"</tt><tt class="py-op">,</tt> <tt class="py-number">3</tt><tt class="py-op">]</tt> </tt>
<a name="L155"></a><tt class="py-lineno">155</tt> <tt class="py-line"> <tt class="py-keyword">except</tt> <tt class="py-name">KeyError</tt><tt class="py-op">:</tt> <tt class="py-keyword">print</tt> <tt class="py-string">"Duplicate keys not allowed!"</tt> </tt>
<a name="L156"></a><tt class="py-lineno">156</tt> <tt class="py-line"> </tt>
<a name="L157"></a><tt class="py-lineno">157</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-string">">>> test['key']='value'"</tt> </tt>
<a name="L158"></a><tt class="py-lineno">158</tt> <tt class="py-line"> <tt id="link-51" class="py-name"><a title="Gnumed.pycommon.gmMimeMagic.magicTest.test
Gnumed.pycommon.gmNull.test" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-51', 'test', 'link-29');">test</a></tt><tt class="py-op">[</tt><tt class="py-string">'key'</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-string">'value'</tt> </tt>
<a name="L159"></a><tt class="py-lineno">159</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt id="link-52" class="py-name"><a title="Gnumed.pycommon.gmMimeMagic.magicTest.test
Gnumed.pycommon.gmNull.test" class="py-name" href="Gnumed.pycommon.gmGuiBroker-pysrc.html#" onclick="return doclink('link-52', 'test', 'link-29');">test</a></tt><tt class="py-op">[</tt><tt class="py-string">'key'</tt><tt class="py-op">]</tt> </tt>
<a name="L160"></a><tt class="py-lineno">160</tt> <tt class="py-line"> </tt>
<a name="L161"></a><tt class="py-lineno">161</tt> <tt class="py-line"><tt class="py-comment">#===========================================================</tt> </tt>
<a name="L162"></a><tt class="py-lineno">162</tt> <tt class="py-line"><tt class="py-comment"># $Log: gmGuiBroker.py,v $</tt> </tt>
<a name="L163"></a><tt class="py-lineno">163</tt> <tt class="py-line"><tt class="py-comment"># Revision 1.4 2004-06-20 15:44:28 ncq</tt> </tt>
<a name="L164"></a><tt class="py-lineno">164</tt> <tt class="py-line"><tt class="py-comment"># - we need to be more careful in pleasing epydoc</tt> </tt>
<a name="L165"></a><tt class="py-lineno">165</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L166"></a><tt class="py-lineno">166</tt> <tt class="py-line"><tt class="py-comment"># Revision 1.3 2004/06/20 06:49:21 ihaywood</tt> </tt>
<a name="L167"></a><tt class="py-lineno">167</tt> <tt class="py-line"><tt class="py-comment"># changes required due to Epydoc's OCD</tt> </tt>
<a name="L168"></a><tt class="py-lineno">168</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L169"></a><tt class="py-lineno">169</tt> <tt class="py-line"><tt class="py-comment"># Revision 1.2 2004/03/10 00:14:04 ncq</tt> </tt>
<a name="L170"></a><tt class="py-lineno">170</tt> <tt class="py-line"><tt class="py-comment"># - fix imports</tt> </tt>
<a name="L171"></a><tt class="py-lineno">171</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L172"></a><tt class="py-lineno">172</tt> <tt class="py-line"><tt class="py-comment"># Revision 1.1 2004/02/25 09:30:13 ncq</tt> </tt>
<a name="L173"></a><tt class="py-lineno">173</tt> <tt class="py-line"><tt class="py-comment"># - moved here from python-common</tt> </tt>
<a name="L174"></a><tt class="py-lineno">174</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L175"></a><tt class="py-lineno">175</tt> <tt class="py-line"><tt class="py-comment"># Revision 1.8 2003/11/17 10:56:36 sjtan</tt> </tt>
<a name="L176"></a><tt class="py-lineno">176</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L177"></a><tt class="py-lineno">177</tt> <tt class="py-line"><tt class="py-comment"># synced and commiting.</tt> </tt>
<a name="L178"></a><tt class="py-lineno">178</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L179"></a><tt class="py-lineno">179</tt> <tt class="py-line"><tt class="py-comment"># Revision 1.1 2003/10/23 06:02:39 sjtan</tt> </tt>
<a name="L180"></a><tt class="py-lineno">180</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L181"></a><tt class="py-lineno">181</tt> <tt class="py-line"><tt class="py-comment"># manual edit areas modelled after r.terry's specs.</tt> </tt>
<a name="L182"></a><tt class="py-lineno">182</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L183"></a><tt class="py-lineno">183</tt> <tt class="py-line"><tt class="py-comment"># Revision 1.7 2003/02/09 11:48:59 ncq</tt> </tt>
<a name="L184"></a><tt class="py-lineno">184</tt> <tt class="py-line"><tt class="py-comment"># - just some silly cvs keyword</tt> </tt>
<a name="L185"></a><tt class="py-lineno">185</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L186"></a><tt class="py-lineno">186</tt> <tt class="py-line"><tt class="py-comment"># Revision 1.6 2003/02/09 09:41:57 sjtan</tt> </tt>
<a name="L187"></a><tt class="py-lineno">187</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L188"></a><tt class="py-lineno">188</tt> <tt class="py-line"><tt class="py-comment"># clean up new code, make it less intrusive.</tt> </tt>
<a name="L189"></a><tt class="py-lineno">189</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L190"></a><tt class="py-lineno">190</tt> <tt class="py-line"><tt class="py-comment"># Revision 1.5 2003/01/16 14:45:03 ncq</tt> </tt>
<a name="L191"></a><tt class="py-lineno">191</tt> <tt class="py-line"><tt class="py-comment"># - debianized</tt> </tt>
<a name="L192"></a><tt class="py-lineno">192</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L193"></a><tt class="py-lineno">193</tt> <tt class="py-line"><tt class="py-comment"># Revision 1.4 2003/01/12 00:20:04 ncq</tt> </tt>
<a name="L194"></a><tt class="py-lineno">194</tt> <tt class="py-line"><tt class="py-comment"># - fixed __author__</tt> </tt>
<a name="L195"></a><tt class="py-lineno">195</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L196"></a><tt class="py-lineno">196</tt> <tt class="py-line"><tt class="py-comment"># Revision 1.3 2003/01/12 00:17:44 ncq</tt> </tt>
<a name="L197"></a><tt class="py-lineno">197</tt> <tt class="py-line"><tt class="py-comment"># - fixed typo, added CVS keywords</tt> </tt>
<a name="L198"></a><tt class="py-lineno">198</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L199"></a><tt class="py-lineno">199</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> <a
href="Gnumed-module.html">Home</a> </th>
<!-- Tree link -->
<th> <a
href="module-tree.html">Trees</a> </th>
<!-- Index link -->
<th> <a
href="identifier-index.html">Indices</a> </th>
<!-- Help link -->
<th> <a
href="help.html">Help</a> </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 Jun 25 03:58:27 2012
</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>
|