Commit before breaking everything
[matches/honours.git] / research / transmission_spectroscopy / simulator / pgu-0.18 / docs / gui6.html
diff --git a/research/transmission_spectroscopy/simulator/pgu-0.18/docs/gui6.html b/research/transmission_spectroscopy/simulator/pgu-0.18/docs/gui6.html
new file mode 100644 (file)
index 0000000..400af3e
--- /dev/null
@@ -0,0 +1,249 @@
+<html>
+<head>
+<title>Dialogs and Documents</title>
+<style type='text/css'><!--
+.sections { 
+       border: 1px solid black;
+       background: #fef790;
+        margin-left: 8px;
+       }
+       
+.sections th {
+       background: #fde42d; 
+       }
+       
+.sections .h1 {
+       padding: 2px;
+       padding-left: 0px;
+       }
+.sections .h2 {
+       padding: 2px;
+       padding-left: 16px;
+       }
+.sections .h3 {
+       padding: 2px;
+       padding-left: 32px;
+       }
+.sections .h4 {
+       padding: 2px;
+       padding-left: 48px;
+       }
+       
+.sections .h5 {
+       padding: 2px;
+       padding-left: 64px;
+       }
+.sections .h6 {
+       padding: 2px;
+       padding-left: 72px;
+       }
+
+.wiki h1, .wiki h2, .wiki h3, .wiki h4, .wiki h5, .wiki h6 {
+       border: 0px;
+       padding: 0px;
+       background: none;
+        border-bottom: 1px solid #bbbbbb;
+
+       }
+        
+.wiki div.h1 {
+    }
+.wiki div.h2 {
+    }
+    
+.wiki dt {
+    font-style: italic;
+    }
+    
+.wiki dd,dd,p.dd {
+    font-style: normal;
+    margin-left: 48px;
+    margin-top: 0px;
+    margin-bottom: 8px;
+    display: block;
+    }
+    
+.wiki h3 {
+    margin-left: 48px; 
+    }
+.wiki div.h3 {
+    margin-left: 48px;
+    }
+        
+.wiki code, .wiki pre {
+    background: #eeeeee;
+    padding: 4px;
+    border: 1px dashed #888888;
+    }
+    
+    
+.wiki table {
+    border-top: 1px solid #888888;
+    border-left: 1px solid #888888;
+    border-spacing: 0px; border-collapse: collapse;
+    }
+.wiki td {
+    border-bottom: 1px solid #888888;
+    border-right: 1px solid #888888;
+    padding: 3px;
+    }
+.wiki th {
+    background: #eeeeee;
+    border-bottom: 1px solid #888888;
+    border-right: 1px solid #888888;
+    padding: 3px;
+    }
+
+-->
+</style>
+
+</head>
+<body>
+<div align='center'>
+
+<table cellpadding=8><tr><td>
+<a href='http://www.imitationpickles.org/pgu/'><img src='skin/logo.gif' alt="Phil's pyGame Utilities" border=0></a>
+<td style='font-size:48px'>Documentation
+</table>
+
+</div>
+
+<hr width=500 align=center>
+
+<table width='100%'><tr><td valign=top width=120 style='padding-right:6px;border-right: 1px solid black;'>
+<a href='index.html'>Overview</a><br><br>
+<strong>Scripts</strong><br>
+<a href="tileedit.html">tileedit</a>
+ | <a href="leveledit.html">leveledit</a>
+ | <a href="tganew.html">tganew</a>
+ | <a href="levelfancy.html">levelfancy</a>
+<br><br>
+<strong>Reference</strong><br>
+<a href="algo.html">algo</a>
+ | <a href="ani.html">ani</a>
+ | <a href="engine.html">engine</a>
+ | <a href="fonts.html">fonts</a>
+ | <a href="high.html">high</a>
+ | <a href="html.html">html</a>
+ | <a href="layout.html">layout</a>
+ | <a href="text.html">text</a>
+ | <a href="timer.html">timer</a>
+ | <a href="vid.html">vid</a>
+<br><br>
+<strong>Tutorials</strong><br>
+<a href="tilevid1.html">1</a>
+ | <a href="tilevid2.html">2</a>
+ | <a href="tilevid3.html">3</a>
+ | <a href="tilevid4.html">4</a>
+ | <a href="tilevid5.html">5</a>
+<br><br>
+<strong>GUI&nbsp;Ref.</strong><br>
+<a href="gui.theme.html">theme</a>
+ | <a href="gui.style.html">style</a>
+ | <a href="gui.widget.html">widget</a>
+ | <a href="gui.surface.html">surface</a>
+ | <a href="gui.const.html">const</a>
+<br><br>
+<strong>Containers</strong><br>
+<a href="gui.container.html">container</a>
+ | <a href="gui.app.html">app</a>
+ | <a href="gui.table.html">table</a>
+ | <a href="gui.document.html">document</a>
+ | <a href="gui.area.html">area</a>
+<br><br>
+<strong>Forms</strong><br>
+<a href="gui.form.html">form</a>
+ | <a href="gui.group.html">group</a>
+<br><br>
+<strong>Widgets</strong><br>
+<a href="gui.basic.html">basic</a>
+ | <a href="gui.button.html">button</a>
+ | <a href="gui.input.html">input</a>
+ | <a href="gui.keysym.html">keysym</a>
+ | <a href="gui.slider.html">slider</a>
+ | <a href="gui.select.html">select</a>
+ | <a href="gui.misc.html">misc</a>
+<br><br>
+<strong>Other</strong><br>
+<a href="gui.menus.html">menus</a>
+ | <a href="gui.dialog.html">dialog</a>
+<br><br>
+<strong>Tutorials</strong><br>
+<a href="gui1.html">1</a>
+ | <a href="gui2.html">2</a>
+ | <a href="gui3.html">3</a>
+ | <a href="gui4.html">4</a>
+ | <a href="gui5.html">5</a>
+ | <a href="gui6.html">6</a>
+ | <a href="gui7.html">7</a>
+ | <a href="gui8.html">8</a>
+ | <a href="gui9.html">9</a>
+ | <a href="gui10.html">10</a>
+<br><br>
+
+<td valign=top style='padding-left:6px;'>
+
+<h1>Dialogs and Documents</h1>
+
+<div class='wiki'>
+<a name="">
+<div class="h1">
+
+
+</div>
+Documents layout widgets like words and images in a HTML document.  This
+example also demonstrates the ScrollBox container widget.
+<pre>
+  13:class AboutDialog(gui.Dialog):
+  14:    def __init__(self,**params):
+  15:        title = gui.Label("About Cuzco's Paint")
+  16:
+  17:        width = 400
+  18:        height = 200
+  19:        doc = gui.Document(width=width)
+  20:
+  21:        space = title.style.font.size(" ")
+  22:
+  23:        doc.block(align=0)
+  24:        for word in """Cuzco's Paint v1.0 by Phil Hassey""".split(" "):
+  25:            doc.add(gui.Label(word))
+  26:            doc.space(space)
+  27:        doc.br(space[1])
+  28:
+  29:        doc.block(align=-1)
+  30:        doc.add(gui.Image("cuzco.png"),align=1)
+  31:        for word in """Cuzco's Paint is a revolutionary new paint program it has all the awesome features that you need to paint really great pictures.""".split(" "):
+  32:            doc.add(gui.Label(word))
+  33:            doc.space(space)
+  34:        doc.br(space[1])
+  35:
+  36:        doc.block(align=-1)
+  37:        for word in """Cuzco's Paint will drive you wild!  Cuzco's Paint was made as a demo of Phil's Pygame Gui.  We hope you enjoy it!""".split(" "):
+  38:            doc.add(gui.Label(word))
+  39:            doc.space(space)
+  40:
+  41:        for i in range(0,10):
+  42:            doc.block(align=-1)
+  43:            for word in """This text has been added so we can show off our ScrollArea widget.  It is a very nice widget built by Gal Koren!""".split(" "):
+  44:                doc.add(gui.Label(word))
+  45:                doc.space(space)
+  46:            doc.br(space[1])
+  47:
+  48:        gui.Dialog.__init__(self,title,gui.ScrollArea(doc,width,height))
+</pre>
+The button CLICK event is connected to the dialog.open method.
+<pre>
+  60:    dialog = AboutDialog()
+  61:
+  62:    e = gui.Button("About")
+  63:    e.connect(gui.CLICK,dialog.open,None)
+</pre>
+
+</div>
+
+</table>
+
+<hr width=500 align=center>
+<div align='center'>all content (c) 2006 Phil Hassey - <a href='http://www.imitationpickles.org/pgu/'>Phil's pyGame Utilities</a></div>
+</body>
+</html>
\ No newline at end of file

UCC git Repository :: git.ucc.asn.au