Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added simple app

  • Loading branch information...
commit bfc495cccb226b42441dda31ae2f99bffc7e24f8 1 parent 2fb1af1
@d1ffuz0r authored
View
1  .gitignore
@@ -12,6 +12,7 @@ var
sdist
develop-eggs
.installed.cfg
+*.swp
# Installer logs
pip-log.txt
View
37 app.py
@@ -0,0 +1,37 @@
+#!/usr/bin/env python
+# -*- coding: utf8 -*-
+
+from flask import Flask, render_template
+
+app = Flask(__name__)
+
+
+@app.route('/')
+def index():
+ return render_template('index.html')
+
+
+@app.route('/introduction/')
+def introduction():
+ return render_template('introduction.html')
+
+
+@app.route('/download/')
+def download():
+ return render_template('download.html')
+
+
+@app.route('/quotes/')
+def quotes():
+ return render_template('quotes.html')
+
+@app.route('/screenshots/')
+def screenshots():
+ return render_template('screenshots.html')
+
+@app.route('/recentchanges/')
+def recentchanges():
+ return render_template('recentchanges.html')
+
+if __name__ == '__main__':
+ app.run(debug=True)
View
1  pipreq.txt
@@ -0,0 +1 @@
+flask
View
BIN  static/img/ss/AppView.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  static/img/ss/Debugger.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  static/img/ss/Explorer.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  static/img/ss/FrameDesign.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  static/img/ss/SalStat.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  static/img/ss/SourceEdit.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  static/img/ss/UMLView.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  static/img/ss/gnuMedGui_05June02.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  static/img/ss/pyshell.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  static/img/ss/pyshell_cropped.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  static/img/ss/raskroy-8bpp.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  static/img/ss/remotelinux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  static/img/ss/remotewin32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  static/img/ss/ss1.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  static/img/ss/ss2.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  static/img/ss/test1.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  static/img/ss/test7.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  static/img/ss/wxPythonOSX.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  static/img/ss/wxPythonUnicodeDemo.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  static/img/ss/ziarc_screenshot.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
10 download.html → templates/download.html
@@ -3,18 +3,18 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Download</title>
-<link href="static/css/styles.css" rel="stylesheet" type="text/css" />
+<link href="/static/css/styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.4/mootools-yui-compressed.js"></script>
-<script type="text/javascript" src="static/js/javascript.js"></script>
+<script type="text/javascript" src="/static/js/javascript.js"></script>
</head>
<body>
<div id="container">
<div id="header">
<h1><a href="#">Design Instruct: Clean, Classy Web Template</a></h1>
<ul id="nav">
- <li><a href="index.html"><span>Home</span></a></li>
- <li><a href="introduction.html"><span>About</span></a></li>
- <li class="current"><a href="download.html"><span>Download</span></a></li>
+ <li><a href="/"><span>Home</span></a></li>
+ <li><a href="/introduction/"><span>About</span></a></li>
+ <li class="current"><a href="/download/"><span>Download</span></a></li>
<!--<li><a href="#portfolio"><span>Portfolio</span></a></li>-->
<li><a href="#blog"><span>Blog</span></a></li>
<li><a href="#contact"><span>Contact</span></a></li>
View
24 index.html → templates/index.html
@@ -3,18 +3,18 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>wxPython</title>
-<link href="static/css/styles.css" rel="stylesheet" type="text/css" />
+<link href="/static/css/styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.4/mootools-yui-compressed.js"></script>
-<script type="text/javascript" src="static/js/javascript.js"></script>
+<script type="text/javascript" src="/static/js/javascript.js"></script>
</head>
<body class="index">
<div id="container">
<div id="header">
<h1><a href="#">Design Instruct: Clean, Classy Web Template</a></h1>
<ul id="nav">
- <li class="current"><a href="index.html"><span>Home</span></a></li>
- <li><a href="introduction.html"><span>About</span></a></li>
- <li><a href="download.html"><span>Download</span></a></li>
+ <li class="current"><a href="/"><span>Home</span></a></li>
+ <li><a href="/introduction/"><span>About</span></a></li>
+ <li><a href="/download/"><span>Download</span></a></li>
<!--<li><a href="#portfolio"><span>Portfolio</span></a></li>-->
<li><a href="#blog"><span>Blog</span></a></li>
<li><a href="#contact"><span>Contact</span></a></li>
@@ -48,20 +48,20 @@ <h2 id="why-us">Why Choose wxPython?</h2>
<div id="main">
<div id="left">
<h2 id="left-heading">Our Services</h2>
- <h3>Web Design</h3>
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vestibulum imperdiet hendrerit. Quisque tincidunt aliquam justo, eu volutpat odio tempus nec. Fusce semper tortor a tellus ornare sed consequat diam...</p>
- <a class="read-more" href="#readmore">Read More</a>
+ <h3>Quotes</h3>
+ <p>Here's what people are saying about wxPython...</p>
+ <a class="read-more" href="/quotes/">Read More</a>
<h3>Identity and Branding</h3>
- <p>Quisque tincidunt aliquam justo, eu volutpat odio tempus nec. Fusce semper tortor a tellus ornare sed consequat diam elementum. Quisque tincidunt aliquam justo, eu volutpat odio tempus nec. Fusce semper...</p>
- <a class="read-more" href="#readmore">Read More</a>
+ <p>We have had a lot of questions on the newsgroup asking how to go about learning wxPython. This page gives some pointers on how to do just that.</p>
+ <a class="read-more" href="http://wiki.wxpython.org/How_to_Learn_wxPython">Read More</a>
<h3>Search Engine Optimization</h3>
<p>Quisque tincidunt aliquam justo, eu volutpat odio tempus nec. Fusce semper tortor a tellus ornare sed consequat diam elementum. Quisque tincidunt aliquam justo, eu volutpat odio tempus nec. Fusce semper...</p>
<a class="read-more" href="#readmore">Read More</a> </div>
<div id="mid">
<h2 id="mid-heading">Latest Projects</h2>
<img src="static/img/mid_latest01.png" width="310" height="173" alt="Devise Function" />
- <p>Integer nec augue ac est semper pulvinar. Aenean luctus, leo in tincidunt mattis, enim diam convallis tellus, in vulputate enim tortor quis nisl. Curabitur nibh magna,</p>
- <a class="read-more" href="#readmore">Read More</a> <img src="static/img/mid_latest02.png" width="310" height="173" alt="Latest 02" />
+ <p>Some screenshots of appications when use wxPython library</p>
+ <a class="read-more" href="/screenshots/">Read More</a> <img src="static/img/mid_latest02.png" width="310" height="173" alt="Latest 02" />
<p>Integer nec augue ac est semper pulvinar. Aenean luctus, leo in tincidunt mattis, enim diam convallis tellus, in vulputate enim tortor quis nisl. Curabitur nibh magna,</p>
</div>
<div id="right">
View
10 introduction.html → templates/introduction.html
@@ -3,18 +3,18 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>What is wxPython?</title>
-<link href="static/css/styles.css" rel="stylesheet" type="text/css" />
+<link href="/static/css/styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.4/mootools-yui-compressed.js"></script>
-<script type="text/javascript" src="static/js/javascript.js"></script>
+<script type="text/javascript" src="/static/js/javascript.js"></script>
</head>
<body>
<div id="container">
<div id="header">
<h1><a href="#">Design Instruct: Clean, Classy Web Template</a></h1>
<ul id="nav">
- <li><a href="index.html"><span>Home</span></a></li>
- <li class="current"><a href="introduction.html"><span>About</span></a></li>
- <li><a href="download.html"><span>Download</span></a></li>
+ <li><a href="/"><span>Home</span></a></li>
+ <li class="current"><a href="/introduction/"><span>About</span></a></li>
+ <li><a href="/download/"><span>Download</span></a></li>
<!--<li><a href="#portfolio"><span>Portfolio</span></a></li>-->
<li><a href="#blog"><span>Blog</span></a></li>
<li><a href="#contact"><span>Contact</span></a></li>
View
93 templates/quotes.html
@@ -0,0 +1,93 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>What is wxPython?</title>
+<link href="/static/css/styles.css" rel="stylesheet" type="text/css" />
+<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.4/mootools-yui-compressed.js"></script>
+<script type="text/javascript" src="/static/js/javascript.js"></script>
+</head>
+<body>
+<div id="container">
+ <div id="header">
+ <h1><a href="#">Design Instruct: Clean, Classy Web Template</a></h1>
+ <ul id="nav">
+ <li><a href="/"><span>Home</span></a></li>
+ <li><a href="/introduction/"><span>About</span></a></li>
+ <li><a href="/download/"><span>Download</span></a></li>
+ <!--<li><a href="#portfolio"><span>Portfolio</span></a></li>-->
+ <li><a href="#blog"><span>Blog</span></a></li>
+ <li><a href="#contact"><span>Contact</span></a></li>
+ </ul>
+ </div>
+ <div id="main">
+ <div id="doc">
+ <h2 id="left-heading">Our Services</h2>
+ <ul>
+
+<font size="-1" style="font-family: sans-serif;">
+
+<b>"Why the hell hasn't wxPython become the standard GUI for Python yet?"</b><br>
+<div align="right">-- Eric S. Raymond </div>
+
+<p>
+<b>wxPython is the best and most mature cross-platform GUI toolkit, given a
+number of constraints. The only reason wxPython isn't the standard
+Python GUI toolkit is that Tkinter was there first.</b><br>
+</p><div align="right">-- Guido van Rossum</div>
+
+<p>
+<b>"Tkinter is dead, Java is dead, wxPython rules! That's all there is to say."</b><br>
+</p><div align="right">-- Robert Roebling </div>
+
+<p>
+<b>"I've written some rather involved applications with Python/Tkinter. wxPython beats it hands down... The widgets are better (being based on GTK for Linux) and the class setup is immediately useable. wxPython gives me a good reason to never even worry about using Java."</b><br>
+</p><div align="right">-- Aaron Rhodes</div>
+
+<p>
+<b>"The Python community needs to give up on Tcl and come join us. wxPython is wonderful stuff."</b><br>
+</p><div align="right">-- David Priest</div>
+
+
+<p>
+<b>"BTW, great work! I've definitively switched from Tk. I work on Win32, anybody who works on Win32 should switch!"</b><br>
+</p><div align="right">-- Michel Orengo</div>
+
+<p>
+<b>I have just picked myself up off the floor having looked at the wxHTML stuff in the new beta! wxPython is moving from <i><u>excellent</u></i> to <i><u>completely awesome</u></i> very quickly indeed.
+</b><br>
+</p><div align="right">-- Sean McGrath</div>
+
+<p>
+<b>Thanks for such fantastic work on wxPython. As a newcomer to
+Python the power of this GUI library blows me away. I will never
+use anything else.
+</b><br>
+</p><div align="right">-- Mark Evans</div>
+
+<p>
+<b>This toolkit has transformed the way I work.
+</b><br>
+</p><div align="right">-- Dr. Daniel B. Koch </div>
+
+
+</font>
+</ul>
+ </div>
+ </div>
+</div>
+<div id="footer">
+ <div id="footer-inside"> <img style="float:left; clear:both;" src="static/img/footer_social_media.png" width="153" height="60" alt="social media" />
+ <ul id="foot-nav">
+ <li><a href="index.html"><span>Home</span></a></li>
+ <li class="current"><a href="introduction.html"><span>About</span></a></li>
+ <li><a href="download.html"><span>Download</span></a></li>
+ <li><a href="#portfolio"><span>Portfolio</span></a></li>
+ <li><a href="#blog"><span>Blog</span></a></li>
+ <li><a href="#contact"><span>Contact</span></a></li>
+ </ul>
+ <p id="footer-logo"><a href="#">wxPython</a><span>Copyright &copy; 2010 Design Instruct. All rights reserved.</span></p>
+ </div>
+</div>
+</body>
+</html>
View
3,910 templates/recentchanges.html
3,910 additions, 0 deletions not shown
View
126 templates/screenshots.html
@@ -0,0 +1,126 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>What is wxPython?</title>
+<link href="/static/css/styles.css" rel="stylesheet" type="text/css" />
+<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.4/mootools-yui-compressed.js"></script>
+<script type="text/javascript" src="/static/js/javascript.js"></script>
+</head>
+<body>
+<div id="container">
+ <div id="header">
+ <h1><a href="#">Design Instruct: Clean, Classy Web Template</a></h1>
+ <ul id="nav">
+ <li><a href="/"><span>Home</span></a></li>
+ <li><a href="/introduction/"><span>About</span></a></li>
+ <li><a href="/download/"><span>Download</span></a></li>
+ <!--<li><a href="#portfolio"><span>Portfolio</span></a></li>-->
+ <li><a href="#blog"><span>Blog</span></a></li>
+ <li><a href="#contact"><span>Contact</span></a></li>
+ </ul>
+ </div>
+ <div id="main">
+ <div id="doc">
+ <h2 id="left-heading">Our Services</h2>
+<p>
+Here is a screen shot of the "minimal" wxPython application:</p><p>
+<img src="/static/img/ss/test1.gif" width="160" height="100" alt="" border="0">
+</p><p>
+Okay, so it is <b>very</b> minimal, but it is small enough that the source should be understandable without somebody holding your hand... Take a <a href="test1.py.html">peek</a>.
+</p><p></p><hr><p>
+
+And this is an updated version of the previous program, that displays the size and position in controls rather than printing them. Also uses Dialog Units.
+
+</p><p>
+<img src="/static/img/ss/test7.gif" width="211" height="146" alt="" border="0">
+
+</p><p>
+And here is the <a href="test7.py.html">source</a>.
+</p>
+
+<p></p><hr><p>
+
+Here's a shot of PyShell (a wxPython window running an interactive Python interpreter within it) showing that you can interactively create and manipulate objects. Also notice the terminal window in the background where I installed the RPM and launched pyshell. (Yes, that's all there is to it!)
+
+</p><p>
+<img src="/static/img/ss/pyshell.png" width="767" height="659" alt="" border="0">
+
+</p><p></p><hr><p>
+This is the Unicode sample in the wxPython demo:
+</p><p>
+<img src="/static/img/ss/wxPythonUnicodeDemo.jpg" width="800" height="600" alt="" border="0">
+
+</p><p></p><hr><p>
+And here is a screenshot of the demo running on the Mac.
+</p><p>
+<img src="/static/img/ss/wxPythonOSX.png" width="829" height="669" alt="" border="0">
+
+</p><p></p><hr><p>
+
+Here are some screen shots from <a href="http://boa-constructor.sourceforge.net/">Boa Constructor</a>. Not only do they show off Boa, but they show many of the capabilities of wxPython since that is what Boa uses for its GUI.
+</p><p>
+<img src="/static/img/ss/AppView.png" width="557" height="539" alt="" border="0">
+</p><p>
+<img src="/static/img/ss/Explorer.png" width="587" height="433" alt="" border="0">
+</p><p>
+<img src="/static/img/ss/SourceEdit.png" width="616" height="433" alt="" border="0">
+</p><p>
+<img src="/static/img/ss/FrameDesign.png" width="800" height="573" alt="" border="0">
+</p><p>
+<img src="/static/img/ss/Debugger.png" width="800" height="434" alt="" border="0">
+</p><p>
+<img src="/static/img/ss/UMLView.jpg" width="671" height="791" alt="" border="0">
+
+</p><p></p><hr><p>
+
+Here are various screenshots of wxPython apps developed by some folks on the wxPython-users mail list. (<b>NOTE</b>: some images have been resized slightly.) If you have a screen shot you would like to see here then just send it my way.
+
+</p><p>
+<img src="/static/img/ss/ss1.jpg" width="802" height="602" alt="" border="0">
+</p><p>
+<img src="/static/img/ss/ss2.jpg" width="803" height="603" alt="" border="0">
+</p><p>
+<img src="/static/img/ss/remotewin32.png" width="450" height="351" alt="" border="0">
+<img src="/static/img/ss/remotelinux.png" width="463" height="378" alt="" border="0">
+</p><p>
+<img src="/static/img/ss/gnuMedGui_05June02.png" width="833" height="612" alt="" border="0">
+</p><p>
+<img src="/static/img/ss/SalStat.png" width="800" height="630" alt="" border="0">
+</p><p>
+<img src="/static/img/ss/raskroy-8bpp.png" width="671" height="612" alt="" border="0">
+</p><p>
+<img src="/static/img/ss/ziarc_screenshot.jpg" width="750" height="600" alt="" border="0">
+</p><p></p><hr><p>
+And finally, here are some links to screenshots of wxPython apps out in the wild web:
+</p><p>
+</p><ul>
+ <li><a href="http://www.sensi.org/~ak/pyslsk/">PySoulSeek</a>: A GUI for the SoulSeek P2P network</li>
+ <li><a href="http://ipodder.sourceforge.net/screenshots/index.php">iPodder</a>: a cross platform podcast receiver</li>
+ <li>[Please send me links...]
+</li></ul>
+
+<p></p><hr><p>
+
+The old <a href="wxpshots.php" target="_top">Screen shots</a> are still available too.
+</p><p>
+
+</p>
+ </div>
+ </div>
+</div>
+<div id="footer">
+ <div id="footer-inside"> <img style="float:left; clear:both;" src="static/img/footer_social_media.png" width="153" height="60" alt="social media" />
+ <ul id="foot-nav">
+ <li><a href="index.html"><span>Home</span></a></li>
+ <li class="current"><a href="introduction.html"><span>About</span></a></li>
+ <li><a href="download.html"><span>Download</span></a></li>
+ <li><a href="#portfolio"><span>Portfolio</span></a></li>
+ <li><a href="#blog"><span>Blog</span></a></li>
+ <li><a href="#contact"><span>Contact</span></a></li>
+ </ul>
+ <p id="footer-logo"><a href="#">wxPython</a><span>Copyright &copy; 2010 Design Instruct. All rights reserved.</span></p>
+ </div>
+</div>
+</body>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.