当前位置: 首页 > 工具软件 > quixote > 使用案例 >

Quixote学习笔记(1)

缪征
2023-12-01

Running the Quixote Demos

Quixote comes with some demonstration applications in the demo directory. After quixote is installed (see INSTALL.txt for instructions), you can run the demos using the scripts located in the server directory.

Each server script is written for a specific method of connecting a quixote publisher to a web server, and you will ultimately want to choose the one that matches your needs. More information about the different server scripts may be found in the scripts themselves and in web-server.txt. To start, though, the easiest way to view the demos is as follows: in a terminal window, run server/simple_server.py, and in a browser, open http://localhost:8080.

The simple_server.py script prints a usage message if you run it with a '--help' command line argument. You can run different demos by using the '--factory' option to identify a callable that creates the publisher you want to use. In particular, you might try these demos:

simple_server.py --factory quixote.demo.mini_demo.create_publisher

or

simple_server.py --factory quixote.demo.altdemo.create_publisher


一开始看的是官网的 Tutorial,弄了很长时间,其间将Python和Quixote各版本都试过了,还是不成功。
正在灰心失望的时候,突然想起有人说,安装目录下的doc里有教程,拿来一试,居然看到了。哈哈!
下面是步骤,很简单,在Windows XP下:
  1. 打开doc下的demo.html文件,看第一段Running the Quixote Demos。
  2. 打开doc下的install.txt文件,看完。
  3. 安装Python,因为Quixote的要求,需要2.3版本以上,这次我装的是2.3.5。下载地址
  4. 修改环境变量PATH,在我的电脑-属性-高级里,添加Python的安装目录。
  5. 安装Quixote,这次我装的是2.4,安装的方法install.txt里有。下载地址
  6. 还是按照install.txt里写的,打开命令行,进入Quixote安装目录,输入python server/simple_server.py,或者进入server目录,输入simple_server.py,这时候没有任何反应,不要着急,打开IE或者Firefox浏览器,输入http://localhost:8080,看到什么了?这时候再返回命令行,又看到什么了?
  7. 呵呵,恭喜,已经成功运行一个Quixote程序啦!按照demo.html里的内容往下继续吧!
 类似资料: