Python Tutorial

 

Table of Contents

Generating Output

Run the Program to Generate Output

To start, we'll simply generate the output by running the program through the debugger without setting any breakpoints.

  1. Run the debugger Click on the "xmlrpcdemo.py" tab in the editor. From the menu, select Debug|Start (or <F5>). In the Debugging Options dialog, click OK to accept the defaults.
  2. View the Output Tab Notice the messages in the bottom left corner of the Komodo screen; these inform you of the status of the debugger. When the program has finished, program output is displayed in the Output pane. Click on the Output tab, if necessary, to display the pane.

Python Pointer "Why are there no articles in the Output?" If no article references are displayed in the output pane, no articles have been picked up by Meerkat containing the topic word (by default "python") specified on line 12 within the "time_period" criterion on line 26. Try increasing the number of hours or changing the topic word.

  1. View rendered HTML Click on the "Toggle HTML Preview" button to the right of the Output window. The HTML code is displayed in the Output pane; click on the links to read the articles.
  2. Save the Output To create a new HTML file that contains the HTML code in the Output pane, select File|New|New File. In the New File dialog, select the HTML Category, and the HTML 4.01 Template. Select all the text in the Output pane, the copy it to the new HTML file tab in the Editor pane. Select File|Save As to save the file with a unique name.

Top Previous Next