Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Widgets

    PyConsole 0.1

    Download button

    No screenshots available
    Downloads: 570  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.2/5)
    19 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Yevgen Muntyan | More programs
    GPL / FREE
    April 18th, 2008, 05:52 GMT
    ROOT / Programming / Widgets

     Read user reviews (0)  Refer to a friend  Subscribe

    PyConsole description

    PyConsole is a PyGTK widget that exposes a Python console using a TextView widget.

    PyConsole is a PyGTK widget that exposes a Python console using a TextView widget. It runs on all gtk-supported platforms and features completion and history. PyConsole's expected use case is to be embedded and used to inspect other applications internals.

    This module 'runs' python interpreter in a TextView widget. The main class is Console, usage is:

    Console(locals=None, banner=None, completer=None, use_rlcompleter=True, start_script='') - it creates the widget and 'starts' interactive session; see the end of this file. If start_script is not empty, it pastes it as it was entered from keyboard.

    Console has "command" signal which is emitted when code is about to be executed. You may connect to it using console.connect or console.connect_after to get your callback ran before or after the code is executed.

    To modify output appearance, set attributes of console.stdout_tag and console.stderr_tag.

    Console may subclass a type other than gtk.TextView, to allow syntax highlighting and stuff, e.g.:

    console_type = pyconsole.ConsoleType(moo.edit.TextView)
    console = console_type(use_rlcompleter=False, start_script="import moonimport gtkn")


    This widget is not a replacement for real terminal with python running inside: GtkTextView is not a terminal. The use case is: you have a python program, you create this widget, and inspect your program interiors.

    Product's homepage

      


    TAGS:

    PyGTK widget | Python console | TextView widget | PyGTK | widget | Python

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM