Home
        A4 - Wingware Python IDE
         Contents
1.           wildcard filename          wpu          wildcard   filename          zip          wildcard filename          tgz          wildcard   filename          tar gz          wildcard filename          ncb      C wildcard   filename          bsc          wildcard filename          sbr          wildcard     filename                    wildcard filename                  C wildcard     206    filename                     wildcard filename          svn base          wildcard   filename         coverage          wildcard directory        __py    cache__          wildcard directory         bzr          wildcard    directory        CVS          wildcard directory         hg      C wildcard   directory         git          wildcard directory         svn        wildcard   directory        _svn          wildcard directory         xvpics            u   Python Files  type        text x python          mime type        text x cython            wildcard   filename                    wildcard filename                  C wildcard    filename                     wildcard filename          svn base          wildcard   filename         coverage          wildcard directory        __py    cache__         wildcard directory       bzr    C wildcard    directory        CVS          wildcard directory         hg      C wildcard   directory         git          wildcard directory         svn          wildcard   directory        _svn          wildcard directory         xvpics           e Reloading   
2.       15  When using Stackless Python  overriding stackless tasklet __call__ without  calling the Wing debugger   s __call__ will break the debugger     Integrated Version Control    Wing IDE ships with integrated support for the Subversion  Mercurial  Bazaar  Git   CVS  and Perforce version control systems  Version control operations can be accessed  with a menu on the main menubar  context menus in the editors and Project view  and  a tool available from the Tools menu     By default Wing auto detects which version control system is in use for your project  and assigns a single active system for project wide operations such as status  update  or  commit  However  when right clicking in the editor or Project view  the appropriate  version control system is used even if this is different from the one defined for the project  as a whole     The name of the menu in the menu bar and the tool in the Tools menu changes to  match the version control system that Wing is using for the project as a whole  Which  version control systems will be considered for projects can be controlled by enabling or  disabling each one in the Version Control preferences group     Note that version control operations are directory based  just as they are on the com   mand line  and most operations are applied recursively to sub directories and their files   This is true even if those sub directories or files are not visible in the Project view in  Wing     14 1  Version Control Tool Panel    The versio
3.       Qt    Network        from PyQt4 import QtNetwork        Use sqlite dotfile locking    Use slower  dotfile locking for sqllite databases to work around buggy remote file servers   Only needed if the user cache directory is on a remote file system or can be accessed via  a remote file system  It is recommended that the user cache directory be on the local  file system for performance reasons     Internal Name   pysource use sqllite dotfile locking  Data Specification    lt boolean  0 or 1 gt   Default Value     False    Network    HTTP Proxy Server    260    Allows manual configuration of an http proxy to be used for feedback  bug reports  and  license activation  all of which result in Wing connecting to wingware com via http   Leave user name and password blank if not required     Internal Name    main  http proxy  Data Specification     None or  tuple length 4 of   lt type str gt    lt type int gt    lt type str gt    lt type str gt    Default Value     None    IDE Extension Scripting    Search Path    Specifies the directories in which Wing will look for user defined scripts that extend the  functionality of the IDE itself  The directory names may contain environment variables  in the   envname  form  Use   WING PROJECT_DIR  for the project directory For  each directory  Wing will load all found Python modules and packages  treating any  function whose name starts with a letter  not _ or _  as a script provided command   Extension scripts found in files within directo
4.      A file can be switched between transient and non transient mode by clicking on the stick  pin icon in the upper right of the editor area     Right click on the stick pin icon to navigate to files that were recently visited in the  associated editor or editor split  Blue items in the menu were visited in transient state  and black items were non transient  Note that this differs from the Recent area in the  File menu  which lists only non transient visits and includes visits for all editors and  editor splits     Transient files that are edited are also automatically converted to non transient mode     4 6  Auto completion    While typing in Python source code  Wing Personal and higher will display a context   appropriate auto completion list  To use it  type until the correct symbol is hilighted in  the list  or use the up down arrow keys  and then press the Tab key or double click on  an item  Wing will fill in the remaining characters for the source symbol  correcting any  spelling errors you might have made in the name     60    To alter which keys cause auto completion to occur  use the Auto completion Keys  preference  Ctrl click on the list to select multiple keys     To cancel out of the auto completion popup  press the Esc key or ctrl g  The auto   completer will also disappear when you exit the source symbol  for example  by pushing  space or any other character that can   t be contained in a source symbol   if you click  elsewhere on the surface of the source c
5.      Clear selected text    copy       Copy selected text Key Bindings  Normal  Ctrl Insert  VI VIM  Ctrl Insert  Emacs   Ctrl Insert  Brief  Ctrl Insert  Visual Studio  Ctrl Insert  OS X  Command C    cut       Cut selected text Key Bindings  Normal  Shift Delete  VI VIM  Shift Delete  Emacs   Shift Delete  Brief  Shift Delete  Visual Studio  Shift Delete  OS X  Command X    forward tab       349  Place a forward tab at the current cursor position in search or replace string Key Binding   Ctrl T  paste       Paste text from clipboard Key Bindings  Normal  Shift Insert  VI VIM  Shift Insert   Emacs  Shift Insert  Brief  Shift Insert  Visual Studio  Shift Insert  OS X  Ctrl y    20 5  Unit Testing Commands    Unit Testing Commands    Globally available commands defined for the unit testing manager  These commands  are available regardless of whether a testing manager is visible or has keyboard focus     abort tests     Abort any running tests   add testing file  add_current False     Add a file to the set of unit tests  Adds the current editor file if add_current True   Otherwise  asks the user to select a file     add testing files  locs None     Add a file or files to the set of unit tests  locs can be a list of filenames or locations or  a single filename or location  Adds the current editor file if locs is None     debug all tests       Debug all the tests in testing panel  Key Bindings  Normal  Ctrl Shift F6  VI VIM   Ctrl Shift F6  Emacs  Ctrl Shift F6  Brief  Ctrl Shift
6.      Debugger Run Marker Alpha  Select transparency of the text highlight used for the run position during debugging    Internal Name     debug  run marker alpha    188    Data Specification      None or  lt type int gt      Default Value     None    Syntax Formatting    Formatting options for syntax coloring in editors  Colors are relative to a white back   ground and will be transformed if the background color is set to a color other than  white     Internal Name      edit syntax formatting    Data Specification      dict  keys   lt type str gt   values   dict  keys   italic  back  fore  bold   va  ues   one of  None   lt type str gt    lt boolean  O or 1 gt        Default Value           Highlight Builtins  Highlight Python builtins    Internal Name     edit  highlight builtins    Data Specification      lt boolean  O or 1 gt     Default Value     189  True    Diff Color    Color to use on the source editor for differences during a diff merge session  The current  mark is drawn in a lighter version of the same color  The within difference change indi   cators are drawn transparently with the color set in the Text Selection Color preference     Internal Name    edit  diff color  Data Specification     tuple length 3 of   from 0 to 255    from 0 to 255    from 0 to 255    Default Value     129  212  129     Merged Diff Color    Color to use on the source editor for already merged differences during a diff merge  session  The current mark is drawn in a lighter version of the 
7.     Ctrl f  forward char   Action varies according to focus  Active Editor Commands   Move cursor forward one character   Toolbar Search Commands  Move forward one  character    Ctrl h  backward delete char   Action varies according to focus  Active Editor Com   mands  Delete one character behind the cursor  or the current selection if not empty     Toolbar Search Commands  Delete character behind the cursor    Ctrl k  kill line   Kill rest of line from cursor to end of line  and place it into the  clipboard with any other contiguously removed lines  End of line is removed only if  there is nothing between the cursor and the end of the line     Ctrl n  next line   Move to screen next line  optionally repositioning character within  line     same    to leave in same horizontal position     start    at start     end    at end  or    fnab     for first non blank char     Ctrl p  previous line   Move to previous screen line  optionally repositioning character  within line  same    to leave in same horizontal position     start    at start     end    at end  or   fnb    for first non blank char     Ctrl space  show autocompleter   Show the auto completer for current cursor posi   tion    Ctrl v  forward page   Move cursor forward one page    Ctrl y  paste   Action varies according to focus  Active Editor Commands  Paste  text from clipboard   Search Manager Instance Commands  Paste text from clipboard    Toolbar Search Commands  Paste from clipboard    Delete  forward delete char 
8.     the text selected on the current editor  if any    These may evaluate to an empty string when there is no current file name     3 8  Per file Properties    Per file properties can be set by right clicking on a source file and selecting the Prop   erties menu item in the popup  by right clicking on a file in the project view and  selecting File Properties  or by opening a file and using the Current File Proper   ties    item in the Source menu  For Debug and Python Settings  values entered here  will override any corresponding project wide values when the selected file is the current  file or the main entry point for debugging     Any string value for a property may contain environment and special variable references   as described in Variable Expansion     File Attributes    File Type    This property specifies the file type for a given file  overriding the type  determined automatically from its file extension and or content  This property is recom   mended only when the Extra File Types preference cannot be used to specify encoding  based on filename extension     Encoding    This can be used to specify the encoding with which a file will be saved   When it is altered for an already open file  Wing will offer to reload the file using the new  encoding  to only save subsequently using the new encoding  or to cancel the change   Choose to reload if the file was opened with the wrong encoding  For already open files   the encoding attribute change is only saved if the file
9.    Alt 7  initiate repeat 7   Enter a sequence of digits indicating number of times to  repeat the subsequent command or keystroke     Alt 8  initiate repeat 8   Enter a sequence of digits indicating number of times to  repeat the subsequent command or keystroke     392    Alt 9  initiate repeat 9   Enter a sequence of digits indicating number of times to  repeat the subsequent command or keystroke     Alt    replace string   Replace all occurrences of a string from the cursor position to  end of file     Alt B  backward word   Action varies according to focus  Active Editor Commands   Move cursor backward one word  Optionally  provide a string that contains the delimiters  to define which characters are part of a word  Gravity may be    start    or    end    to indicate  whether cursor is placed at start or end of the word   Toolbar Search Commands  Move  backward one word    Alt BackSpace  backward delete word   Action varies according to focus  Active  Editor Commands  Delete one word behind of the cursor   Toolbar Search Commands   Delete word behind the cursor    Alt Backslash  fold toggle   Toggle the current fold point    Alt D  forward delete word   Action varies according to focus  Active Editor Com   mands  Delete one word in front of the cursor   Toolbar Search Commands  Delete word  in front of the cursor    Alt Delete  backward delete word   Action varies according to focus  Active Editor  Commands  Delete one word behind of the cursor   Toolbar Search Commands  
10.    Conversion options for your file are given below the horizontal divider  The three tabs  are used to select the type of conversion desired  and each tab contains information about  the availability and action of that conversion  and a button to start the conversion  In  some of the conversion options  the indent size field shown in the indentation report is  made editable  to allow specification of the desired resulting indent size     Once conversion is complete  the indentation manager updates to display the new status  of the file  and action of any subsequent conversions     Conversions can be undone be moving to the converted source file and selecting Undo  from the Edit menu     72    4 11  Structural Folding    The editor supports optional structural folding for Python  C  C    Java  Javascript   HTML  Eiffel  Lisp  Ruby  and a number of other file formats  This allows you to visually  collapse logical hierarchical sections of your code while you are working in other parts  of the file     You can turn Structural Folding on and off as a whole with the Enable Folding pref   erence     The Fold Line Mode preference can be used to determine whether or not a horizontal  line is drawn at fold points  whether it is drawn above or below the fold point  and  whether it is shown when the fold point is collapsed or expanded  Fold Indicator  Style is used to select the look of the fold marks shown at fold points     Once folding is turned on  an additional margin appears to th
11.    Ctrl Shift KP_Next  forward page extend   Move cursor forward one page  adjust   ing the selection range to new position    Ctrl Shift K P_Page_ Down  forward page extend   Move cursor forward one page   adjusting the selection range to new position    Ctrl Shift K P_Page_Up  backward page extend   Move cursor backward one page   adjusting the selection range to new position    Ctrl Shift KP_Prior  backward page extend   Move cursor backward one page   adjusting the selection range to new position    382    Ctrl Shift KP_Right  forward word extend   Action varies according to focus  Ac   tive Editor Commands  Move cursor forward one word  adjusting the selection range to  new position  Optionally  provide a string that contains the delimiters to define which  characters are part of a word  Gravity may be    start    or    end    to indicate whether cursor  is placed at start or end of the word   Toolbar Search Commands  Move forward one  word  extending the selection    Ctrl Shift KP_Up  previous line extend   Move to previous screen line  adjusting  the selection range to new position  optionally repositioning character within line  same     to leave in same horizontal position     start    at start     end    at end  or    fnb    for first non   blank char     Ctrl Shift L  swap lines   Swap the line at start of current selection with the line that  follows it    Ctrl Shift Left  backward word extend   Action varies according to focus  Active  Editor Commands  Move curso
12.    Cut selected text   Search Manager Instance Commands  Cut selected text   Toolbar  Search Commands  Cut selection    Shift KP_Down  next line extend   Move to next screen line  adjusting the selection  range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start     end    at end  or    fnb    for first non blank char     Shift KP_End  end of line extend   Action varies according to focus  Active Editor  Commands  Move to end of current line  adjusting the selection range to new position    Toolbar Search Commands  Move to the end of the toolbar search entry  extending the  selection    Shift KP_Home  beginning of line text extend   Move to end of the leading white  space  if any  on the current line  adjusting the selection range to the new position  If  toggle is True  moves to the beginning of the line if already at the end of the leading  white space  and vice versa      Shift KP_Insert  paste   Action varies according to focus  Active Editor Commands   Paste text from clipboard   Search Manager Instance Commands  Paste text from clip   board   Toolbar Search Commands  Paste from clipboard    Shift KP_Left  backward char extend   Action varies according to focus  Active  Editor Commands  Move cursor backward one character  adjusting the selection range  to new position   Toolbar Search Commands  Move backward one character  extending  the selection    Shift KP_Next  forward page extend   Move
13.    Expand the current fold point Key Bindings  VI VIM  z o    fold expand more clicked       331    Expand the clicked fold point one more level  fold expand more current       Expand the current fold point one more level Key Bindings  Normal  Alt Down   VI VIM  Alt Down  Emacs  Alt Down  Brief  Alt Down  Visual Studio  Alt Down   OS X  Command kP_Add    fold toggle       Toggle the current fold point Key Bindings  Normal  Alt    VI VIM  Alt    Emacs   Alt    Brief  Alt    Visual Studio  Alt    OS X  Command K P_Divide    fold toggle clicked     Toggle the clicked fold point  force indent style to match file       Force the indent style of the editor to match the indent style found in the majority of  the file    force indent style to mixed       Force the indent style of the editor to mixed use of tabs and spaces  regardless of the  file contents    force indent style to spaces only      Force the indent style of the editor to use spaces only  regardless of file contents  force indent style to tabs only      Force the indent style of the editor to use tabs only  regardless of file contents  goto clicked symbol defn       Goto the definition of the source symbol that was last clicked on Key Bindings  Nor   mal  Ctri Left_Click  VI VIM  Ctrl Left_Click  Emacs  Ctrl Left_Click  Brief  Ctrl   Left_Click  Visual Studio  Ctrl Left_Click  OS X  Command Left_ Click    goto column  column  lt numeric modifier  default 0 gt    Move cursor to given column Key Bindings  VI VIM     goto 
14.    Shift Page_Up  backward page extend   Move cursor backward one page  adjusting  the selection range to new position    Shift Prior  backward page extend   Move cursor backward one page  adjusting the  selection range to new position    Shift Return  new line   Place a new line at the current cursor position    Shift Right  forward char extend   Action varies according to focus  Active Edi   tor Commands  Move cursor forward one character  adjusting the selection range to  new position   Toolbar Search Commands  Move forward one character  extending the  selection    Shift Tab  backward tab   Outdent line at current position    Shift Up  previous line extend   Move to previous screen line  adjusting the selection  range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start  end    at end  or    fnb    for first non blank char     Tab  tab key   Implement the tab key  the action of which is configurable by preference    Up  previous line   Move to previous screen line  optionally repositioning character  within line  same    to leave in same horizontal position     start    at start     end    at end  or   fnb    for first non blank char     Visual Esc  exit visual mode   Exit visual mode and return back to default mode    391    21 2  Emacs Personality    This section documents all the default key bindings for the Emacs keyboard personality   set by the Personality preference     Alt    execute p
15.    Stop debugging  Ctrl F8  start select line   Turn on auto select mode line by line  Ctrl F9  break clear all   Clear all breakpoints    Ctrl Home  start of document   Move cursor to start of document    482    Ctrl Insert  copy   Action varies according to focus  Active Editor Commands  Copy  selected text   Document Viewer Commands  Copy any selected text    Exceptions  Commands  Copy the exception traceback to the clipboard   Search Manager Instance  Commands  Copy selected text   Toolbar Search Commands  Cut selection    Ctrl K  forward delete word   Action varies according to focus  Active Editor Com   mands  Delete one word in front of the cursor   Toolbar Search Commands  Delete word  in front of the cursor    Ctrl KP_Add  zoom in   Zoom in  increasing the text display size temporarily by one  font size    Ctrl KP_Delete  forward delete word   Action varies according to focus  Active  Editor Commands  Delete one word in front of the cursor   Toolbar Search Commands   Delete word in front of the cursor    Ctrl KP_Down  next line   Move to screen next line  optionally repositioning char   acter within line     same    to leave in same horizontal position     start    at start     end    at  end  or    fnb    for first non blank char     Ctrl KP_End  end of document   Move cursor to end of document  Ctrl KP_Home  start of document   Move cursor to start of document    Ctrl KP_Insert  copy   Action varies according to focus  Active Editor Commands   Copy selected text   
16.    gui auto save before action    Data Specification      lt boolean  O or 1 gt     Default Value     Max Recent Items  Maximum number of items to display in the Recent menus     Internal Name     gui max recent files    Data Specification      from 3 to 200     Default Value     20    Always Use Full Path in Tooltips    Set to True to always show the full path of a file name in the tooltips shown from the  editor tabs and file selection menus  When False  the configured Source Title Style is  used instead     Internal Name     gui full path in tooltips    Data Specification      lt boolean  O or 1 gt     203  Default Value     True    e File Types    Extra File Types    This is a map from file extension or wildcard to mime type  It adds additional file type  mappings to those built into Wing IDE  File extensions can be specified alone without  dot or wildcard  for example    xcf    or using wildcards containing         and or          for  example    Makefile      The mime type to use for Python files is    text  x python        Internal Name   main extra mime types  Data Specification      dict  keys   lt type str gt   values   text x smalltalk  text x    sql  text x pov  text x ave  text x pl sql  text x bash  text x   lua source  text x eiffel  text x vxml  text xml  text x   errorlist  text x caml  text x octave  text x erlang  text x   php source  text x cython  application x tex  text x dos    batch  text x bullant  text x baan  text x python  text x    mako  text x mm
17.   1  plus a number  limits to that num   ber of matches per line    rather than as a whole   regex    Treat search string as a regular expression    repeat replace  repeat  lt numeric modifier  default 1 gt      Repeat the last query replace or range replace operation on the current line  The first  match is replaced without confirmation  Key Bindings  VI VIM   amp     replace char  line_mode    multiline     num  lt numeric modifier  default 1 gt      Replace num characters with given character  Set line_mode to multiline to allow replac   ing across lines  extend to replace on current line and then extend the line length  and  restrict to replace only if enough characters exist on current line after cursor position   Key Bindings  VI VIM  r invokes replace char line mode  restrict        replace string  search_string  replace_string     Replace all occurrences of a string from the cursor position to end of file  Key Bindings   Normal  Alt    Emacs  Alt    Visual Studio  Alt      replace string regex  search_string  replace_string     Replace all occurrences of a string from the cursor position to end of file  The search  string is treated as a regular expression  Key Bindings  Normal  Ctrl Alt    Emacs   Ctrl Alt    Visual Studio  Ctrl Alt      save buffer      Save the current text file to disk   set readonly      Set editor to be readonly  This cannot be done if the editor contains any unsaved edits   set writable       Set editor to be writable  This can be used to overr
18.   4 6   4 9     Syntax Colorization   Right click Editor Menu  Navigating Source   File status and read only files  Transient vs  non Transient Editors    Auto completion       Source Assistant  User defined Bookmarks  Code Snippets    4 10    4 11   4 12   4 13   4 14   4 15     4 17    User Interface   Contexts   Key Bindings   Execution and Data Entry  Auto completion   Snippet Syntax   Indentation and Line Endings  Cursor Placement   Snippet Directory Layout   File Types   Contexts   Configuration   Commands   Scripting Snippets     Indentation   4 10 1  How Indent Style is Determined  4 10 2  Indentation Preferences  4 10 3  Indentation Policy   4 10 4  Auto Indent   4 10 5  The Tab Key   4 10 6  Checking Indentation  4 10 7  Changing Block Indentation  4 10 8  Indentation Manager  Structural Folding   Brace Matching   Support for files in  zip or  egg files  Keyboard Macros   Notes on Copy Paste  Auto reloading Changed Files      Auto save    Search Replace    Pile  5 4     Toolbar Quick Search  Keyboard driven Mini Search Replace  Search Tool    Search in Files Tool    5 4 1  Replace in Multiple Files   5 5  Find Points of Use   5 6  Wildcard Search Syntax  Refactoring   6 1  Rename Symbol   6 2  Move Symbol   6 3  Extract Function   Method  Diff Merge Tool   Diff Merge Options  Source Code Browser    8 1  Display Choices  8 1 2  Browsing Project Classes  8 1 3  Viewing Current Module  8 2  Display Filters  8 2 1  Filtering Scope and Source  8 2 2  Filtering Construct 
19.   Action varies according to focus  Active Editor Com   mands  Delete one character in front of the cursor   Toolbar Search Commands  Delete  character in front of the cursor    472    Down  next line   Move to screen next line  optionally repositioning character within  line     same    to leave in same horizontal position     start    at start     end    at end  or    fnb     for first non blank char     End  end of document   Move cursor to end of document  F1  Multiple commands  first available is executed    e show horizontal tools   Show the horizontal tool area  e minimize horizontal tools   Minimize the horizontal tool area  F11  frame up   Move up the current debug stack  F12  frame down   Move down the current debug stack  F2  Multiple commands  first available is executed      e show vertical tools   Show the vertical tool area    e minimize vertical tools   Minimize the vertical tool area    F3  search forward   Search again using the search manager   s current settings in  forward direction    F4  goto selected symbol defn   Goto the definition of the selected source symbol  F5  debug continue   Continue  or start  running  to next breakpoint  F6  step over   Step over current execution point  F7  step into   Step into current execution point  or start debugging at first line  F8  step out   Step out of the current function or method  F9  Multiple commands  first available is executed    e break set   Set a new regular breakpoint on current line  e break clear   
20.   Activate the file menu for the editor     Ctrl 2  activate symbol option menu 1   Activate the lst symbol menu for the  editor     Ctrl 3  activate symbol option menu 2   Activate the 2nd symbol menu for the  editor     Ctrl 4  activate symbol option menu 3   Activate the 3rd symbol menu for the  editor     Ctrl 5  activate symbol option menu 4   Activate the 4th symbol menu for the  editor     Ctrl 6  activate symbol option menu 5   Activate the 5th symbol menu for the  editor     Ctrl 7 C  use lexer cpp   Force syntax highlighting for C C   source  Ctrl 7 H  use lexer html   Force syntax highlighting for HTML   Ctrl 7 M  use lexer makefile   Force syntax highlighting for make files  Ctrl 7 N  use lexer none   Use no syntax highlighting   Ctrl 7 P  use lexer python   Force syntax highlighting for Python source  Ctrl 7 S  use lexer sql   Force syntax highlighting for SQL   Ctrl 7 X  use lexer xml   Force syntax highlighting for XML files    Ctrl 8  recent document   Switches to previous document most recently visited in  the current window or window set if in one window per editor windowing mode     Ctrl 9  previous document   Move to the previous document alphabetically in the  list of documents open in the current window    Ctrl    indent to match   Indent the current line or selected region to match inden   tation of preceding non blank line    447    Ctrl A  select all   Select all text in the editor  Ctrl Alt B  search sel backward   Search backward using current selec
21.   Brief  Ctrl 4  Visual Studio  Ctrl 4  OS X  Command 4    activate symbol option menu 4       Activate the 4th symbol menu for the editor  Key Bindings  Normal  Ctrl 5  VI VIM   Ctrl 5  Emacs  Ctrl 5  Brief  Ctrl 5  Visual Studio  Ctrl 5  OS X  Command 5    activate symbol option menu 5       Activate the 5th symbol menu for the editor  Key Bindings  Normal  Ctrl 6  VI VIM   Ctrl 6  Emacs  Ctrl 6  Brief  Ctrl 6  Visual Studio  Ctrl 6  OS X  Command 6    backward char  wrap 1  repeat  lt numeric modifier  default 1 gt      Move cursor backward one character Key Bindings  Normal  Left  VI VIM  Left   Emacs  Left  Brief  Left  Visual Studio  Left  OS X  Option Up    backward char extend  wrap 1  repeat  lt numeric modifier  default 1 gt      313  Move cursor backward one character  adjusting the selection range to new position Key  Binding  Shift Left  backward char extend rect  wrap 1  repeat  lt numeric modifier  default 1 gt      Move cursor backward one character  adjusting the rectangular selection range to new  position Key Bindings  Normal  Shift Alt Left  VI VIM  Shift Alt Left  Emacs  Shift   Alt Left  Brief  Shift Alt Left  Visual Studio  Shift Alt Left  OS X  Ctrl Option Left    backward delete char  repeat  lt numeric modifier  default 1 gt      Delete one character behind the cursor  or the current selection if not empty  Key Bind   ings  Normal  BackSpace  VI VIM  BackSpace  Emacs  BackSpace  Brief  BackSpace   Visual Studio  BackSpace  OS X  Backspace    backward
22.   Create new editor in new  view when new  1     Ctrl X 3  split horizontally   Split current view horizontally   Ctrl X 4 A  add change log entry   Add a change log entry    Ctrl X 5 0  close window   Close the current window and all documents and panels  in it    Ctrl X 5 2  new document window   Create a new document window with same  documents and panels as in the current document window  if any  otherwise empty with  default panels     Ctrl X 5 3  new document window   Create a new document window with same  documents and panels as in the current document window  if any  otherwise empty with  default panels     Ctrl X 5 O  next window   Switch to the next window alphabetically by title    Ctrl X B  switch document   Switches to named document  Name may either be the  complete name or the last path component of a path name     Ctrl X Bracketleft  start of document   Move cursor to start of document  Ctrl X Bracketright  end of document   Move cursor to end of document  Ctrl X Ctrl C  quit   Quit the application     Ctrl X Ctrl F  open from keyboard   Open a file from disk using keyboard driven  selection of the file    Ctrl X Ctrl G  find symbol   Allow user to visit point of definition of a source symbol  in the current editor context by typing a fragment of the name    Ctrl X Ctrl O  open from project   Open a document from the project by typing a  fragment to match file names    Ctrl X Ctrl S  save   Save active document  Also close it if close is True     Ctrl X Ctrl 
23.   Ctrl    Emacs  Ctrl C C  Visual Studio   Ctrl K Ctrl C  OS X  Command        comment out toggle  style None     Comment out the selected lines  This command is not available if they lines are already  commented out  The style of commenting can be controlled with the style argument      indented    uses the default comment style indented at end of leading white space and  block    uses a block comment in column zero  If not given  the style configured with the  Editor   Block Comment Style preference is used     comment toggle  style None     Toggle commenting out of the selected lines  The style of commenting can be controlled  with the style argument     indented    uses the default comment style indented at end of  leading white space and    block    uses a block comment in column zero  If not given   the style configured with the Editor   Block Comment Style preference is used  Key  Bindings  Normal  Ctrl    Emacs  Ctrl C    Visual Studio  Ctrl K Ctril T  OS X   Command      convert indents to mixed  indent_size     Convert all lines with leading spaces to mixed tabs and spaces     329    convert indents to spaces only  indent_size    Convert all lines containing leading tabs to spaces only   convert indents to tabs only      Convert all indentation to use tab characters only and no spaces  evaluate file in shell  restart_shell None    Run the contents of the editor within the Python Shell  evaluate sel in debug probe  whole_lines None     Evaluate the current selection 
24.   Ctrl W j invokes move editor focus wrap False   Emacs  Ctrl   XO    move editor focus first      Move focus to first editor split Key Bindings  VI VIM  Ctrl W t  move editor focus last      Move focus to last editor split Key Bindings  VI VIM  Ctrl W b  move editor focus previous      Move focus to previous editor split Key Bindings  VI VIM  Ctrl W p  move focus       Move the keyboard focus forward within the Window to the next editable area Key  Binding  Shift F1    Wing Tips Commands    Commands for the Wing Tips tool  These are only available when the tool is visible and  has focus    wingtips close      Close the Wing Tips window  wingtips contents      Go to the Wing Tips contents page    wingtips next       304    Go to the next page in Wing Tips  wingtips next unseen      Go to a next unseen Wing Tips page  wingtips previous       Go to the previous page in Wing Tips    20 2  Project Manager Commands    Project Manager Commands    These commands act on the project manager or on the current project  regardless of  whether the project list has the keyboard focus     add current file to project      Add the frontmost currently open file to project Key Bindings  Normal  Ctrl Shift I   VI VIM  Ctrl Shift I  Emacs  Ctrl Shift I  Brief  Ctrl Shift I  Visual Studio  Ctrl Shift   I  OS X  Command Shift I    add directory to project  loc None  recursive True  filter          in   clude_hidden False  gui True     Add directory to project    add file to project      Add an exis
25.   Executable command to run Mercurial    Internal Name      versioncontrol hg executable    Data Specification      lt type str gt     Default Value     hg    e CVS    Active  When CVS version control support is active    Internal Name      versioncontrol cvs active    Data Specification       u   Always Active        always active       u   Not active        not   active       u   Active if used by project directories        active     if project dir         267    268    Default Value   active if project dir    CVS Executable  Executable command to run CVS    Internal Name    versioncontrol cvs executable  Data Specification    lt type str gt   Default Value   cvs    Extra global arguments  Extra arguments to pass to every command     Internal Name   versioncontrol cvs extra global args  Data Specification    lt type str gt   Default Value    Z3  e Perforce    Active  When Perforce version control support is active    Internal Name      versioncontrol perforce active    Data Specification       u   Always Active        always active       u   Not active        not   active       u   Active if used by project directories        active     if project dir       Default Value   not active    Perforce Executable  Executable command to run Perforce    Internal Name    versioncontrol perforce executable  Data Specification    lt type str gt   Default Value   p4  Extra global arguments    Extra arguments to pass to every command     Internal Name   versioncontrol perforce extra glo
26.   If toggle is True   moves to the beginning of the line if already at the end of the leading white space  and  vice versa   Key Bindings  Normal  Home  VI VIM  Home  Emacs  Home  Brief   Home  Visual Studio  Home    beginning of line text extend  toggle True     Move to end of the leading white space  if any  on the current line  adjusting the selection  range to the new position  If toggle is True  moves to the beginning of the line if already  at the end of the leading white space  and vice versa   Key Bindings  Normal  Shift   Home  VI VIM  Shift Home  Emacs  Shift Home  Brief  Shift Home  Visual Studio   Shift Home    beginning of screen line       315    Move to beginning of current wrapped line Key Bindings  VI VIM  g 0  beginning of screen line extend      Move to beginning of current wrapped line  extending selection  beginning of screen line text       Move to first non blank character at beginning of current wrapped line Key Bindings   VI VIM  g        beginning of screen line text extend       Move to first non blank character at beginning of current wrapped line  extending selec   tion    brace match       Match brace at current cursor position  selecting all text between the two and hilighting  the braces Key Bindings  Normal  Ctrl E  Emacs  Ctrl M  Visual Studio  Ctrl E  OS  X  Command B    cancel      Cancel current editor command  cancel autocompletion      Cancel any active autocompletion    case lower  repeat  lt numeric modifier  default 1 gt      Change c
27.   Move cursor forward one character   Toolbar Search Commands  Move forward  one character    Browse T  search char dir 1  pos 1  single_line 1    Search for the given char   acter  Searches to right if dir  gt  0 and to left if dir  lt  0  Optionally place cursor pos  characters to left or right of the target  e g   use  1 to place one to left   If repeat  gt  1   the Nth match is found  Set single_line 1 to search only within the current line     Browse Underscore  beginning of line text   Move to end of the leading white  space  if any  on the current line  If toggle is True  moves to the beginning of the line if  already at the end of the leading white space  and vice versa      Browse   Browse p  paste register pos  1  indent 1    Paste text from register  as before or after the current position  If the register contains only lines  then the lines  are pasted before or after current line  rather than at cursor   If the register contains  fragments of lines  the text is pasted over the current selection or either before or after  the cursor  Set pos   1 to paste after  or  1 to paste before  Set indent 1 to indent the    423    pasted text to match current line  Set cursor  1 to place cursor before lines or cursor 1  to place it after lines after paste completes     Browse    isearch sel forward persist 0  whole_word 1    Action varies accord   ing to focus  Active Editor Commands  Initiate incremental mini search forward from  the cursor position  using current selection
28.   OS X  Command R    replace again     Replace current selection with the search manager   replace and search       Replace current selection and search again  Key Bindings  Normal  Ctrl I  Emacs   Alt    Brief  Shift F6  Visual Studio  Ctrl I  OS X  Command Ctrl R    search       Bring up the search manager in search mode  Key Bindings  Normal  Alt F3  VI  VIM   Alt F 8  Emacs  Alt F3  Brief  Alt F3  Visual Studio  Alt F3  OS X  Option F3    search again  search_string      direction 1     Search again using the search manager   s current settings     348    search backward  search_string None     Search again using the search manager   s current settings in backward direction Key  Binding  Shift F 3    search forward  search _string         Search again using the search manager   s current settings in forward direction Key Bind   ing  F3    search sel     Search forward using current selection  search sel backward       Search backward using current selection Key Bindings  Normal  Ctrl Shift F3  VI VIM   Ctrl Shift F 3  Emacs  Ctrl Shift F 3  Brief  Ctrl Shift F3  Visual Studio  Ctrl Shift F3   OS X  Command Shift F3    search sel forward       Search forward using current selection Key Bindings  Normal  Ctrl F3  VI VIM  Ctrl   F3  Emacs  Ctrl F8  Brief  Ctrl F3  Visual Studio  Ctrl F3  OS X  Command F3    Search Manager Instance Commands    Commands for a particular search manager instance  These are only available when the  search manager has they keyboard focus     clear
29.   Termination mode may not be able to stop the debug process before it exits  and in  some cases may even fail to show any post mortem traceback at all  except as printed  to stderr in the debug process      Similarly  when working with wxPython  PyGTK  and similar environments that include  a catch all exception handler in C C   code  the At Process Termination mode will  fail to report any unexpected exceptions occurring during the main loop because those  exceptions do not actually lead to process termination     Immediately if Appear Unhandled    The debugger will attempt to detect unhan   dled exceptions as they are raised in your debug process  making it possible to view  the program state that led to the exception and to step through subsequently reached  finally clauses  This is done by looking up the stack for exception handlers written in  Python  and reporting only exceptions for which there is no matching handler     The Immediately if Appear Unhandled mode works well with wxPython  PyGTK   and in most other code where unexpected exceptions either lead to program termination  or are handled by catch all exception handlers written in C C   extension module code     In some cases  Wing   s unhandled exception detector can report normal handled ex   ceptions that are not seen outside of the debugger  This occurs when the exceptions  are handled in C C   extension module code  Wing can be trained to ignore these by  checking the Ignore this exception location check bo
30.   The  style of commenting can be controlled with the style argument     indented    uses the  default comment style indented at end of leading white space and    block    uses a block  comment in column zero  If not given  the style configured with the Editor   Block  Comment Style preference is used     380   Ctrl Pointer_Button1  goto clicked symbol defn   Goto the definition of the  source symbol that was last clicked on   Ctrl Prior  backward page   Move cursor backward one page   Ctrl Q  quit   Quit the application    Ctrl R  replace   Bring up the search manager in replace mode    Ctrl Return  new line   Place a new line at the current cursor position    Ctrl Right  forward word   Action varies according to focus  Active Editor Com   mands  Move cursor forward one word  Optionally  provide a string that contains the  delimiters to define which characters are part of a word  Gravity may be    start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move forward one word    Ctrl S  save   Save active document  Also close it if close is True     Ctrl Shift B  isearch sel backward   Initiate incremental mini search backward from  the cursor position  using current selection as the search string  Set persist False to do  the search but end the interactive search session immediately     Ctrl Shift C  delete line   Delete the current line or lines when the selection spans  multiple lines or given repeat is  gt  1    C
31.   To complete the operation  enter the name for the new function or method  select the  scope in which to define it  and press the Extract button     After it completes  the extract operation can be undone with the Revert button in the  Refactoring tool     Note that the extract operation currently cannot extract lines that contain return state   ments before the final line     Diff Merge Tool    Wing IDE Professional provides single and multi file difference and merge capabilities     To initiate a session  use the Diff Merge toolbar item  click to display a menu of options   or use the Difference and Merge menu item in the Source menu  You will be prompted  for any file or directory names in the status area at the bottom of the IDE window   Additional sessions can be started concurrently but only one session is current at a  given time  The same menus can be used to switch among multiple concurrent sessions   when there are two or more     Once a session is started  the selected files will be displayed side by side  one annotated  with A  and the other annotated with B   Use the newly revealed toolbar items to  move to the next or previous difference pair  to merge differences from one file into the  other  or to terminate the session  Navigation and merging is also possible with the key  bindings listed in the diff merge menu     In addition  a summary listing all changes is available from the diff merge icon displayed  at the top right of editors in the active session  Th
32.   Top level Commands    Application Control Commands    These are the high level application control commands   abandon changes  confirm True     Abandon any changes in the current document and reload it from disk  Prompts for  user to confirm the operation unless either there are no local changes being abandoned  or confirm is set to False     about application     Show the application wide about box  begin visited document cycle  move_back True     Start moving between documents in the order they were visited  Starts modal key  interaction that ends when a key other than tab is seen or ctrl is released  Key Binding   Ctrl Tab invokes begin visited document cycle move_back  True     check for updates       Check for updates to Wing IDE and offer to install any that are available    289    290    close  ignore_changes False  close_window False     Close active document  Abandon any changes when ignore_changes is True  Close  empty windows and quit if all document windows closed when close_window is True   Key Bindings  Normal  Ctrl F4  VI VIM  Ctrl F4  Emacs  Ctrl F4  Brief  Ctrl F4   Visual Studio  Ctrl F4  OS X  Command F4    close all  omit_current False  ignore_changes False  close_window False     Close all documents in the current window  or in all windows if in one window per editor  windowing policy  Leave currently visible documents  or active window in one window   per editor mode  if omit_current is True  Abandons changes rather than saving them  when ignore_change
33.   Trouble shooting Failure to Print    ailure to Open Filenames Containing Spaces    Preferences Reference    User Interface  Files    Editor   Debugger   Source Analysis   Network   IDE Extension Scripting   Version Control   Internal Preferences   Core Preferences   User Interface Preferences   Editor Preferences   Project Manager Preferences   Debugger Preferences   Source Analysis Preferences   Command Reference   20 1  Top level Commands  Application Control Commands  Dock Window Commands  Document Viewer Commands  Global Documentation Commands  Window Commands  Wing Tips Com    20 2  Project Manager Commands          Project Manager Commands  Project View Commands   20 3  Editor Commands  Editor Browse Mode Commands  Editor Insert Mode Commands  Editor Non Modal Commands  Editor Panel Commands  Editor Replace Mode Commands  Editor Split Commands  Editor Visual Mode Commands  Active Editor Commands  General Editor Commands       Bookmark View Commands   Snippet Commands   Snippet View Commands  20 4  Search Manager Commands   Toolbar Search Commands   Search Manager Commands   Search Manager Instance Commands  20 5  Unit Testing Commands   Unit Testing Commands  20 6  Version Control Commands   Subversion Commands   Git Commands   Bazaar Commands   C V S Commands   Mercurial Commands   Perforce Commands   Version Control Command Map  20 7  Debugger Commands   Debugger Commands   Debugger Watch Commands   Call Stack View Commands   Exceptions Commands       Breakpoint Vie
34.   approximate  similarequal  ifonlyif  implies  identical  radical  includedin  includes   intersection  union  logicaland  logicalor  partialderivative  function  leftarrow  upar   row  rightarrow  downarrow  blank  soliddiamond  checkerboard  ht  ff  cr  lf  nl  vt   lowrightcorner  uprightcorner  upleftcorner  lowleftcorner  crossinglines  horizlinescan1   horizlinescan3  horizlinescan5  horizlinescan7  horizlinescan9  leftt  rightt  bott  topt   vertbar  emspace  enspace  em3space  em4space  digitspace  punctspace  thinspace   hairspace  emdash  endash  signifblank  ellipsis  doubbaselinedot  onethird  twothirds   onefifth  twofifths  threefifths  fourfifths  onesixth  fivesixths  careof  figdash  leftangle   bracket  decimalpoint  rightanglebracket  marker  oneeighth  threeeighths  fiveeighths   seveneighths  trademark  signaturemark  trademarkincircle  leftopentriangle  rightopen   triangle  emopencircle  emopenrectangle  leftsinglequotemark  rightsinglequotemark   leftdoublequotemark  rightdoublequotemark  prescription  minutes  seconds  latincross   hexagram  filledrectbullet  filledlefttribullet  filledrighttribullet  emfilledcircle  emfille   drect  enopencircbullet  enopensquarebullet  openrectbullet  opentribulletup  opentribul   letdown  openstar  enfilledcircbullet  enfilledsqbullet  filledtribulletup  filledtribullet   down  leftpointer  rightpointer  club  diamond  heart  maltesecross  dagger  doubledag   ger  checkmark  ballotcross  musicalsharp  musicalflat 
35.   beginning of line text extend   Move to end of the leading white  space  if any  on the current line  adjusting the selection range to the new position  If  toggle is True  moves to the beginning of the line if already at the end of the leading  white space  and vice versa      Shift KP_Insert  paste   Action varies according to focus  Active Editor Commands     493    Paste text from clipboard   Search Manager Instance Commands  Paste text from clip   board   Toolbar Search Commands  Paste from clipboard    Shift KP_Left  backward char extend   Action varies according to focus  Active  Editor Commands  Move cursor backward one character  adjusting the selection range  to new position   Toolbar Search Commands  Move backward one character  extending  the selection    Shift KP_Next  forward page extend   Move cursor forward one page  adjusting  the selection range to new position    Shift KP_Page_Down  forward page extend   Move cursor forward one page  ad   justing the selection range to new position    Shift KP_Page_Up  backward page extend   Move cursor backward one page  ad   justing the selection range to new position    Shift KP_Prior  backward page extend   Move cursor backward one page  adjust   ing the selection range to new position    Shift KP_Right  forward char extend   Action varies according to focus  Active  Editor Commands  Move cursor forward one character  adjusting the selection range to  new position   Toolbar Search Commands  Move forward one character 
36.   close window   Close the current window and all documents and panels in it  Alt F5  run to cursor   Run to current cursor position    Alt F6  run failed tests   Re run all the previously failed tests  The tests are de   bugged when debug is True     Alt F7  run last tests   Run again the last group of tests that were run  The tests  are debugged when debug is True     Alt Home  fold collapse all   Collapse all fold points in the current file    Alt Left  visit history previous   Move back in history to previous visited editor  position    Alt Page_Down  fold expand all current   Expand the current fold point com   pletely    Alt Page_Up  fold collapse all current   Collapse the current fold point completely  Alt Return  new line   Place a new line at the current cursor position   Alt Right  visit history next   Move forward in history to next visited editor position  Alt Slash  fold toggle   Toggle the current fold point   Alt Up  fold collapse more current   Collapse the current fold point one more level    BackSpace  backward delete char   Action varies according to focus  Active Editor  Commands  Delete one character behind the cursor  or the current selection if not empty     Toolbar Search Commands  Delete character behind the cursor    Browse    filter next move   Filter the lines covered by the next cursor move com   mand through an external command and replace the lines with the result    Browse      set register   Set the register to use for subsequent cut copy pas
37.   copy must reproduce all copyright and other proprietary rights notices on or in the  Software Product     You may install your Software Product License only on computer systems and user  accounts that are used by you  the licensee  You may also make copies of the Software  Product License as necessary for backup and or archival purposes  No other copies or  installations may be made     All rights not expressly granted to you are retained by Wingware   2 1 NON COMMERCIAL USE LICENSES    Wingware provides Non Commercial Use licenses to the following types of users   a   publicly funded charities   b  universities  colleges  and other educational institutions   including  but not limited to elementary schools  middle schools  high schools  and    497    community colleges    c  students at any of these types of educational institutions   d   individuals or entities who are under contract by the above stated organizations and  using the Software Product exclusively for such charitable or educational clients  and   d  other individual users who use the Software Product for unpaid personal use only   for example  unpaid hobby  learning  or entertainment      Non Commercial Use licenses purchased by companies  organizations other than publicly  funded charities  government divisions  agencies  or offices  or any other individual or  entity deriving income  directly or indirectly  from their use of the Software Product are  invalid and may not be used until the license is upgraded
38.   e i18n module    The name of the gettext internationalized string database to  use when translating docstrings in this script  See below for more information     e _plugin    This indicates that the script is a plugin that can be selectively enabled  and disabled either according to IDE state or by the user in preferences  See below  for more information     Importing Other Modules    Scripts can import other modules from the standard library  wingapi  the API   and  even from Wing   s internals  However  because of the way in which Wing loads scripts   users should avoid importing one script file into another  If this is done  the module  loaded at the import will not be the same as the one loaded into the scripting manager   This happens because the scripting manager uniquifies the module name by prepending  internal_script_ so two entries in sys modules will result  In practice  this is not  always a problem except if global data at the top level of the script module is used as  a way to share data between the two script modules  Be sure to completely understand  Python   s module loading facility before importing one script into another     Internationalization and Localization    String literals and docstrings defined in script files can be flagged for translation using  the gettext system  To do this  the following code should be added before any string  literals are used     import gettext  _   gettext translation    scripts_example     fallback 1  gettext  _i118n_mo
39.   expand all classes  and  leave other fold points alone    Alt 1  set bookmark mark    1       Set a bookmark at current location on the editor   Mark is the project wide textual name of the bookmark     Alt 2  fold python classes   Fold up all Python classes but leave other fold points  alone    Alt 2  set bookmark mark    2       Set a bookmark at current location on the editor   Mark is the project wide textual name of the bookmark     Alt 3  fold python classes and defs   Fold up all Python classes  methods  and func   tions but leave other fold points alone    Alt 3  set bookmark mark    3       Set a bookmark at current location on the editor   Mark is the project wide textual name of the bookmark     Alt 4  set bookmark mark    4       Set a bookmark at current location on the editor   Mark is the project wide textual name of the bookmark     Alt 5  set bookmark mark    5       Set a bookmark at current location on the editor   Mark is the project wide textual name of the bookmark     Alt 6  set bookmark mark    6       Set a bookmark at current location on the editor   Mark is the project wide textual name of the bookmark     Alt 7  set bookmark mark    7       Set a bookmark at current location on the editor   Mark is the project wide textual name of the bookmark     Alt 8  set bookmark mark    8       Set a bookmark at current location on the editor   Mark is the project wide textual name of the bookmark     Alt 9  set bookmark mark    9       Set a bookmark at cur
40.   first available is executed      e enter fullscreen   Hide both the vertical and horizontal tool areas  and toolbar  saving previous state so it can be restored later with  exit_fullscreen    e exit fullscreen   Restore previous non fullscreen state of all tools and  tool bar    Shift F3  search backward   Search again using the search manager   s current settings  in backward direction    Shift F4  find points of use   Find points of use for a symbol  The symbol defaults  to the active selection     Shift F5  debug file   Start debugging the current file  rather than the main entry  point     Shift F5  search forward   Search again using the search manager   s current settings  in forward direction    Shift F6  replace and search   Replace current selection and search again   Shift F6  run all tests   Runs all the tests in testing panel     Shift F7  run current tests   Runs the current test or tests  if possible  The current    492    tests are determined by the current position in the active view  The tests are debugged  when debug is True     Shift F7  stop kbd macro   Stop definition of a keyboard macro  Shift F8  start select char   Turn on auto select mode character by character    Shift F9  Multiple commands  first available is executed      e break enable   Enable the breakpoint on the current line    e break disable   Disable the breakpoint on current line    Shift Home  beginning of line   Action varies according to focus  Active Editor  Commands  Move to beginni
41.   frame down   Move down the current debug stack    F2  Multiple commands  first available is executed      e show vertical tools   Show the vertical tool area    e minimize vertical tools   Minimize the vertical tool area  F3  search forward   Search again using the search manager   s current settings in  forward direction  F4  goto selected symbol defn   Goto the definition of the selected source symbol  F5  debug continue   Continue  or start  running  to next breakpoint  F6  step over   Step over current execution point  F7  step into   Step into current execution point  or start debugging at first line  F8  step out   Step out of the current function or method    F9  Multiple commands  first available is executed      e break set   Set a new regular breakpoint on current line    e break clear   Clear the breakpoint on the current line    Home  beginning of line   Action varies according to focus  Active Editor Com   mands  Move to beginning of current line  When toggle is True  moves to the end of  the leading white space if already at the beginning of the line  and vice versa    Toolbar  Search Commands  Move to the beginning of the toolbar search entry    Home  beginning of line text   Move to end of the leading white space  if any  on  the current line  If toggle is True  moves to the beginning of the line if already at the  end of the leading white space  and vice versa      ISO_Left_Tab  backward tab   Outdent line at current position  Insert  toggle overtype   Togg
42.   if Wing is started while operating via Remote Desktop Connection   performance is terrible  even after quitting the RDC session and working directly on the  machine that is running Wing  However  if Wing is started on the machine on which it  runs  performance is very lively on that machine and acceptable if switched to operating  via RDC without quitting Wing     6  If you are displaying Wing remotely via X11  try turning off anti aliased fonts by  placing this file in    fonts conf on the display machine and then restarting the X  server     7  If you are working on a multi core virtual machine and Wing runs slowly you  may be able to improve performance by setting the processor affinity for Wing  This  is done with schedtool  a Oxi  e wing4 0 on Linux  the schedtool package needs  to be installed if not already present  and with START  AFFINITY 01  Wing IDE    C  Program Files Wing IDE 4 0 bin wing exe  on Windows  Although Wing runs  on only one core  this technique has been reported to improve performance     18 6  Trouble shooting Failure to Open Filenames  Containing Spaces    On Windows  When using Windows File Types or Open With to cause Python files  to be opened with Wing  some versions of Windows set up the wrong command line for  opening the file  You can fix this using regedt32 exe  regedit exe  or similar tool to edit  the following registry location     HKEY_LOCAL_MACHINE SOFTWARE Classes Applications wing exe shell open command    180    The problem is that
43.   on  the current line  If toggle is True  moves to the beginning of the line if already at the  end of the leading white space  and vice versa      Home  cursor home   Bring cursor to start of line  to start of visible area  or to start  of document each successive consecutive invocation of this command     Home  start of document   Move cursor to start of document  Home Home Home  start of document   Move cursor to start of document  ISO_Left_Tab  backward tab   Outdent line at current position    Insert  paste   Action varies according to focus  Active Editor Commands  Paste  text from clipboard   Search Manager Instance Commands  Paste text from clipboard    Toolbar Search Commands  Paste from clipboard    Insert  toggle overtype   Toggle status of overtyping mode  KP_Add  copy line   Copy the current lines s  to clipboard    KP_Delete  forward delete char   Action varies according to focus  Active Editor    489  Commands  Delete one character in front of the cursor   Toolbar Search Commands   Delete character in front of the cursor    KP_Down  next line   Move to screen next line  optionally repositioning character  within line     same    to leave in same horizontal position     start    at start     end    at end  or   fnb    for first non blank char     KP_End  end of line   Action varies according to focus  Active Editor Commands   Move to end of current line  Toolbar Search Commands  Move to the end of the toolbar  search entry    KP_Enter  new line   Place a new li
44.   or fnb    for first non blank char  Key Bindings  VI VIM    invokes necxt line in   file cursor    fnb        open line       Open the current line by inserting a newline after the caret Key Bindings  Emacs   Ctrl O    paste       Paste text from clipboard Key Bindings  Normal  Shift Insert  VI VIM  Shift Insert   Emacs  Shift Insert  Brief  Shift Insert  Visual Studio  Shift Insert  OS X  Ctrl y    paste register  pos 1  indent 0  cursor  1     Paste text from register as before or after the current position  If the register contains  only lines  then the lines are pasted before or after current line  rather than at cursor    If the register contains fragments of lines  the text is pasted over the current selection  or either before or after the cursor  Set pos   1 to paste after  or  1 to paste before  Set  indent 1 to indent the pasted text to match current line  Set cursor  1 to place cursor    before lines or cursor 1 to place it after lines after paste completes  Key Bindings   VI VIM  p    previous line  cursor    same     repeat  lt numeric modifier  default 1 gt      Move to previous screen line  optionally repositioning character within line  same    to  leave in same horizontal position     start    at start     end    at end  or    fnb    for first non   blank char  Key Binding  Up    previous line extend  cursor    same     repeat  lt numeric modifier  default 1 gt      Move to previous screen line  adjusting the selection range to new position  optionally  rep
45.   previous line   Move to previous screen line  optionally repositioning  character within line  same    to leave in same horizontal position     start    at start     end     at end  or    fnb    for first non blank char     Ctrl L  goto line   Position cursor at start of given line number    Ctrl Left  backward word   Action varies according to focus  Active Editor Com   mands  Move cursor backward one word  Optionally  provide a string that contains  the delimiters to define which characters are part of a word  Gravity may be    start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move backward one word    Ctrl M  execute kbd macro   Execute most recently recorded keyboard macro  If  register is None then the user is asked to enter a letter a z for the register where the  macro is filed  Otherwise  register    a    is used by default     Ctrl N  new file   Create a new file  Ctrl Next  forward page   Move cursor forward one page    Ctrl O  open gui   Open a file from disk  prompting with file selection dialog if neces   sary    Ctrl P  print view   Print active editor document    Ctrl Page_Down  next document   Move to the next document alphabetically in  the list of documents open in the current window    Ctrl Page_Up  previous document   Move to the previous document alphabetically  in the list of documents open in the current window    Ctrl Period  comment toggle   Toggle commenting out of the selected lines
46.   raise from tools    Data Specification      lt boolean  O or 1 gt     Default Value     237    Default Watch Style    Sets the tracking style used when a value is double clicked in order to watch it  Use     symbolic    to track by symbolic name     parent ref    to track parent by object reference  and attribute by name  and    ref    to track using an object reference directly to the value    Internal Name    debug  default watch style  Data Specification     ref  parent ref  symbolic   Default Value    symbolic    Integer Display Mode  This sets the display style for integer values to one of    dec        hex     or    oct        Internal Name    debug  default integer mode  Data Specification     dec  hex  oct   Default Value    dec    Hover Over Symbols    Set to display debug data value of any symbol on the editor when the mouse cursor  hovers over it     Internal Name     238   debug  hover over symbols  Data Specification     lt boolean  0 or 1 gt     Default Value     Hover Over Selection    Controls whether debug values are shown when the mouse hovers over a selection in the  editor  This may be disabled  enabled for symbols  like x y z  only  or enabled for all  selections including function or methods calls  WARNING  Enabling evaluation of any  selection may result in function or methods calls that have side effects such as altering  the program state or even making unintended database or disk accesses     Internal Name    debug  hover over selections  Data Spec
47.   same    to leave in same horizontal position     start    at start     end    at end  or    fnb     for first non blank char     End  cursor end   Bring cursor to end of line  to end of visible area  or to end of  document each successive consecutive invocation of this command     487    End  end of document   Move cursor to end of document    End  end of line   Action varies according to focus  Active Editor Commands  Move  to end of current line  Toolbar Search Commands  Move to the end of the toolbar search  entry    End End End  end of document   Move cursor to end of document    F1  Multiple commands  first available is executed      e show horizontal tools   Show the horizontal tool area    e minimize horizontal tools   Minimize the horizontal tool area  F10  command by name   Execute given command by name  collecting any args as  needed  F11  frame up   Move up the current debug stack  F12  frame down   Move down the current debug stack    F2  Multiple commands  first available is executed      e show vertical tools   Show the vertical tool area    e minimize vertical tools   Minimize the vertical tool area  F3  search forward   Search again using the search manager   s current settings in  forward direction    F3  split vertically   Split current view vertically  Create new editor in new view when  new  1     F4  goto selected symbol defn   Goto the definition of the selected source symbol    F4  unsplit   Unsplit all editors so there   s only one  Action specifies 
48.   style and indent size for new files   Wing will force tab indentation in all newly created  snippet files     Similarly  line endings in snippets will be replaced with the appropriate type to match    66    the file to which the snippet is applied  However  there is no requirement for snippet  files to contain any particular kind of line ending     If the snippet starts with  x  then x is a specification of how the indents in the snippet  should be converted  It can be one of     e An integer  Re indent as a block  like Wing   s indent region command  so the first  line is at the given number of indent levels     e The character    m     Re indent as a block  like Wing   s indent to match command   so the first line is at the expected indent level according to context in the source     e The character    m    followed by         or         and an integer  Re indent as for    m    and    then shift left or right by the given number of indents     Any  x  at the start of a snippet file will be removed before the snippet is inserted into  an editor     Cursor Placement    Snippets can contain     to indicate the final resting position of the cursor after all  other fields have been filled  When this is present  inline data entry mode is terminated  automatically when this position is reached  after all other fields have been entered    The mark will be removed before snippets are inserted into an editor     Snippet Directory Layout    Snippets are stored in the snippets direct
49.   weight        bold         ground         000066          navigation          foreground         909090          style        i    Files    Default Directory Policy    199    Defines how Wing determines the starting directory to use when prompting for a file  name  Either based on location of the resource at current focus  location of the current  project home directory  the last directory visited for file selection  the current directory  at startup  or selected since   or always the specific fixed directory entered here     Internal Name   main start dir policy  Data Specification      tuple length 2 of   current project  current directory  recent   directory  current focus  selected directory    lt type str gt      Default Value     current focus                Title Style    Format used for titles of source files  Use    basename    to display just the file name      prepend relative    to use partial relative path from the project file location     append   relative    to append partial relative path from project file location after the base file  name     prepend fullpath    to use full path  or    append fullpath    to append fullpath after  the base file name     Internal Name   gui source title style  Data Specification      append relative  basename  prepend fullpath  append   fullpath  prepend relative     Default Value   append relative    Default Encoding    200    The default encoding to use for text files opened in the source editor and other tools   when an 
50.   wildcard    filename          user          wildcard filename          mani    fest          wildcard filename          ncb          wildcard filename          bsc          wildcard   filename          sbr          wildcard filename          log          wildcard    filename                    wildcard filename                     wildcard    filename                     wildcard filename          svn base          wildcard    filename         coverage          wildcard directory        __py    cache__          wildcard directory         bzr          wildcard    directory        CVS          wildcard directory         hg      C wildcard    directory         git          wildcard directory         svn      C wildcard    directory        _svn          wildcard directory         xvpics        u   HTML and XML Files            type        text html          mime type        text xml          mime   type        text x zope pt            wildcard filename                C wildcard     filename                      wildcard filename                  C wildcard   filename          svn base          wildcard filename         cover    age          wildcard directory        __pycache__          wildcard   directory         bzr          wildcard directory        CVS      C wildcard   directory         hg          wildcard directory         git          wildcard   directory         svn          wildcard directory        _svn          wildcard   directory         xvpics        u   C Ct  
51.  16  big endian  utf 16    be  Japanese shift jis 2004  Console default  UTF 8   Japanese iso   2022 jp 3  Hebrew cp862  Western European latin 1  Japanese euc   jisx0213  US  Canada  and Others cp037  Japanese euc jis    2004  None  Central and Eastern European cp1250  Baltic Lan    guages iso8859 4  English ascii  Japanese shift jis  Ara    bic iso8859 6  Canadian English French cp863  Russian koi8    r  Japanese iso 2022 jp  Unicode  UTF 8  utf 8  Greek cp737  Nordic Lan   guages iso8859 10  Central and Eastern European mac    latin2  Chinese  PRC  gb2312  Unicode  UTF 7  utf 7  Ara    bic cp1256  Chinese  PRC  big5hkscs  Western European cp850  Es   peranto and Maltese iso8859 3  Turkish cp857  Korean cp949  US  Aus   tralia  New Zealand  S  Africa cp437  Unicode  UTF 16  utf    16  Japanese cp932      Default Value     243  None    Shell Encoding  Encoding of input output in the integrated Python Shell and Debug Probe    Internal Name   debug  debug probe encoding  Data Specification      None or  Central and Eastern European iso8859 2  Japanese iso   2022 jp 2004  Hebrew cp856  Japanese euc jp  Vietnamese cp1258  Greek cp1253  Baltic  guages cp1257  Korean johab  Western European cp1252  Baltic Lan   guages cp775  Japanese iso 2022 jp ext  Korean iso 2022    kr  Icelandic cp861  Hebrew cp424  Cyrillic Languages cp1251  Turk   ish iso8859 9  Unicode  UTF 16  little endian  utf 16 le  West   ern European cp500  Chinese  PRC  gb18030  Greek cp875  Ara    bic cp864  Iceland
52.  252    Allow dynamic introspection    Set to allow python code and other dynamic calls to be invoked while introspecting  values in the debugger  In some types of code  enabling this can cause execution of  unwanted code or hanging on thread locks while viewing data in the debugger     Internal Name     debug  allow dynamic introspection    Data Specification      lt boolean  O or 1 gt     Default Value     False    Show Data Warnings    Controls whether or not time out  huge value  and error handling value errors are dis   played by the debugger the first time they are encountered in each run of Wing     Internal Name     debug  show debug data warnings    Data Specification      lt boolean  O or 1 gt     Default Value     Use sys stdin Wrapper    Whether sys stdin should be set a wrapper object for user input in the program being  debugged  The wrapper allows debug commands  such as pause  to be executed while  the program is waiting for user input  The wrapper may cause problems with multi   threaded programs that use C stdio functions to read directly from stdin and will be    253    slower than the normal file object  However  turning this preference off means that your  debug process will not pause or accept breakpoint changes while waiting for keyboard  input  and any keyboard input that occurs as a side effect of commands typed in the  Debug Probe will happen in unmodified stdin instead  even though output will still  appear in the Debug Probe as always      Internal
53.  B  isearch sel backward   Initiate incremental mini search backward from  the cursor position  using current selection as the search string  Set persist False to do  the search but end the interactive search session immediately     Ctrl Shift Down  next line extend   Move to next screen line  adjusting the selection  range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start  end    at end  or    fnb    for first non blank char     Ctrl Shift End  end of document extend   Move cursor to end of document  ad   justing the selection range to new position    Ctrl Shift F  batch search   Display Search in Files tool  The look_in argument gets  entered in the look in field if not None or      The current selection is put into the search  field if it doesn   t span multiple lines and either use_selection is true or there   s nothing  in the search field  The given search text is used instead  if provided    Ctrl Shift F3  search sel backward   Search backward using current selection  Ctrl Shift F5  debug stop   Pause free running execution at current program counter  Ctrl Shift F6  debug all tests   Debug all the tests in testing panel     Ctrl Shift F7  debug current tests   Runs the current test or tests  if possible  The  current tests are determined by the current position in the active view     Ctrl Shift F9  Multiple commands  first available is executed      e break disable all   Disable all brea
54.  Close empty windows and quit if all document windows closed when close_window  is    True     Ctrl F5  debug kill   Stop debugging  Ctrl F8  start select line   Turn on auto select mode line by line    Ctrl F9  break clear all   Clear all breakpoints    398    Ctrl G  stop mark command   Stop text marking for selection at current cursor  position  leaving the selection set as is  Subsequent cursor move operations will deselect  the range and set selection to cursor position  Deselect immediately when deselect is  True     Ctrl H  backward delete char   Action varies according to focus  Active Editor Com   mands  Delete one character behind the cursor  or the current selection if not empty     Toolbar Search Commands  Delete character behind the cursor    Ctrl Home  start of document   Move cursor to start of document    Ctrl Insert  copy   Action varies according to focus  Active Editor Commands  Copy  selected text   Document Viewer Commands  Copy any selected text    Exceptions  Commands  Copy the exception traceback to the clipboard   Search Manager Instance  Commands  Copy selected text   Toolbar Search Commands  Cut selection    Ctrl J  fill paragraph   Attempt to auto justify the paragraph around the current  start of selection    Ctrl K  kill line   Kill rest of line from cursor to end of line  and place it into the  clipboard with any other contiguously removed lines  End of line is removed only if  there is nothing between the cursor and the end of the line     Ctrl
55.  Ctrl X O  move editor focus   Move focus to next or previous editor split  optionally  wrapping when the end is reached     Ctrl X P  previous document   Move to the previous document alphabetically in the  list of documents open in the current window    Ctrl X R B  goto bookmark   Goto named bookmark    Ctrl X R M  set bookmark   Set a bookmark at current location on the editor  Mark  is the project wide textual name of the bookmark     Ctrl X R Return  show bookmarks   Show a list of all currently defined bookmarks    Ctrl X R T  toggle bookmark   Set or remove a bookmark at current location on  the editor  When set  the name of the bookmark is set to an auto generated default     Ctrl X Space  Multiple commands  first available is executed      406    e break set   Set a new regular breakpoint on current line    e break clear   Clear the breakpoint on the current line    Ctrl X U  undo   Undo last action    Ctrl X parenleft  start kbd macro   Start definition of a keyboard macro  If regis   ter None then the user is prompted to enter a letter a z under which to file the macro   Otherwise  register    a    is used by default     Ctrl X parenright  stop kbd macro   Stop definition of a keyboard macro    Ctrl Y  Multiple commands  first available is executed      e yank line   Yank contents of kill buffer created with kill line into the  edit buffer    e paste   Action varies according to focus  Active Editor Commands   Paste text from clipboard   Search Manager Instance Com
56.  External Check Freq    Time in seconds indicating the frequency with which the IDE should check the disk for  files that have changed externally  Set to 0 to disable entirely     Internal Name    cache  external check freq  Data Specification     lt type float gt    lt type int gt     Default Value     Reload when Unchanged    Selects action to perform on files found to be externally changed but unaltered within  the IDE  One of    auto reload    to automatically reload these files     request reload    to ask  via a dialog box upon detection     edit reload    to ask only if the unchanged file is edited  within the IDE subsequently  or    never reload    to ignore external changes  although you  will still be warned if you try to save over an externally changed file     Internal Name     207  cache unchanged reload policy  Data Specification    never reload  auto reload  request reload  edit reload   Default Value   auto reload    Reload when Changed    Selects action to perform on files found to be externally changed and that also have been  altered in the IDE  One of    request reload    to ask via a dialog box upon detection     edit   reload    to ask if the file is edited further  or    never reload    to ignore external changes   although you will always be warned if you try to save over an externally changed file     Internal Name    cache  changed reload policy  Data Specification     never reload  request reload  edit reload   Default Value     request reload    e 
57.  F4  close window   Close the current window and all documents and panels in it  Alt F5  run to cursor   Run to current cursor position    Alt F6  run failed tests   Re run all the previously failed tests  The tests are de   bugged when debug is True     Alt F7  run last tests   Run again the last group of tests that were run  The tests  are debugged when debug is True     Alt Home  fold collapse all   Collapse all fold points in the current file    Alt Left  visit history previous   Move back in history to previous visited editor  position    Alt Page_Down  fold expand all current   Expand the current fold point com   pletely    Alt Page_Up  fold collapse all current   Collapse the current fold point completely  Alt Return  new line   Place a new line at the current cursor position   Alt Right  visit history next   Move forward in history to next visited editor position  Alt Slash  fold toggle   Toggle the current fold point   Alt Up  fold collapse more current   Collapse the current fold point one more level    Alt comma  query replace   Initiate incremental mini search query  replace from the  cursor position     Alt period  replace string   Replace all occurrences of a string from the cursor posi   tion to end of file     BackSpace  backward delete char   Action varies according to focus  Active Editor    375  Commands  Delete one character behind the cursor  or the current selection if not empty     Toolbar Search Commands  Delete character behind the cursor    Ctrl 0  n
58.  F6  Visual Studio  Ctrl Shift F6   OS X  Command Shift F6    debug current tests       Runs the current test or tests  if possible  The current tests are determined by the  current position in the active view  Key Bindings  Normal  Ctrl Shift F7  VI VIM   Ctrl Shift F7  Emacs  Ctrl Shift F 7  Brief  Ctrl Shift F7  Visual Studio  Ctrl Shift F 7   OS X  Command Shift F 7    debug failed tests       Re run all the previously failed tests in the debugger  Key Bindings  Normal  Ctrl     350   Alt F6  VI  VIM  Ctrl Alt F6  Emacs  Ctrl Alt F6  Brief  Ctrl Alt F6  Visual Studio   Ctrl Alt F 6  OS X  Command Option F 6   debug last tests       Debug the last group of tests that were run  Key Bindings  Normal  Ctrl Alt F7   VI VIM  Ctrl Alt F7  Emacs  Ctrl Alt F7  Brief  Ctrl Alt F7  Visual Studio  Ctrl Alt   FT  OS X  Command Option F7    debug selected tests     Debug the tests currently selected in the testing panel   debug test files  locs None     Run or debug the tests in the current editor or in the given file or files if locs is not  None  locs can be a list of filenames or locations or a single filename or location     run all tests  debug False   Runs all the tests in testing panel  Key Binding  Shift F 6  run current tests  debug False     Runs the current test or tests  if possible  The current tests are determined by the  current position in the active view  The tests are debugged when debug is True  Key  Binding  Shift F 7    run failed tests  debug False     Re run all 
59.  Functions    Non object functions defined in Python source  usually at the top   level of a module or withing another function or method      e Variables    Variables defined anywhere in a module  class  function  or method   This does not include function or method parameters  which are not shown in the  source browser     8 3  Sorting the Browser Display    In all the display views  the ordering of constructs within a module or class can be  controlled from the Options popup menu in the browser     e Alphabetically    Displays all entries in the tree in alphabetic order  regardless  of type     e By Type    Sorts first by construct type  and then alphabetically     e In File Order    Sorts the contents of each scope in the same order that the  symbols are defined in the source file     8 4  Navigating the Views    To navigate source code from the browser  double click on the tree display  This will  open source files to the appropriate location     Source files opened from the browser will automatically close when browsing elsewhere   except if they are edited or if the stick pin icon in the upper right of the source area  is clicked to indicate that the source file should remain open  For details on this  see  Transient vs  non Transient Editors     The option Follow Selection may be enabled in the Options menu to cause the  browser to open files even on a single click or as the currently selected item on the  browser is changed from the keyboard     Right clicking on cla
60.  IDE menu item     Files may also be opened using an external viewer or editor by right clicking on the file  and using the Open in External Viewer item  On Windows and Mac OS X  this opens  the file as if you had double clicked on it  On Linux  the preferences File Display  Commands and Extra Mime Types can be used to configure how files are opened     You can also execute Makefiles  Python source code  and any executable files by selecting  the Execute Selected File item from the popup menu  This executes outside of the  debugger with any input output occurring in the OS Commands tool  Doing so also  adds the command to the OS Commands tool  where its runtime environment can be  configured     3 5 1  Keyboard Navigation    Once it has the focus  the project manager tree view is navigable with the keyboard   using the up down arrow keys  page up and page down  and home end     Use the right arrow key on a parent to display its children  or the left arrow key to hide  them     Whenever a file is selected  pressing enter will open that item into an editor in Wing  IDE     50    3 6  Sharing Projects       Project File Types   There are two related formats in which you can save your project  One supports  sharing the project file with other developers  via a revision control system or other  method              The default Project Type  accessed from Project Properties in the Project menu   is Single User  One File   This stores all project data into a single file  The file  na
61.  KP_Add  zoom in   Zoom in  increasing the text display size temporarily by one  font size    Ctrl KP_Delete  forward delete word   Action varies according to focus  Active  Editor Commands  Delete one word in front of the cursor   Toolbar Search Commands   Delete word in front of the cursor    Ctrl KP_Down  next line   Move to screen next line  optionally repositioning char   acter within line     same    to leave in same horizontal position     start    at start     end    at  end  or    fnb    for first non blank char     Ctrl KP_End  end of document   Move cursor to end of document  Ctrl KP_Enter  new line   Place a new line at the current cursor position  Ctrl KP_Home  start of document   Move cursor to start of document    Ctrl KP_Insert  copy   Action varies according to focus  Active Editor Commands   Copy selected text   Document Viewer Commands  Copy any selected text    Exceptions  Commands  Copy the exception traceback to the clipboard   Search Manager Instance  Commands  Copy selected text   Toolbar Search Commands  Cut selection    Ctrl KP_Left  backward word   Action varies according to focus  Active Editor  Commands  Move cursor backward one word  Optionally  provide a string that contains    399    the delimiters to define which characters are part of a word  Gravity may be    start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move backward one word    Ctrl KP_Next  forward page   Move cursor fo
62.  Left  visit history previous   Move back in history to previous visited editor  position    Alt Page_Down  fold expand all current   Expand the current fold point com   pletely    Alt Page_Up  fold collapse all current   Collapse the current fold point completely  Alt Period  replace and search   Replace current selection and search again     Alt Q  fill paragraph   Attempt to auto justify the paragraph around the current start  of selection    Alt Return  new line   Place a new line at the current cursor position  Alt Right  visit history next   Move forward in history to next visited editor position  Alt Slash  fold toggle   Toggle the current fold point    Alt Slash  show autocompleter   Show the auto completer for current cursor posi   tion    Alt Tab  show autocompleter   Show the auto completer for current cursor position  Alt Up  fold collapse more current   Collapse the current fold point one more level  Alt V  backward page   Move cursor backward one page    Alt W  copy   Action varies according to focus  Active Editor Commands  Copy  selected text   Document Viewer Commands  Copy any selected text    Exceptions  Commands  Copy the exception traceback to the clipboard   Search Manager Instance  Commands  Copy selected text   Toolbar Search Commands  Cut selection    Alt X  command by name   Execute given command by name  collecting any args as  needed    394    Alt g  goto line   Position cursor at start of given line number  Alt greater  end of document   Move curs
63.  Name   debug use stdin wrapper  Data Specification    lt boolean  O or 1 gt     Default Value     Debug Internals Log File    This is used to obtain verbose information about debugger internals in cases where you  are having problems getting debugging working  When set to non None value  debugger  activity is logged to the given file name  Alternatively      lt stdout gt     or     lt stderr gt     can  be used     Internal Name    debug  logfile  Data Specification     one of  None    lt stdout gt    lt stderr gt     lt type str gt    Default Value    None    Extremely Verbose Internal Log    This is used to turn on very verbose and detailed logging from the debugger  Only  recommended when debugging the debugger     Internal Name     254   debug  very verbose log  Data Specification     lt boolean  O or 1 gt   Default Value    None    Python Shell Debug Log    This is used to obtain verbose information about the Python Shell internals in cases  where you are having problems getting it working  When set to non None value  debug   ger activity is logged to the given file name  Alternatively      lt stdout gt     or     lt stderr gt      can be used to send output to the Python Shell tool     Internal Name    debug shell logfile  Data Specification     one of  None    lt stdout gt    lt stderr gt     lt type str gt    Default Value    None    Extremely Verbose Python Shell Debug Log    This is used to turn on very verbose and detailed logging from the Python Shell internals  
64.  Only recommended when debugging the Python Shell     Internal Name     debug  very verbose shell log    Data Specification      lt boolean  O or 1 gt     255  Default Value   False    Shells Ignore Editor Modes    Set to False so that shells will act modal in the same way as editors when working with a  modal key bindings such as that for VI  When True  the shells always act as if in Insert  mode     Internal Name    debug  shells ignore editor modes  Data Specification     lt boolean  O or 1 gt     Default Value     Source Analysis    Analyze in Background  Whether Wing should try to analyze python source in the background     Internal Name   pysource analyze in background  Data Specification    lt boolean  O or 1 gt     Default Value     256    Introspect in Shells    Set to turn on value introspection in the Python Shell and Debug Probe  so that auto   completion and Source Assistant information can be shown     Internal Name   debug introspect in shells  Data Specification    lt boolean  0 or 1 gt     Default Value     Max Cache Size  MB   The maximum size of the disk cache in megabytes    Internal Name   pysource max disk cache size  Data Specification    from 1 to 1000   Default Value   75    Max Memory Buffers    The maximum   of analysis info buffers that can be in memory at once for files that  are not open     Internal Name     pysource max background buffers    257  Data Specification    from 1 to 100   Default Value   80    Typing Suspend Timeout    Number of sec
65.  P_Subtract    Bookmark View Commands    Commands available on a specific instance of the bookmark manager tool  bookmarks remove all      Remove all bookmarks   bookmarks selected goto      Goto the selected bookmarks   bookmarks selected remove      Remove the selected bookmark   bookmarks show docs       Show the Wing IDE documentation section for the bookmarks manager    Snippet Commands    Top level commands for code snippets  snippet  snippet_name     Insert given snippet into current editor  selecting the snippet appropriate for that file  type from universal snippets if not found  This will preprocess the snippet to match    342   indentation style to the target file  adjusts indentation based on context  and starts  inline argument collection     snippet file  snippet_name  mime_type      context    all        Create a new file with given snippet and start inline snippet argument collection  If  mime type is given  a file of that type is created  Otherwise  all snippets are searched  and the first found snippet of given name is used  and file type matches the type of the  snippet    template  template_name   Deprecated in 4 0  Use snippet instead  template file  template_name  mime_type      context    all        Deprecated in 4 0  Use snippet_file instead    Snippet View Commands    Commands available on a specific instance of the snippet manager tool  snippet add  new_snippet_name  ttype        Add a new snippet to the current Snippets tool page or the given page  
66.  Paste text from clipboard    Toolbar Search Commands  Paste from clipboard    Ctrl W  close   Close active document  Abandon any changes when ignore_changes is  True  Close empty windows and quit if all document windows closed when close_window  is    True     Ctrl X  cut   Action varies according to focus  Active Editor Commands  Cut se   lected text   Search Manager Instance Commands  Cut selected text   Toolbar Search  Commands  Cut selection    Ctrl Y  redo   Redo last action  Ctrl Z  undo   Undo last action    Ctrl    brace match   Match brace at current cursor position  selecting all text between  the two and hilighting the braces    Ctrl greater  indent region   Indent the selected region one level of indentation   Set sel to None to use preference to determine selection behavior  or    never select    to  unselect after indent     always select    to always select after indent  or    retain select    to  retain current selection after indent     Ctrl less  outdent region   Outdent the selected region one level of indentation  Set  sel to None to use preference to determine selection behavior  or    never select    to unselect  after indent     always select    to always select after indent  or    retain select    to retain  current selection after indent     Ctrl parenleft  start kbd macro   Start definition of a keyboard macro  If regis   ter None then the user is prompted to enter a letter a z under which to file the macro   Otherwise  register    a    is used by d
67.  Specification      above collapsed  above expanded  none  below collapsed  below   expanded     Default Value   below collapsed    Indicator Style    Set to 0 to use arrow indicators  1 to use plus minus indicators  2 to rounded tree  indicators  and 3 to use square tree indicators     Internal Name    edit  fold indicator style  Data Specification     from 0 to 3     Default Value     224    Fold Trailing White Space    Controls whether or not trailing white space after a block of code is folded up along with  the block  for a more compact folded display     Internal Name    edit  fold trailing whitespace  Data Specification     lt boolean  0 or 1 gt     Default Value     e Auto completion    Auto show Completer    Controls whether or not the completer is always shown automatically during typing   never auto shown  or shown only after a certain number of characters are in the comple   tion fragment  When auto show is disabled  the auto completer can still be shown on  demand with the Show Completer item in the Source menu     Internal Name    edit  autocomplete autoshow option  Data Specification     always  never   Default Value    always    Auto completer Height  The maximum number of lines to show in the auto completer at once     Internal Name     225  edit  autocompleter height  Data Specification    lt type int gt     Default Value     Auto complete Delay  sec     Delay in seconds from last key press to wait before the auto completer is shown  If 0 0   the auto comple
68.  Thai_khorakhang  Thai_ngongu  Thai_chochan  Thai_choching  Thai_chochang   Thai_soso  Thai_chochoe  Thai_yoying  Thai_dochada  Thai_topatak  Thai_thothan   Thai_thonangmontho  Thai_thophuthao  Thai_nonen  Thai_dodek  Thai_totao   Thai_thothung  Thai_thothahan  Thaitthothong  Thainonu  Thai_bobaimai   Thai_popla  Thai_phophung  Thai_fofa  Thai_phophan  Thai_fofan  Thai_phosamphao   Thai_moma  Thai_yoyak  Thai_rorua  Thai_ru  Thai_loling  Thai_lu     42    Thai_wowaen  Thai_sosala  Thai _sorusi  Thai_sosua  Thai_hohip  Thai_lochula   Thai_oang  Thai_honokhuk     Thai_paiyannoi  Thai_saraa  Thai_maihanakat   Thai_saraaa  Thai_saraam  Thai_sarai  Thai_saraii  Thai_saraue  Thai_sarauee   Thai_sarau  Thai_sarauu  Thai_phinthu  Thai_maihanakat_maitho  Thai_baht   Thai_sarae  Thai_saraae  Thai_sarao  Thai_saraaimaimuan  Thai_saraaimaimalai   Thai_lakkhangyao  Thai maiyamok  Thai_maitaikhu  Thai_maiek  Thai_maitho   Thai_maitri  Thai_maichattawa  Thai_thanthakhat  Thai_nikhahit  Thai_teksun   Thai_leknung  Thaiteksong  Thai_leksam  Thai_leksi  Thaitlekha  Thai_lekhok   Thai_lekchet  Thai_lekpaet  Thai_lekkao     Hangul  Hangul_Start  Hangul_End  Hangul_Hanja  Hangul_Jamo  Hangul_Romaja   Hangul_Codeinput  Hangul_Jeonja  Hangul_Banja  Hangul_PreHanja   Hangul_Post Hanja  Hangul_SingleCandidate  Hangul_MultipleCandidate   Hangul_PreviousCandidate  Hangul_Special  Hangul_switch  Hangul_Kiyeog   Hangul_SsangKiyeog  Hangul_KiyeogSios  Hangul_Nieun  Hangul_NieunJieuj   Hangul_NieunHieuh  H
69.  a given key combination  This example  binds Ctrl X to    quit    and no other command        Ctrl X        debug stop        Ctrl X      quit       2 4 1  Key Names     1  Key modifiers supported by Wing IDE for key bindings are     e Ctrl    Either control key     e Shift    Either shift key  This modifier is ignored with some key names  as indicated  below     e Alt    Not recommended for general use since these bindings tend to conflict with  menu accelerators and operating system or window manager operations     e Command    Macintosh command   apple key  This may be mapped to other  keys on other systems  but is intended for use on the Macintosh     37    On Linux and OS X it is possible to remap the function of the Control  Alt  command   and windows keys  In those cases  the Ctrl and Alt modifiers will refer to the keys  specified in that mapping      2  The digit keys and core western alphabet keys are specified as follows     0  1  2  3  4  5  6  T  8  9  A  B  C  D  E  E  G  H  I  J  K  L  M  N  O  P  Q  R  S  T U   V  W  X  Y  Z      3  Most punctuation can be specified but any Shift modifier will be ignored since these  keys can vary in location on different international keyboards  Allowed punctuation  includes      I O H  h ax   _         l        gt   lt      4  These special keys can also be used     Escape  Space  BackSpace  Tab  Linefeed  Clear  Return  Pause  ScrollLock  Sys_Req   Delete  Home  Left  Up  Right  Down  Prior  Page_Up  Next  Page Down  End  
70.  any dispute arises under this EULA  the prevailing party shall be  reimbursed by the other party for any and all legal fees and costs associated therewith     16  GENERAL    501    If any provision of this EULA is held invalid  the remainder of this EULA shall continue  in full force and effect     A waiver by either party of any term or condition of this EULA or any breach thereof   in any one instance  shall not waive such term or condition or any subsequent breach  thereof     17  OUTSIDE THE U S     If you are located outside the U S   then the provisions of this Section shall apply  Les  parties aux pr  sentes confirment leur volont   que cette convention de m  me que tous  les documents y compris tout avis qui s   y rattache  soient redig  s en langue anglaise    translation     The parties confirm that this EULA and all related documentation is and  will be in the English language      You are responsible for complying with any local laws  in your jurisdiction which might impact your right to import  export or use the Software  Product  and you represent that you have complied with any regulations or registration  procedures required by applicable law to make this license enforceable     18  TRADEMARKS    The following are trademarks or registered trademarks of Wingware  Wingware  the  feather logo  Wing IDE  Wing IDE 101  Wing IDE Personal  Wing IDE Professional   Wing IDE Enterprise  Wing Debugger  and    The Intelligent Development Environment  for Python Programme
71.  as the search string  Set persist False to do  the search but end the interactive search session immediately   Document Viewer Com   mands  Initiate incremental mini search forward from the cursor position  using current  selection as the search string  Set persist False to do the search but end the interactive  search session immediately     Browse   Browse p  paste register indent 1    Paste text from register as before  or after the current position  If the register contains only lines  then the lines are pasted  before or after current line  rather than at cursor   If the register contains fragments of  lines  the text is pasted over the current selection or either before or after the cursor   Set pos   1 to paste after  or  1 to paste before  Set indent 1 to indent the pasted text  to match current line  Set cursor  1 to place cursor before lines or cursor 1 to place it  after lines after paste completes     Browse    beginning of line text toggle 0    Move to end of the leading white  space  if any  on the current line  If toggle is True  moves to the beginning of the line if  already at the end of the leading white space  and vice versa      Browse b  backward word   Action varies according to focus  Active Editor Com   mands  Move cursor backward one word  Optionally  provide a string that contains  the delimiters to define which characters are part of a word  Gravity may be  start    or     end    to indicate whether cursor is placed at start or end of the word   To
72.  backward one character   Toolbar Search Commands  Move backward one  character    Left  backward char wrap 0    Action varies according to focus  Active Editor  Commands  Move cursor backward one character   Toolbar Search Commands  Move  backward one character    Next  forward page   Move cursor forward one page  Page_Down  forward page   Move cursor forward one page  Page_Up  backward page   Move cursor backward one page  Prior  backward page   Move cursor backward one page  Replace Ctrl C  enter browse mode   Enter editor browse mode    Replace Ctrl D  outdent region   Outdent the selected region one level of indenta   tion  Set sel to None to use preference to determine selection behavior  or  never select     to unselect after indent     always select    to always select after indent  or    retain select     to retain current selection after indent     Replace Ctrl H  backward char   Action varies according to focus  Active Editor  Commands  Move cursor backward one character   Toolbar Search Commands  Move  backward one character    Replace Ctrl J  new line   Place a new line at the current cursor position  Replace Ctrl M  new line   Place a new line at the current cursor position    Replace Ctrl T  indent region   Indent the selected region one level of indentation   Set sel to None to use preference to determine selection behavior  or    never select    to  unselect after indent     always select    to always select after indent  or  retain select    to  retain curre
73.  be    start    or    end    to indicate whether cursor  is placed at start or end of the word   Toolbar Search Commands  Move forward one  word  extending the selection    Ctrl Shift KP_Up  previous line extend   Move to previous screen line  adjusting  the selection range to new position  optionally repositioning character within line  same     to leave in same horizontal position     start    at start  end    at end  or    fnb    for first non   blank char     Ctrl Shift Left  backward word extend   Action varies according to focus  Active  Editor Commands  Move cursor backward one word  adjusting the selection range to  new position  Optionally  provide a string that contains the delimiters to define which  characters are part of a word  Gravity may be    start    or    end    to indicate whether cursor  is placed at start or end of the word   Toolbar Search Commands  Move backward one  word  extending the selection    Ctrl Shift Next  forward page extend   Move cursor forward one page  adjusting  the selection range to new position    Ctrl Shift Page_Down  forward page extend   Move cursor forward one page  ad   justing the selection range to new position    Ctrl Shift Page_Up  backward page extend   Move cursor backward one page  ad   justing the selection range to new position    Ctrl Shift Prior  backward page extend   Move cursor backward one page  adjust   ing the selection range to new position    Ctrl Shift Right  forward word extend   Action varies according to f
74.  be run without  debugging  This is useful since debug enabled CGls and other programs should  work normally when Wing is not present  However  you can force the debug process  to exit in this case by setting the kExitOnFailure flag in wingdbstub py  To  attach to processes started without debug  see Attaching  only available in Wing  IDE Professional               125  13 1 2  Debug Server Configuration    In some cases you may also need to alter other preset configuration values at the start  of wingdbstub py  These values completely replace any values set in Wing   s Project  or File Properties  which are relevant only when the debug program is launched from  within Wing  The following options are available     e The debugger can be disabled entirely with kWingDebugDisabled 1  This is equiv   alent to setting the WINGDB_DISABLED environment variable before launching the  debug program     e Set kWingHostPort to specify the network location of Wing IDE  so the debugger  can connect to it when it starts  This is equivalent to setting the WINGDB_HOSTPORT  environment variable before launching the debug program  The default value is  localhost 50005  See section Remote Debugging for details if you need to  change this value     e You can control whether or not the debugger   s internal error messages are written  to a log file by setting kLogFile  Use  lt stdout gt    lt stderr gt   or a file name  If the  given file doesn   t exist  it is created if possible  Note that using 
75.  because the debug support  code uses sockets and other functionality that is not necessarily exercised by your debug  program outside of the Wing debugger     If you try to run a debug session in Wing IDE and it fails  you may be having this  problem  The following test script can be used to confirm that the problem exists in  your Python installation     import sys    print    sys version       sys version   print    sys executable       sys executable   print    sys version_info       sys version_info   import socket   print    socket       socket   print    socket _socket       socket _socket   import select   print    select       select    import cPickle   print    cPickle       cPickle     To solve this problem  try uninstalling Python  manually removing any remaining files   and installing again  Or install Python into a new location on disk     Once this is done  be sure to confirm that Wing is configured to use the new Python  installation from the Project Properties dialog in the Project menu and that the Show  Analysis Stats item in the Source menu displays the correct intepreter     7  Wing   s debugger is unable to debug games written with pygame when they are  running in full screen mode  Use window mode instead  This is a problem also for other  IDEs  we have not yet investigated the cause     18 3 2  Failure to Stop on Breakpoints or Show Source Code    The most common cause of failure to stop on breakpoints or to bring up source windows  while stopping or st
76.  bookmark at current location on the  editor  When set  the name of the bookmark is set to an auto generated default     Ctrl Alt Up  goto previous bookmark current_file_only True    Go to the pre   vious bookmark in the bookmark list  or the last one if no bookmark is selected  Stays  within the file in the current editor when current_file_only is True     Ctrl Alt period  replace string regex   Replace all occurrences of a string from the  cursor position to end of file  The search string is treated as a regular expression     Ctrl B  isearch sel forward   Action varies according to focus  Active Editor Com   mands  Initiate incremental mini search forward from the cursor position  using current  selection as the search string  Set persist False to do the search but end the interactive  search session immediately   Document Viewer Commands  Initiate incremental mini   search forward from the cursor position  using current selection as the search string  Set  persist False to do the search but end the interactive search session immediately     Ctrl BackSpace  backward delete word   Action varies according to focus  Active    377  Editor Commands  Delete one word behind of the cursor   Toolbar Search Commands   Delete word behind the cursor    Ctrl C  copy   Action varies according to focus  Active Editor Commands  Copy  selected text   Document Viewer Commands  Copy any selected text    Exceptions  Commands  Copy the exception traceback to the clipboard   Search Manager Inst
77.  breakpoint on the current line    e break disable   Disable the breakpoint on current line    Shift Home  beginning of line text extend   Move to end of the leading white  space  if any  on the current line  adjusting the selection range to the new position   If toggle is True  moves to the beginning of the line if already at the end of the leading  white space  and vice versa      Shift Insert  paste   Action varies according to focus  Active Editor Commands  Paste  text from clipboard   Search Manager Instance Commands  Paste text from clipboard    Toolbar Search Commands  Paste from clipboard    Shift KP_Delete  cut   Action varies according to focus  Active Editor Commands   Cut selected text   Search Manager Instance Commands  Cut selected text   Toolbar  Search Commands  Cut selection    Shift K P_Down  next line extend   Move to next screen line  adjusting the selection  range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start  end    at end  or    fnb    for first non blank char     Shift KP_End  end of line extend   Action varies according to focus  Active Editor  Commands  Move to end of current line  adjusting the selection range to new position    Toolbar Search Commands  Move to the end of the toolbar search entry  extending the  selection    Shift KP_Home  beginning of line text extend   Move to end of the leading white  space  if any  on the current line  adjusting the selection 
78.  by paying the price difference  between the Non Commercial Use and Commercial Use license for the Software Product     Wingware  a Delaware corporation  reserves the right to further clarify the terms of  Non Commercial Use at its sole determination     3  INTELLECTUAL PROPERTY RIGHTS RESERVED BY WINGWARE    The Software Product is owned by Wingware and is protected by United States and  international copyright laws and treaties  as well as other intellectual property laws  and treaties  You must not remove or alter any copyright notices on any copies of the  Software Product  This Software Product copy is licensed  not sold  You may not use   copy  or distribute the Software Product  except as granted by this EULA  without  written authorization from Wingware or its designated agents  Furthermore  this EULA  does not grant you any rights in connection with any trademarks or service marks of  Wingware  Wingware reserves all intellectual property rights  including copyrights  and  trademark rights     4  LIMITED RIGHTS TO TRANSFER    You may not rent  lease  lend  or in any way distribute or transfer any rights in this  EULA or the Software Product to third parties without Wingware   s written approval     However  companies that purchase a Commercial Use license may from time to time   as employees come and go or roles change  transfer that license to another individual   provided that the prior user of the license ceases to use the license immediately after the  transfer ha
79.  context menu     102    Debugger    Wing   s debugger provides a powerful toolset for rapidly locating and fixing bugs in single   threaded or multi threaded Python code  It supports breakpoints  stepping through  code  inspecting and changing stack or module data  watch points  expression evaluation   and command shell style interaction with the paused debug process     The debugger is built around a TCP IP client server design that supports launching  your application not just from Wing itself but also externally  as with CGI scripts or  code running in an embedded scripting facility within a larger application  Remote  host  to host  debugging is also provided     Because the debugger core is written in optimized C  debug overhead is relatively low   however  you should expect your programs to run about 50  slower within the debugger     12 1  Quick Start    Wing IDE can be used to debug all sorts of Python code  including scripts and stand   alone applications written with wxPython  Tkinter  PyQt  PyGTK  and pygame   Wing can also debug web CGlIs including those running under mod_python  code  running under Zope  Plone  Turbogears  Django  Paste Pylons  Twisted  and  code running in an embedded Python interpreter     This section describes how to debug stand alone scripts and applications that can be  launched from within Wing IDE  If you wish to debug web CGIs within the web server   web servlets  or embedded Python scripts  please refer to Debugging Externally  Launche
80.  current selection after indent     Command C  copy   Action varies according to focus  Active Editor Commands  Copy  selected text   Document Viewer Commands  Copy any selected text    Exceptions  Commands  Copy the exception traceback to the clipboard   Search Manager Instance  Commands  Copy selected text   Toolbar Search Commands  Cut selection    Command Comma  show preferences gui   Edit the preferences file using the pref   erences GUI  optionally opening to the section that contains the given preference by  name    Command Ctrl KP_Divide  fold python classes   Fold up all Python classes but  leave other fold points alone    Command Ctrl KP_Multiply  fold expand all   Expand all fold points in the cur   rent file    Command Ctrl KP_Subtract  fold collapse all   Collapse all fold points in the  current file    Command Ctrl KP_Subtract  fold python methods   Fold up all Python meth   ods  expand all classes  and leave other fold points alone    Command Ctrl1 R  replace and search   Replace current selection and search again     465  Command D  set bookmark   Set a bookmark at current location on the editor   Mark is the project wide textual name of the bookmark   Command Down  end of document   Move cursor to end of document  Command E  search sel forward   Search forward using current selection  Command F  search   Bring up the search manager in search mode     Command F12  command by name   Execute given command by name  collecting  any args as needed    Command F3  se
81.  cursor forward one page  adjusting  the selection range to new position    Shift KP_Page_Down  forward page extend   Move cursor forward one page  ad   justing the selection range to new position    Shift KP_Page_Up  backward page extend   Move cursor backward one page  ad   justing the selection range to new position    Shift KP_Prior  backward page extend   Move cursor backward one page  adjust   ing the selection range to new position    Shift KP_Right  forward char extend   Action varies according to focus  Active    390    Editor Commands  Move cursor forward one character  adjusting the selection range to  new position   Toolbar Search Commands  Move forward one character  extending the  selection    Shift KP_Up  previous line extend   Move to previous screen line  adjusting the  selection range to new position  optionally repositioning character within line  same    to  leave in same horizontal position     start    at start     end    at end  or    fnb    for first non blank  char     Shift Left  backward char extend   Action varies according to focus  Active Editor  Commands  Move cursor backward one character  adjusting the selection range to new  position   Toolbar Search Commands  Move backward one character  extending the  selection    Shift Next  forward page extend   Move cursor forward one page  adjusting the  selection range to new position    Shift Page_Down  forward page extend   Move cursor forward one page  adjusting  the selection range to new position 
82.  cursor in current position within the source  otherwise  it is moved so the cursor remains on same screen line     Ctrl End  end of document   Move cursor to end of document    Ctrl F12  command by name   Execute given command by name  collecting any args  as needed    Ctrl F3  search sel forward   Search forward using current selection    Ctrl F4  close   Close active document  Abandon any changes when ignore_changes is  True  Close empty windows and quit if all document windows closed when close_window  is True     Ctrl F5  debug kill   Stop debugging   Ctrl F8  start select line   Turn on auto select mode line by line  Ctrl F9  break clear all   Clear all breakpoints   Ctrl Home  start of document   Move cursor to start of document    Ctrl Insert  copy   Action varies according to focus  Active Editor Commands  Copy  selected text   Document Viewer Commands  Copy any selected text    Exceptions  Commands  Copy the exception traceback to the clipboard   Search Manager Instance  Commands  Copy selected text   Toolbar Search Commands  Cut selection    Ctrl KP_Add  zoom in   Zoom in  increasing the text display size temporarily by one  font size    430    Ctrl KP_Delete  forward delete word   Action varies according to focus  Active  Editor Commands  Delete one word in front of the cursor   Toolbar Search Commands   Delete word in front of the cursor    Ctrl KP_Down  next line   Move to screen next line  optionally repositioning char   acter within line     same    to leave i
83.  delete word  repeat  lt numeric modifier  default 1 gt      Delete one word behind of the cursor Key Bindings  Normal  Ctrl BackSpace  VI VIM   Ctrl BackSpace  Emacs  Ctrl BackSpace  Brief  Ctrl BackSpace  Visual Studio  Ctrl   BackSpace  OS X  Ctrl Option Delete    backward page  repeat  lt numeric modifier  default 1 gt      Move cursor backward one page Key Bindings  Normal  Prior  VI VIM  Prior  Emacs   Prior  Brief  Prior  Visual Studio  Prior  OS X  Ctrl  Up    backward page extend  repeat  lt numeric modifier  default 1 gt      Move cursor backward one page  adjusting the selection range to new position Key  Bindings  Normal  Shift Prior  VI VIM  Shift Prior  Emacs  Shift Prior  Brief  Shift   Prior  Visual Studio  Shift Prior  OS X  Shift Page_Up    backward paragraph  repeat  lt numeric modifier  default 1 gt      Move cursor backward one paragraph  to next all whitespace line   Key Bindings   VI VIM       backward paragraph extend  repeat  lt numeric modifier  default 1 gt      Move cursor backward one paragraph  to next all whitespace line   adjusting the selec   tion range to new position     backward tab     Outdent line at current position Key Binding  Shift Tab    backward word  delimiters None  gravity    start     repeat  lt numeric modifier  de   fault 1 gt      314    Move cursor backward one word  Optionally  provide a string that contains the delimiters  to define which characters are part of a word  Gravity may be    start    or    end    to indicate  w
84.  desktop1 and debugging some code on server1 with IP address 192 168 1 1     debug  location map      127 0 0 1    None    7192 168 1 1          home apache cgi         svri home apache cgi            In this example  the files located in  home apache cgi on server  are the same files seen  in  server1 home apache cgi on desktop1 because the entire file system on server1  is being shared via NFS and mounted on desktop1 under  svrt     To enter this value in Preferences  you would add 192 168 1 1 as a new Remote IP  Address and a single local remote mapping pair containing  home apache cgi and   svr1 home apache cgi     IDE on Linux Unix with Debug Process on Windows    If you are debugging between Windows and Linux or Unix  some care is needed in  specifying the conversion paths because of the different path name conventions on each  platform  The following entry would be used when running Wing IDE on a Linux Unix  host and the debug process on a Windows host with ip address 192 168 1 1     debug  location map      127 0 0 1    None    7192 168 1 1      r   e  srce         home myuser src             In this example the Linux Unix directory  home myuser is being shared via Samba to  the Windows machine and mapped to the e  drive     132    In the Preferences GUI  you would add 192 168 1 1 as a new Remote IP Address and  a single local remote mapping pair containing e  src and  home myuser src     IDE on Windows with Debug Process on Linux Unix    If running Wing IDE on a Wind
85.  directory as your source files    130    and import it in your Python source as described in Debugging Externally Launched  Code      9  If you didn   t copy wingdbstub py out of a complete installation of Wing IDE on  the debug host  you will need to set kWingHome to match the location where you have  copied the debug server code on your debug host      10  In wingdbstub py on your debug host  set kWingHostPort  The host in this value  must be the IP address of the machine where Wing IDE is running  The port must  match the port configured with the Server Port preference on the host where Wing  IDE is running      11  Then restart Wing and try running your program on the debug host  You should  see the Wing IDE debugger status icon change to indicate that a debug process has  attached     If you have problems making this work  try setting kLogFile variable in wingdbstub  py  for log additional diagnostic information     13 2 1  File Location Maps    In cases where the full path to your source is not the same on both machines  you also  need to set up a mapping that tells Wing where it can find your source files on each  machine     This is done with the Location Map preference  which lists corresponding local and  remote directory locations for each remote host   s dotted quad IP address     Each host IP address in the location map is paired with one or more  remote_prefix   local_prefix  tuples  The remote file prefix will be a full path on the debug server   s  file syste
86.  display would still show the  contents of the original dictionary instance  if it still exists   rather than the new  value of the variable testdict  In other words  the symbolic path to the value  is completely disregarded and only instance identity is used to track the value   Because it   s meaningless to track immutable types this way  this option is disabled  or enabled according to the values you select to zoom out into a separate window     e By Parent Reference and Slot   The debugger uses the object reference to  the parent of the selected data slot and uses a symbolic representation of the slot  within the parent in order to determine where to look for any value updates  This  means that reassignment of the variable that points to the parent does not alter  what is displayed in the zoomed out view  only reassignment of the selected slot  changes what is displayed by the debugger     e By Module Slot   This is only available for values within a module  such as  string  sys path  or os environ  The debugger uses the module name to look  up the module in sys modules and references the value by symbolic path  Any  change in the value  even across module reloads  is reflected in the Watch view     114    For any of these  if the value cannot be evaluated because it does not exist  the debugger  displays  lt undefined gt   This happens when the last object reference to a reference   tracked value is discarded  or if a selected symbolic path is undefined or cannot be  eva
87.  editor that is opened  Additionally  all tools are moved out to a  separate shared tool box window and the toolbar and menu are moved out to a  shared toolbar menu window     The windowing policy is used to describe the initial configuration and basic action of  windows in the IDE  When it is changed  Wing will reconfigure your projects to match  the windowing policy the first time they are used with the new setting     31    However  it is possible to create additional IDE windows and to move editors and tools  out to another window or among existing windows without changing from the default  windowing policy  This is described below     2 2 2  User Interface Layout    When working in the default windowing policy  Wing   s main user interface area consists  of two tool boxes  by default at bottom and right  but this can be altered in Prefer   ences  and an area for source editors and integrated help     Clicking on an already active notebook tab will cause Wing to minimize the entire panel  so that only the notebook tabs are visible  Clicking again will return the tool box to its  former size  The F1 and F2 keys toggle between these modes  The command Maximize  Editor Area in the Tools menu  Shift F2  can also be used to quickly hide both tool  areas and toolbar     In other windowing modes  the tool boxes and editor area are presented in separate  windows but share many of the configuration options described below     Configuring the Toolbar    Wing   s toolbar can be conf
88.  example  due to a syntax error   any timeouts reg   istered by the module during partial load are removed and the module is  removed from sys modules     7  If the module contains _ignore_scripts  then its timeouts  if any  are re   moved and scripts in the file are ignored     8  Otherwise  Wing adds all the scripts in the module to the command registry  and loads any sub modules if the module is a package with __init__ py     170    Note that reloading is by design slightly different than Python   s builtin reload   func   tion  Any old top level symbols are blown away rather than being retained  This places  some limits on what can be done with global data  For example  storing a database  connection will require re establishing the connection each time the script is reloaded     Trouble shooting Guide    This chapter describes what to do if you are having trouble installing or using Wing  IDE        We welcome feedback and bug reports  both of which can be submitted directly  from Wing IDE using the Submit Feedback and Submit Bug Report items in  the Help menu  or by emailing us at support at wingware com              18 1  Trouble shooting Failure to Start    If you are having trouble getting Wing to start at all  read through this section for  information on diagnosing the problem     On OS X  Wing requires that you install and launch an X11 Server before starting  Wing IDE  If the launcher fails to start X11 or Wing  try starting X11 Server manually  and then running 
89.  exited     12 9  Viewing Debug Data    The Wing IDE debugger provides several ways in which to look at your debug program   s  data      1  By inspecting locals and globals using the Stack Data tool  This area  displays values for the currently selected stack frame      2  By browsing values in all loaded modules  as determined by sys modules    using the Modules tool      3  By watching specific values from either of the above views  right click on  values to add them to the Watch tool      4  By typing expressions in the Watch tool        Values Fetched on Demand   The variable data displayed by Wing is fetched from the debug server on the fly as  you navigate  Because of this  you may experience a brief delay when a change in  an expansion or stack frame results in a large data transfer    For the same reason  leaving large amounts of debug data visible on screen may  slow down stepping through code              12 9 1  Stack Data View    The Stack Data debugger tool contains a popup menu for selecting thread  in multi   threaded processes  and accessing the current debug stack  a tree view area for browsing    111    variable data in locals and globals  and a textual view area for inspecting large data  values that are truncated on the tree display     Simple values  such as strings and numbers  and values with a short string representation   will be displayed in the value column of the tree view area     Strings are always contained in     double quotes   Any value outs
90.  extending the  selection    Shift KP_Up  previous line extend   Move to previous screen line  adjusting the  selection range to new position  optionally repositioning character within line  same    to  leave in same horizontal position  start    at start     end    at end  or    fnb    for first non blank  char     Shift Left  backward char extend   Action varies according to focus  Active Editor  Commands  Move cursor backward one character  adjusting the selection range to new  position   Toolbar Search Commands  Move backward one character  extending the  selection    Shift Next  forward page extend   Move cursor forward one page  adjusting the  selection range to new position    Shift Page_Down  forward page extend   Move cursor forward one page  adjusting  the selection range to new position    Shift Page_Up  backward page extend   Move cursor backward one page  adjusting  the selection range to new position    Shift Prior  backward page extend   Move cursor backward one page  adjusting the  selection range to new position    494    Shift Return  new line   Place a new line at the current cursor position    Shift Right  forward char extend   Action varies according to focus  Active Edi   tor Commands  Move cursor forward one character  adjusting the selection range to  new position   Toolbar Search Commands  Move forward one character  extending the  selection    Shift Tab  backward tab   Outdent line at current position    Shift Up  previous line extend   Move to previ
91.  file in the current  editor when current_file_only is True     Ctrl Alt F6  debug failed tests   Re run all the previously failed tests in the debug   ger     Ctrl Alt F7  debug last tests   Debug the last group of tests that were run     Ctrl Alt Left  goto previous bookmark   Go to the previous bookmark in the book   mark list  or the last one if no bookmark is selected  Stays within the file in the current  editor when current_file_only is True     429    Ctrl Alt Right  goto next bookmark   Go to the next bookmark  or the first one if  no bookmark is selected  Stays within the file in the current editor when current_file_only  is True     Ctrl Alt Up  goto previous bookmark current_file only True    Go to the pre   vious bookmark in the bookmark list  or the last one if no bookmark is selected  Stays  within the file in the current editor when current_file_only is True     Ctrl BackSpace  backward delete word   Action varies according to focus  Active  Editor Commands  Delete one word behind of the cursor   Toolbar Search Commands   Delete word behind the cursor    Ctrl Delete  forward delete word   Action varies according to focus  Active Editor  Commands  Delete one word in front of the cursor   Toolbar Search Commands  Delete  word in front of the cursor    Ctrl Down  scroll text down   Scroll text down a line w o moving cursor   s relative  position on screen  Repeat is number of lines or if  gt 0 and  lt 1 0 then percent of screen   Set move_cursor to False to leave
92.  file specified in this way will override values stored in the per user or installation   wide preferences files  These files must contain all preferences in a section marked   extra preferences   as opposed to  user preferences   which is used in the regular  users preferences file      2 3 2  Preferences File Format    While we recommend using the graphical preferences manager to alter preferences  some  users may wish to edit the underlying text files directly     The preferences file format consists of a series of sections separated by bracketed headers   Currently the only valid section is luser preferences  for the file in the User Settings  Directory or  extra preferences  for files passed on the command line with the     prefs file option  All other sections are ignored     The body of each section is a sequence of lines  each of which is a name value pair     Each preference name is in domain preference form  where domain is the IDE sub   system affected and preference is the name of the specific preference  for example   edit  personality defines the source editor   s runtime personality      Preference values can be any Python expression that will evaluate to a number  string   tuple  list  or dictionary  the data type is defined by each preference and will be verified  as the file is read into Wing   Long lines may be continued by placing a backslash       at the end of a line and comments may be placed anywhere on a line by starting them  with       If you wish t
93.  file you have active in the frontmost  editor  Depending on the nature of your project  you may wish to specify a file as the  default debug entry point  This is done with Set Main Debug File in the Debug menu     This file is subsequently run whenever you start the debugger  except when using Debug  Current File in the Debug menu  or when right clicking on an entry in the project  manager and choosing the Debug Selected context menu item     Note that the path to the main debug file is highlighted in red in the project window     The main entry point defined for a project is also used by the source code analysis  engine to determine the python interpreter version and Python path to use for analysis   Thus  changing this value will cause all source files in your project to be reanalyzed from  scratch  See section Source Code Analysis for details     12 3  Debug Properties    In some cases  you may need to set project and per file properties from the Project  manager before you can debug your code  This is done to specify Python interpreter   PYTHONPATH  environment variables  command line arguments  start directory  and other    105    values associated with the debug process  For details  see Project Wide Properties  and Per file Properties     12 4  Setting Breakpoints    Breakpoints can be set on source code by opening the source file and clicking on the  breakpoint margin to the left of a line of source code  Right clicking on the breakpoint  margin will display a contex
94.  files     Commands    The following commands are available for invoking snippets     snippet    This will insert a snippet  selected by name  at the cursor in the current  editor  If there is a non empty selection on the editor  it will replace the selection  The  editor will be placed into data entry mode for the collection of the snippet arguments     snippet file    This will create a new file of the type specified by the snippet file   s  extension and insert the selected snippet into it before entering data entry mode in the  editor for the collection of the snippet arguments     In most cases  you will use the Assign Key Binding item in the Snippets tool   s context  menu to invoke these commands for a particular snippet     Scripting Snippets    Wing   s extension scripting API exposes the editor   s data entry mode and snippet pro   cessing capabilities  This can be used to write scripts that generate snippets and paste  them into the editor for user data entry  This approach may be preferable when the  snippet markup language described above is not sufficient     For details  see the PasteSnippet and StartDataEntry methods in wingapi py and  refer to Scripting and Extending Wing IDE     68    4 10  Indentation    Since indentation is syntactically significant in Python  Wing provides a range of features  for inspecting and managing indentation in source code     4 10 1  How Indent Style is Determined    When an existing file is opened  it is scanned to determine wha
95.  files that have been altered     5 5  Find Points of Use    Wing IDE is able to find the locations where a symbol is used in the current project   s  Python files  To start a search  select or place the cursor in a symbol and then use Find  Points of Use in the Source menu or editor   s context menu  right click  or Alt click  onasymbol  Lines with matching symbols will be displayed in the Uses tool and clicking  on a match will display it in an editor     Since Python is a dynamic language  it is sometimes impossible to determine for certain  whether a match is the same symbol  Matches are assigned a likelyhood of being correct   as follows     e Likely  The original symbol and found symbol resolve to the same definition so  that using Goto Definition on each will end up in the same place     e Possible  Either the original symbol or the found symbol don   t resolve to any  definition     e Unlikely  The original symbol resolves to a different definition than the found  symbol     Possible matches are listed with a question mark     preceding the filename and unlikely  matches are listed with double question mark      preceding the filename  Only likely    82    and possible matches are displayed by default  The display of possible and unlikely  matches may be toggled via the Options menu on a per search basis     When searching for uses of a class __init__ or __new__ methods  the results will include    matches where the class or a derived class is used by their original n
96.  focus  Active Editor Com   mands  Move to end of current line  adjusting the selection range to new position    Toolbar Search Commands  Move to the end of the toolbar search entry  extending the  selection    Shift F1  move focus   Move the keyboard focus forward within the Window to the  next editable area    Shift F11  frame show   Show the position  thread and stack frame  where the de   bugger originally stopped    Shift F2  Multiple commands  first available is executed      e enter fullscreen   Hide both the vertical and horizontal tool areas  and toolbar  saving previous state so it can be restored later with  exit_fullscreen    e exit fullscreen   Restore previous non fullscreen state of all tools and  tool bar    Shift F3  search backward   Search again using the search manager   s current settings  in backward direction    Shift F4  find points of use   Find points of use for a symbol  The symbol defaults  to the active selection     Shift F5  debug file   Start debugging the current file  rather than the main entry  point     Shift F6  run all tests   Runs all the tests in testing panel     Shift F7  run current tests   Runs the current test or tests  if possible  The current    440    tests are determined by the current position in the active view  The tests are debugged  when debug is True     Shift F8  start select char   Turn on auto select mode character by character    Shift F9  Multiple commands  first available is executed      e break enable   Enable the
97.  given search  string     Ctrl Return  new line   Place a new line at the current cursor position    Ctrl Right  forward word   Action varies according to focus  Active Editor Com   mands  Move cursor forward one word  Optionally  provide a string that contains the  delimiters to define which characters are part of a word  Gravity may be    start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move forward one word    Ctrl Right  forward word gravity    end       Action varies according to focus  Ac   tive Editor Commands  Move cursor forward one word  Optionally  provide a string that  contains the delimiters to define which characters are part of a word  Gravity may be     start    or    end    to indicate whether cursor is placed at start or end of the word   Toolbar  Search Commands  Move forward one word    Ctrl S  isearch forward   Action varies according to focus  Active Editor Commands   Initiate incremental mini search forward from the cursor position  optionally entering  the given search string   Document Viewer Commands  Initiate incremental mini search  forward from the cursor position  optionally entering the given search string     Ctrl Shift Down  next line extend   Move to next screen line  adjusting the selection  range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start  end    at end  or    fnb    for first non blan
98.  gui show feedback dialog  Whether feedback dialog is shown to user on quit     Internal Name     gui show feedback dialog    Data Specification      lt boolean  O or 1 gt     Default Value     gui show osx keyboard warning    Used internally to show information about osx keyboard issues to new users  Once  turned off  it is never turned on again    Internal Name     gui show osx keyboard warning    Data Specification      lt boolean  O or 1 gt     Default Value     gui startup show wingtips    Controls whether or not the Wing Tips tool is shown automatically at startup of the  IDE     Internal Name     278   gui startup show wingtips  Data Specification     lt boolean  O or 1 gt     Default Value     Editor Preferences    consoles auto clear  Automatically clear the OS Commands consoles each time the command is re executed    Internal Name   consoles auto clear  Data Specification    lt boolean  0 or 1 gt   Default Value   False    edit autocomplete autoshow    Controls whether or not the completer is shown automatically during typing  When  disabled  it can still be shown on demand with the Show Completer item in the Source  menu     Internal Name   edit  autocomplete autoshow    Data Specification     279     lt boolean  O or 1 gt     Default Value     edit fold mime types    Set to a list of mime types for which folding should be allowed when folding in general  is enabled     Internal Name    edit  fold mime types  Data Specification     list of   lt type str gt    Defau
99.  in  forward direction  F4  goto selected symbol defn   Goto the definition of the selected source symbol  F5  debug continue   Continue  or start  running  to next breakpoint  F6  step over   Step over current execution point  F7  step into   Step into current execution point  or start debugging at first line  F8  step out   Step out of the current function or method    F9  Multiple commands  first available is executed      e break set   Set a new regular breakpoint on current line    e break clear   Clear the breakpoint on the current line    Home  beginning of line text   Move to end of the leading white space  if any  on  the current line  If toggle is True  moves to the beginning of the line if already at the  end of the leading white space  and vice versa      ISO_Left_Tab  backward tab   Outdent line at current position    Insert  toggle overtype   Toggle status of overtyping mode    386    KP_Delete  forward delete char   Action varies according to focus  Active Editor  Commands  Delete one character in front of the cursor   Toolbar Search Commands   Delete character in front of the cursor    KP_Down  next line   Move to screen next line  optionally repositioning character  within line     same    to leave in same horizontal position     start    at start     end    at end  or   fnb    for first non blank char     KP_End  end of line   Action varies according to focus  Active Editor Commands   Move to end of current line  Toolbar Search Commands  Move to the end of t
100.  is number of lines or if  gt 0 and  lt 1 0 then percent of screen  Set  move_cursor to False to leave cursor in current position within the source  otherwise it  is moved so the cursor remains on same screen line     Ctrl Delete  forward delete word   Action varies according to focus  Active Editor  Commands  Delete one word in front of the cursor   Toolbar Search Commands  Delete  word in front of the cursor    Ctrl Down  scroll text down   Scroll text down a line w o moving cursor   s relative  position on screen  Repeat is number of lines or if  gt 0 and  lt 1 0 then percent of screen   Set move_cursor to False to leave cursor in current position within the source  otherwise  it is moved so the cursor remains on same screen line     Ctrl E  scroll text up   Scroll text up a line w o moving cursor   s relative position  on screen  Repeat is number of lines or if  gt 0 and  lt 1 0 then percent of screen  Set  move_cursor to False to leave cursor in current position within the source  otherwise it  is moved so the cursor remains on same screen line     Ctrl End  end of document   Move cursor to end of document    Ctrl F12  command by name   Execute given command by name  collecting any args  as needed    Ctrl F3  search sel forward   Search forward using current selection    Ctrl F4  close   Close active document  Abandon any changes when ignore_changes is  True  Close empty windows and quit if all document windows closed when close_window  is    True     Ctrl F5  debug kill
101.  is saved  If it is closed without  saving  the encoding attribute will revert to its previous setting  The encoding cannot  be altered with this property if it is being defined by an encoding comment in a Python   HTML  XML  or gettext PO file  In this case  the file should be opened and the encoding  comment changed  Wing will save the file under the newly specified encoding     59    Important  Files saved under a different encoding without an encoding comment may  not be readable by other editors because there is no way for them to determine the  file   s encoding if it differs from the system or disk default  Wing stores the selected  encoding in the project file  but no mark is written in the file except for those encodings  that naturally use a Byte Order Mark  BOM   such as utf_16_le  utf_16_be  utf_32_le   or utf_32_be  Note that standard builds of CPython cannot read source files encoded in  utf16 or utf32        Line Ending Style    Specifies which type of line ending  line feed  carriage return  or  carriage return and line feed  is used in the file  When altered  the file will be opened  and changed in an editor  The change does not take effect until the file is saved to disk     Indent Style    This property can be used in non Python files to change the type of  indent entered into the file for newly added lines  For Python files  the only way to alter  indentation in a file is with the Indentation manager     Read only on Disk    This property reflects whether 
102.  its original  Wing  will be unable to stop at breakpoints in the module and may fail to report exceptions  to the IDE   s user interface      9  If you use an extension module to call C C   level stdio calls instead of using the  Python level facilities  the debug process will remain unresponsive to Wing IDE while  waiting for keyboard input  I O redirection to the Debug Probe in Wing Pro will fail   and you may run into out of order character reads in some cases  Details can be found  in Debug Process I O      10  Using partial path names in module __file__ attribute can in rare cases cause    Wing to fail to stop on breakpoints and exceptions  to fail to display source files  or to  confuse source files of the same name     A partial path name may end up in __file__ only when  a  invoking Python code  with a partial path name  for example with python myfile py instead of python   path to myfile py   b  sending partial path names into exec   c  using partial path  names in your PYTHONPATH or sys path  or  d  using compileall py or similar tool to  compile modules with a partial path name     139    Because Wing does everything possible to avoid this problem in practice  it actually only  occurs in the following rare cases     e When modules are loaded with partial path names and os chdir   is  called before debugging is started  This is only possible when using  wingdbstub or otherwise starting debug after your debug process is  started     e When modules are loaded with pa
103.  jp 3  Hebrew cp862  Western European latin 1  Japanese euc   jisx0213  Unicode  UTF 16  big endian  utf 16 be  Japanese euc   jis 2004  None  Central and Eastern European cp1250  Baltic Lan   guages iso8859 4  English ascii  Japanese shift jis  Ara    bic iso8859 6  Canadian English French cp863  Russian koi8    r  Japanese iso 2022 jp  Unicode  UTF 8  utf 8  Greek cp737  Nordic Lan   guages iso8859 10  Central and Eastern European mac    latin2  Chinese  PRC  gb2312  Unicode  UTF 7  utf 7  Ara    bic cp1256  Chinese  PRC  big5hkscs  Western European cp850  Es   peranto and Maltese iso8859 3  Turkish cp857  Korean cp949  US  Aus   tralia  New Zealand  S  Africa cp437  Unicode  UTF 16  utf    16  Japanese cp932      Default Value     201    None    New File EOL    Default end of line to use  One of    If        cr     or    crlf    for each entry  Note that Wing    matches existing line endings in non blank files and uses this preference only when a file  contains no end of line characters     Internal Name     edit  new file eol style    Data Specification      1f  cr  crlf     Default Value     lf    New File Extension  Default file extension for newly created files    Internal Name     edit  new file extension    Data Specification      lt type str gt     Default Value       Py    Auto save Files    Controls whether or not all edited files are autosaved before a debug run  before starting  unit tests  or before a file or build process is executed     Internal Name     202 
104.  local repository     Update   Update entire working directory with changes from the local repository   Merge   Merge changes in local repository with the working directory    Push    Push changes in local repository to remote repository     146    14 7  Perforce    Wing   s Perforce is disabled by default and must be enabled with the Active prefer   ence in the Version Control   Perforce preferences group  The support also requires  the p4 command line executable to be installed separately from Wing  Please see  http   www perforce com for information about Perforce  The p4 executable may ei   ther be in your path or set it with the Perforce executable preference     Wing finds Perforce   s working directory is found by executing p4 client  o in the  environment defined in Project Properties when a project is opened or the environment  is changed  The client specification must be defined outside of Wing     Perforce defines the following commands  in addition to those documented in Common  Version Control Operations     Edit    Prepare the files for editing and make any editor the file is opened in writable  Note  that revert on an unmodified file that   s opened for editing will release the file from edit  status     14 8  Subversion    Wing   s Subversion support requires the svn command line executable to be installed  separately from Wing  Please see http   subversion tigris org  for information about  Subversion  The svn executable may either be in your path or set it w
105.  locs  lt selected files gt     Indicate that any conflicts are resolved   svn update  locs  lt selected files gt     Update the selected files from the Subversion repository  svn update project       Update files in project    352  Git Commands    git revision control system commands  git fetch repository  locs  lt selected files gt     Pull from repository    git list  locs  lt selected files gt     Show the status of the given files in the git repository  git list branches  locs  lt selected files gt     List all branches   git log  locs  lt selected files gt     Show the revision log for the selected files in the git repository  git pull branch  locs  lt selected files gt     Pull branch from other git repository  git push branch  locs  lt selected files gt     Push branch to other git repository  git switch branch  locs  lt selected files gt      Switch to another branch    Bazaar Commands    Subversion revision control system commands   bzr log  locs  lt selected files gt     Show the revision log for the selected files in the bzr repository  bzr merge entire branch  locs  lt selected files gt     Update the selected files from the Subversion repository  bzr push entire branch  locs  lt selected files gt      Update the selected files from the bzr repository    353  C V S Commands    CVS revision control system commands  cvs add  locs  lt selected files gt     Add the files to cvs   cvs checkout       Start the initial checkout from cvs repository  Repository and workin
106.  lt stderr gt  may  cause problems on Windows if the debug process is not running in a console  This  is equivalent to setting the WINGDB_LOGFILE environment variable before launching  the debug program  use a value of   to turn off logging to file      e Set kEmbedded to 1 when debugging embedded scripts  In this case  the debug  connection will be maintained across script invocations instead of closing the debug  connection when the script finishes  When this is set to 1  you may need to call  wingdbstub debugger ProgramQuit   before your program exits  or before it  discards an instance of Python  in order to cleanly close the debug connection to  the IDE  This is equivalent to setting the environment variable WINGDB_EMBEDDED     e Set kAttachPort to define the default port at which the debug process will listen for  requests to attach  available in Wing IDE Professional only   This is equivalent to  setting the WINGDB_ATTACHPORT environment variable before launching the debug  program  If this value is less than 0  the debug process will never listen for attach  requests  If it is greater than or equal to 0  this value is used when the debug  process is running without being in contact with Wing IDE  as might happen if it  initially fails to connect to the above defined host and port  or if the IDE detaches  from the process for a period of time  For Wing IDE Professional  this is described  in more detail in section Attaching and Detaching     e Set kPWFilePath and kPWFi
107.  main debug file       306    Set selected file as the main debug file for this project  show analysis stats      Show source code analysis statistics  show current file in project tool       Show the currently selected file in the project view  if present  The selection may be the  current editor  if it has focus  or files selected in other views     show project window      Raise the project manager window   use normal project      Store project in normal format   use shared project      Store project in sharable format   view directory properties  loc None    Show the project manager   s directory properties dialog  view file properties  loc None  page None  highlighted_attribs None     View project properties for a particular file  current file if none is given  Key Bindings   OS X  Command I    view project as flat tree      View project as flattened directory tree from project file  view project as tree      View project as directory tree from project file  view project properties  highlighted_attrib None     View or change project wide properties Key Bindings  Visual Studio  Alt F 7    Project View Commands    Commands that are available only when the project view has the keyboard focus     307    browse selected from pro ject      Browse file currently selected in the project manager  debug selected from project      Start debugging the file currently selected in the project manager  execute selected from project      Execute the file currently selected in the project
108.  malesymbol  femalesymbol   telephone  telephonerecorder  phonographcopyright  caret  singlelowquotemark  dou     39    blelowquotemark  cursor  leftcaret  rightcaret  downcaret  upcaret  overbar  downtack   upshoe  downstile  underbar  jot  quad  uptack  circle  upstile  downshoe  rightshoe   leftshoe  lefttack  righttack     Multi_key  Codeinput  SingleCandidate  MultipleCandidate  PreviousCandidate  Kanji   Muhenkan  Henkan_Mode  Henkan  Romaji  Hiragana  Katakana  Hiragana_Katakana   Zenkaku  Hankaku  Zenkaku_Hankaku  Touroku  Massyo  Kana_Lock  Kana_Shift   Eisu_Shift  Eisu_toggle  Kanji_Bangou  Zen_Koho  Mae_Koho     ISO_Lock  ISO_Level2_Latch  ISO_Level3_Shift  ISO_Level3_Latch  I SO_Level3_Lock   ISO_Group_Shift  ISO_Group_Latch  ISO_Group_Lock  ISO_Next_Group   ISO_Next_Group_Lock  ISO_Prev_Group  ISO_Prev_Group_Lock  ISO_First_Group   ISO_First_Group_Lock   SO_Last_Group   SO_Last_Group_Lock   SO_Left_Tab   ISO_Move_Line_Up  ISO_Move_Line_Down  ISO_Partial_Line_Up  ISO_Partial_Line_Down     ISO_Partial_Space_Left  ISO_Partial_Space_Right  ISO_Set_Margin_Left   ISO_Set_Margin_Right  ISO_Release_Margin_Left  ISO_Release_Margin_Right   ISO_Release_Both_Margins  ISO_Fast_Cursor_Left  ISO_Fast_Cursor_Right   ISO_Fast_Cursor_Up  ISO_Fast_Cursor_Down  ISO_Continuous_Underline     ISO_Discontinuous_Underline  ISO_Emphasize  ISO_Center_Object  ISO_Enter    dead_grave  dead_acute  dead_circumflex  dead_tilde  dead_macron  dead_breve   dead_abovedot  dead_diaeresis  dead_above
109.  manager  move files selected in project to trash       Move the files and or directories currently selected in the project view to the trash or  recycling bin    open ext selected from project      Open file currently selected in the project manager  open selected from project      Open files currently selected in the project manager  remove selection from project      Remove currently selected file or package from the project  rename selected in project  new_name    Rename the currently selected file or directory in the project view  search in selected from project      Search in file or directory currently selected in the project manager  set selected as main debug file      Set selected file as the main debug file for this project  view project as flat tree      View project as flattened directory tree from project file  view project as tree       View project as directory tree from project file    308    20 3  Editor Commands    Editor Browse Mode Commands    Commands available only when the editor is in browse mode  used for VI bindings and  possibly others     enter insert mode  pos    before        Enter editor insert mode Key Bindings  VI VIM  A invokes  enter insert   mode pos    after        enter replace mode      Enter editor replace mode Key Bindings  VI VIM  Shift R   enter visual mode  unit    char       Enter editor visual mode  Unit should be one of    char        line     or block      previous select      Turn on auto select using previous mode and selecti
110.  manager in search mode    Alt Slash  fold toggle   Toggle the current fold point   Alt T  replace   Bring up the search manager in replace mode    Alt U  undo   Undo last action    Alt Up  fold collapse more current   Collapse the current fold point one more level    480    Alt W  save   Save active document  Also close it if close is True   Alt X  quit   Quit the application     BackSpace  backward delete char   Action varies according to focus  Active Editor  Commands  Delete one character behind the cursor  or the current selection if not empty     Toolbar Search Commands  Delete character behind the cursor    Ctrl 1  activate file option menu   Activate the file menu for the editor     Ctrl 2  activate symbol option menu 1   Activate the lst symbol menu for the  editor     Ctrl 3  activate symbol option menu 2   Activate the 2nd symbol menu for the  editor     Ctrl 4  activate symbol option menu 3   Activate the 3rd symbol menu for the  editor     Ctrl 5  activate symbol option menu 4   Activate the 4th symbol menu for the  editor     Ctrl 6  activate symbol option menu 5   Activate the 5th symbol menu for the  editor     Ctrl    indent to match   Indent the current line or selected region to match inden   tation of preceding non blank line    Ctrl Alt Down  goto next bookmark current_file_only True    Go to the next  bookmark  or the first one if no bookmark is selected  Stays within the file in the current  editor when current_file_only is True     Ctrl Alt F6  debug f
111.  menu will evaluate  the top level of the current file in the shell     Evaluate Selection in Python Shell    The command in the Source menu and editor   s  context menu  right click  will evaluate the current selection in the shell     Options menu This menu in the Python Shell tool contains items for evaluating the  current file or selection    To restart the Python Shell  select Restart Shell from the Options menu in the top  right of the tool  This will terminate the external Python process and restart it  clearing  and resetting the state of the shell     To save the contents of the shell  use Save a Copy in the Options menu or right click  context menu  The right click context menu also provides items for copying and pasting  text in the shell     93    94    9 1  Python Shell Auto completion    Wing   s Python Shell includes auto completion  which can be a powerful tool for quickly  finding and investigating functionality at runtime  for the purposes of code learning  or  in the process of crafting new code     Unlike the auto completer shown in the editor  the Python Shell   s completer is fueled  with actual data extracted from the runtime environment on the fly as you type     The Source Assistant will display details for the currently selected item in the auto   completer within the Python Shell  This provides quick access to the documentation  and call signature of functions and methods that are being invoked     9 2  Python Shell Options    The Options menu in th
112.  of display    Browse z Browse Return  cursor to top   Scroll so cursor is centered at top of  display    Browse z Browse Shift H  scroll text right repeat 0 5    Scroll text right a col   umn w o moving cursor   s relative position on screen  Repeat is number of columns or  if  gt 0 and  lt 1 0 then percent of screen     Browse z Browse Shift L  scroll text left repeat 0 5    Scroll text left a column  w o moving cursor   s relative position on screen  Repeat is number of columns or if  gt 0  and  lt 1 0 then percent of screen     Browse z Browse Shift M  fold collapse all   Collapse all fold points in the current  file    Browse z Browse Shift O  fold expand all current   Expand the current fold point  completely    Browse z Browse Shift R  fold expand all   Expand all fold points in the current  file    Browse z Browse b  cursor to bottom   Scroll so cursor is centered at bottom of  display    Browse z Browse c  fold collapse current   Collapse the current fold point    Browse z Browse h  scroll text right   Scroll text right a column w o moving cur   sor   s relative position on screen  Repeat is number of columns or if  gt 0 and  lt 1 0 then  percent of screen     Browse z Browse l  scroll text left   Scroll text left a column w o moving cursor   s  relative position on screen  Repeat is number of columns or if  gt 0 and  lt 1 0 then percent  of screen     Browse z Browse m  vi fold less   Approximation of zm key binding in vim  Browse z Browse o  fold expand current   E
113.  of the demo shell extension COM objects  from win32all can cause Wing to crash if they are registered  The crash occurs when    173    the file open  save  and add files to project dialog boxes are used  TortoiseHg may by  removed via the Windows control panel  The demo extensions may be disabled by using  ShellExView  http   www snapfiles com get shellexview html  or a similiar program to  find and disable them  They can also be uninstalled by running the  py file with an    unregister argument     2  The nVidia Desktop Manager may cause the system to freeze on some versions of  Windows  apparently the card becomes very sluggish while the system CPU utilization  remains near 0    The problem appears more frequently when using Wing in multi   window modes but may occur in all cases  Disabling the manager prevents the freeze  from occuring     There may be other display issues  such as failure to draw window contents when un   minimizing from Windows task bar  specifically with some nVidia cards  even if the  desktop manager is disabled     3  Pasting will sometimes fail when remote desktop or another application that tracks  the contents of the clipboard is used     4  Windows drag n drop currently doesn   t work for transferring text between Wing and  other applications     5  Wing won   t be able to launch python on Vista if the python executable is configured  to run as administrator and wing exe is not  It is recommended that neither Wing nor  python is set to run as adm
114.  one  Action    specifies how to choose the remaining displayed editor  One of     current    Show current editor  close    Close current editor before unsplitting    419    recent    Change to recent buffer before unsplitting  recent or close    Change to recent buffer before closing  split  or close the current buffer if there is only   one split left     NOTE  The parameters for this command are subject to change in the future     Browse Ctrl W Browse p  move editor focus previous   Move focus to previous  editor split    Browse Ctrl W Browse q  Multiple commands  first available is executed      e unsplit action    close       Unsplit all editors so there   s only one  Ac   tion specifies how to choose the remaining displayed editor  One of     current    Show current editor  close    Close current editor before unsplitting  recent       Change to recent buffer before unsplitting  recent or close      Change to recent buffer before closing   split  or close the current buffer if there is only  one split left     NOTE  The parameters for this command are subject to change in the  future     e close close_window 1    Close active document  Abandon any  changes when ignore_changes is True  Close empty windows and quit if  all document windows closed when close_window is True     Browse Ctrl W Browse s  split vertically   Split current view vertically  Create  new editor in new view when new  1    Browse Ctrl W Browse t  move editor focus first   Move focus to first editor sp
115.  one character    Browse Ctrl B  backward page   Move cursor backward one page    Browse Ctrl C  vi ctrl c    417    Browse Ctrl D  scroll text down repeat 0 5    Scroll text down a line w o moving  cursor   s relative position on screen  Repeat is number of lines or if  gt 0 and  lt 1 0 then  percent of screen  Set move_cursor to False to leave cursor in current position within  the source  otherwise it is moved so the cursor remains on same screen line     Browse Ctrl E  scroll text down move_cursor False    Scroll text down a line  w o moving cursor   s relative position on screen  Repeat is number of lines or if  gt 0 and   lt 1 0 then percent of screen  Set move_cursor to False to leave cursor in current position  within the source  otherwise it is moved so the cursor remains on same screen line     Browse Ctrl F  forward page   Move cursor forward one page    Browse Ctrl J  next line   Move to screen next line  optionally repositioning character  within line     same    to leave in same horizontal position     start    at start     end    at end  or   fnb    for first non blank char     Browse Ctrl M  next line in file cursor    fnb       Move to next line in file  reposi   tioning character within line     start    at start  end    at end  or    fnb    for first non blank  char     Browse Ctrl N  next line   Move to screen next line  optionally repositioning charac   ter within line     same    to leave in same horizontal position     start    at start     end    at en
116.  one word  Optionally  provide a string that contains the  delimiters to define which characters are part of a word  Gravity may be start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move forward one word    Ctrl S  save   Save active document  Also close it if close is True     Ctrl Shift Down  next line extend   Move to next screen line  adjusting the selection  range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start     end    at end  or    fnb    for first non blank char     Ctrl Shift End  end of document extend   Move cursor to end of document  ad   justing the selection range to new position    Ctrl Shift F  batch search   Display Search in Files tool  The look_in argument gets  entered in the look in field if not None or      The current selection is put into the search  field if it doesn   t span multiple lines and either use_selection is true or there   s nothing  in the search field  The given search text is used instead  if provided    Ctrl Shift F3  search sel backward   Search backward using current selection  Ctrl Shift F5  debug stop   Pause free running execution at current program counter  Ctrl Shift F6  debug all tests   Debug all the tests in testing panel     Ctrl Shift F7  debug current tests   Runs the current test or tests  if possible  The  current tests are determined by the current position in the active
117.  or push the Step Into icon in the toolbar   This will run the main debug file if one has been defined  or otherwise the file open  in the frontmost editor window  Execution stops at the first line of code     e Choose Debug Current File from the Debug menu or Debug Selected from the  right click popup menu on the Project tool to run a specific file regardless of  whether a main debug file has been specified for your project  This will stop on  the first breakpoint or exception  or upon program completion     e Choose Run to Cursor from the Debug menu or toolbar  This will run the main  debug file if one has been defined or otherwise the file open in the frontmost editor  window  Execution continues until it reaches the line selected in the current source  text window  until a breakpoint or exception is encountered  or until program  completion     e Use Debug Recent in the Debug menu to select a recently debugged file  This will  stop on the first breakpoint or exception  or upon program completion     e Use one of the key bindings given in the Debug menu   Additional options exist for initiating a debug session from outside of Wing and for    attaching to an already running process  These are described in sections Debugging  Externally Launched Code and Attaching  respectively     108    Once a debug process has been started  the status indicator in the lower left of the  window should change from white or grey to another color  as described in Debugger  Status        Non S
118.  relative position on screen  Repeat is number  of pages or if  gt 0 and  lt 1 0 then percent of screen  Set move_cursor to False to leave  cursor in current position within the source  otherwise it is moved so the cursor remains  on same screen line     scroll text right  repeat  lt numeric modifier  default 1 gt      Scroll text right a column w o moving cursor   s relative position on screen  Repeat is  number of columns or if  gt 0 and  lt 1 0 then percent of screen  Key Bindings  VI VIM   zh    scroll text up  repeat  lt numeric modifier  default 1 gt   move_cursor True     Scroll text up a line w o moving cursor   s relative position on screen  Repeat is number of  lines or if  gt 0 and  lt 1 0 then percent of screen  Set move_cursor to False to leave cursor  in current position within the source  otherwise it is moved so the cursor remains on  same screen line  Key Bindings  Normal  Ctrl Up  VI VIM  Ctrl Up  Emacs  Ctrl Up   Brief  Ctrl Up  Visual Studio  Ctrl Up    scroll to cursor     Scroll to current cursor position  if not already visible  search char  dir 1  pos 0  repeat  lt numeric modifier  default 1 gt   single_line 0     Search for the given character  Searches to right if dir  gt  0 and to left if dir  lt  0   Optionally place cursor pos characters to left or right of the target  e g   use  1 to place  one to left   If repeat  gt  1  the Nth match is found  Set single_line 1 to search only within  the current line  Key Bindings  VI VIM  F invokes search cha
119.  reload options     e From time to time  as Python changes  some newer Python language constructs    and possible type inferencing cases are not supported     A good way to work around these limitations  when they arise  is to place a breakpoint  in the code where you are working  run to it  and then auto completion will be based on  the actual runtime state rather than static analysis     15 3  Helping Wing Analyze Code    There are a number of ways of assistant Wing   s static source analyzer in determining  the type of values in Python code     Using isinstance   to Assist Analysis    153    One way to inform the code analysis facility of the type of a variable is to add an  isinstance call in your code  An example is assert isinstance obj  CMyClass    The code analyzer will pick up on these and present more complete information for the  asserted values     In cases where doing this introduces a circular import  you can use a conditional to allow  Wing   s static analyser to process the code without causing problems when it is executed     if 0   import othermodule  assert isinstance myvariable  othermodule COtherClass     In most code  a few such assertions go a long way  The more Wing knows about your  code  the faster you will be able to edit and navigate it     Using   pi files to Assist Analysis    Wing   s source analyser can only read Python code and does not contain support for  understanding C C   extension module code other than by attempting to import the  exten
120.  same horizontal position     start    at start     end    at end  or   fnb    for first non blank char     Visual Esc  exit visual mode   Exit visual mode and return back to default mode    21 3  VI VIM Personality    This section documents all the default key bindings for the VI VIM keyboard personality   set by the Personality preference     Alt 1  fold python methods   Fold up all Python methods  expand all classes  and  leave other fold points alone    Alt 2  fold python classes   Fold up all Python classes but leave other fold points  alone    Alt 3  fold python classes and defs   Fold up all Python classes  methods  and func   tions but leave other fold points alone    Alt BackSpace  backward delete word   Action varies according to focus  Active  Editor Commands  Delete one word behind of the cursor   Toolbar Search Commands   Delete word behind the cursor    Alt Delete  backward delete word   Action varies according to focus  Active Editor  Commands  Delete one word behind of the cursor   Toolbar Search Commands  Delete  word behind the cursor    Alt Down  fold expand more current   Expand the current fold point one more  level    Alt End  fold expand all   Expand all fold points in the current file    414  Alt F11  prev points of use match   Display the previous match is the active points  of use tool    Alt F12  next points of use match   Display the next match is the active points of  use tool    Alt F3  search   Bring up the search manager in search mode   Alt F4
121.  section documents all the default key bindings for the Visual Studio keyboard  personality  set by the Personality preference     Alt 1  fold python methods   Fold up all Python methods  expand all classes  and  leave other fold points alone    Alt 2  fold python classes   Fold up all Python classes but leave other fold points  alone    Alt 3  fold python classes and defs   Fold up all Python classes  methods  and func   tions but leave other fold points alone    Alt BackSpace  backward delete word   Action varies according to focus  Active  Editor Commands  Delete one word behind of the cursor   Toolbar Search Commands   Delete word behind the cursor    445    Alt Delete  backward delete word   Action varies according to focus  Active Editor  Commands  Delete one word behind of the cursor   Toolbar Search Commands  Delete  word behind the cursor    Alt Down  fold expand more current   Expand the current fold point one more  level    Alt End  fold expand all   Expand all fold points in the current file    Alt F11  prev points of use match   Display the previous match is the active points  of use tool    Alt F12  next points of use match   Display the next match is the active points of  use tool    Alt F3  search   Bring up the search manager in search mode   Alt F4  close window   Close the current window and all documents and panels in it  Alt F5  run to cursor   Run to current cursor position    Alt F6  run failed tests   Re run all the previously failed tests  The tests a
122.  separately     Internal Name   main text styles  Data Specification      dict  keys   one of   lt type str gt    admonition title  dan    ger  footnote  citation  admonition  calltip doc  title    4  calltip strong  caution  title 3  title O  title    1  image link  calltip type  calltip poc  hint  calltip arg    current  tip  literal  note  field  emphasis  title 2  calltip   class symbol  attention  calltip def symbol  link  strong  marked   list items  calltip def  list items  default  docinfo    header  transition  calltip arg  caption  warning  er    ror  navigation link  navigation    values   tuple of   one of   tu    ple length 2 of   foreground    None or  lt type str gt      tu    ple length 2 of   style    None or  oblique  italic  nor    mal      tuple length 2 of   justification    None or  right  fill  cen   ter  left      tuple length 2 of   font_desc    None or  lt type str gt      tu   ple length 2 of   weight    None or  one of   lt type int gt    heavy  bold  ul     trabold  normal  light  ultralight       tuple length 2 of   right_margin    None or    ple length 2 of   stretch    None or  condensed  ex    panded  normal  semicondensed  extracondensed  extraex    panded  semiexpanded  ultracondensed  ultraexpanded      tu    ple length 2 of   strikethrough    None or  lt boolean  0 or 1 gt      tu   ple length 2 of   rise    None or  from  100000 to 100000      tu   ple length 2 of   variant    None or  smallcaps  nor    mal      tuple length 2 of   underl
123.  set up SSH on Linux Unix     If you do not already have openssh and cvs installed  install them from packages that  came with your Linux or Unix distribution     1  If ssh add  1 complains that it cannot find the SSH agent  run ssh agent  bash  or your favorite shell   This can be skipped on most modern Linux  distributions because they run the X window manager inside ssh agent     2  If you don   t already have an ssh key in  ssh  issue the command ssh   keygen  t rsa to create a key pair in  ssh id_rsa  the private key  and   ssh id_rsa pub  the public key   Enter a passphrase you will remember     3  Copy the file  ssh id_rsa pub to your server and add it to the   ssh authorized_keys file under your username  E g   use scp rsa   public key user hostname  and then log into hostname and cat rsa   public key  gt  gt   ssh authorized_keys     4  Back on your client  where you plan to run Wing   type ssh add and enter  your passphrase to get the SSH key loaded into ssh agent     5  Type ssh user hostname and you should be able to log into your server  without being asked for a password     To set up SSH on OS X     You can set up SSH on OS X in the same way as on Linux Unix  de   scribed above   Then run ssh agent bash followed by ssh add on the com   mand line in X11  and then launch Wing from the command line using  Applica   tions Wing WingIDE  app Contents MacOS wing  assuming you ve placed Wing in the  Applications folder   Wing must be launched in this way so that it inh
124.  shared perspectives file  which    44    is configured with the Shared Perspective File preference  instead of in the project  file  This makes the shared perspectives available across all projects  or potentially to  multiple users  When multiple instances of Wing share this file  Wing will watch for  changes and auto reload the set of perspectives into each instance of Wing  as another  instance makes changes  Note that when a shared perspective is un shared  it is moved  into the project currently open in the instance of Wing that un shared it     When a key binding is defined  that key sequence will cause Wing to switch to the  associated perspective     When the Auto save Perspectives is set to Configured by Perspective  the Per   spective Manager will also include a column to specify whether the perspective should  be auto saved before transitioning to another perspective  This is described in more  detail below     The Perspective Manager provides the following functionality in its context  right click   menu     e New creates a new untitled perspective with the current state of the application     e Duplicate makes a copy of the selected perspective  including its stored applica   tion state     e Delete removes the selected perspective     e Update with Current State replaces the stored state for the selected perspective  with the current application state     e Restore Saved State loads the state stored in the selected perspective without  making that perspective c
125.  show wingware wiki      Show the Wingware wiki for sharing scripts  tips  and tricks  switch document  document_name     Switches to named document  Name may either be the complete name or the last path  component of a path name  Key Bindings  Emacs  Ctrl X B  Visual Studio  Ctrl K  Ctrl S    toggle bookmark       Set or remove a bookmark at current location on the editor  When set  the name of  the bookmark is set to an auto generated default  Key Bindings  Normal  Ctrl Alt T   Emacs  Ctrl X R T  Visual Studio  Ctrl Alt T  OS X  Command H    toggle bookmark at click       Set or remove a bookmark at current location on the editor  When set  the name of the  bookmark is set to an auto generated default     toolbar search  text  next False  set_anchor True  forward True     Search using given text and the toolbar search area  The search is always forward from  the current cursor or selection position    toolbar search focus       Move focus to toolbar search entry  Key Bindings  Normal  Ctrl D  Visual Studio   Ctrl D    299    toolbar search next  set_anchor True    Move to next match of text already entered in the toolbar search area  toolbar search prev  set_anchor True    Move to previous match of text already entered in the toolbar search area  vi goto bookmark       Goto bookmark using single character name defined by the next pressed key Key Bind   ings  VI VIM  Grave    vi set bookmark       Set a bookmark at current location on the editor using the next key press as t
126.  simply by file name and line  number  If the file is edited outside of Wing  the bookmark   s position may appear  to slip     When navigating to a bookmark from the Source menu or key binding  Wing will present  a dialog or entry area at bottom of the screen  depending on editor personality  into  which the bookmark name can be typed  A list of possible completions will be displayed   Pressing tab will select the currently highlighted completion     A list of defined bookmarks is available in the Bookmarks tool  which is available from  the Tools menu  Right click on an entry for a context menu of operations for the selected  bookmark or bookmarks  Multi selection is possible by holding down the shift and or  control keys  Double clicking or middle mouse clicking will navigate to the selected  bookmark     When the Bookmarks tool has focus  keyboard navigation is possible with the arrow  keys and by typing letters to move quickly to a particular bookmark  Enter can then be  pressed to navigate to the selected bookmark     When bookmarks are defined in the current editor file  then Wing will add a bookmark  icon to the top right of the editor  Clicking on this will pop up a menu of the bookmarks  in the current file     Traversing bookmarks  within the current file or within all files  is also possible with the  Traverse Bookmarks sub menu in the Source menu and the key bindings shown there     62    In VI mode  the standard m and      plus key bindings are supported  in add
127.  temp clicked      Set a new temporary breakpoint at the current mouse click location  break toggle      Toggle breakpoint at current line  creates new regular bp when one is created   clear exception ignores list      Clear list of exceptions being ignored during debugging  clear var errors      Clear stored variable errors so they get refetched  collapse tree more      Collapse whole selected variables display subtree one more level  debug attach      Attach to an already running debug process   debug continue      Continue  or start  running  to next breakpoint Key Binding  F5  debug detach       Detach from the debug process and let it run    359    debug file       Start debugging the current file  rather than the main entry point  Key Binding  Shift   F5    debug kill       Stop debugging Key Bindings  Normal  Ctrl F5  VI VIM  Ctrl F5  Emacs  Ctrl F5   Brief  Ctrl F5  Visual Studio  Ctrl F5  OS X  Command F5    debug probe clear      Clear debug probe    debug restart      Stop and restart the current debug process  debug stop       Pause free running execution at current program counter Key Bindings  Normal  Ctrl   Shift F5  VI VIM  Ctrl Shift F5  Emacs  Ctrl Shift F5  Brief  Ctrl Shift F5  Visual  Studio  Ctrl Shift F5  OS X  Command Shift F5    debug to clicked      Debug to the line at the current mouse click location  exception always stop      Always stop on exceptions  even if they are handled by the code  exception never stop      Never stop on exceptions  even 
128.  text  wrap line column     type    The type of data to collect  Currently this is one of     string length     a string with given maximum length  uses default 80 chars if length is  omitted     date    current date in locale   s preferred format or in the time  strftime   format given  in the environment variable __DATE_FORMAT__    datetime    current date time in locale   s preferred format or in the time  strftime    format given in the environment variable __DATETIME_FORMAT__    If this field is omitted or empty  string is assumed     default    The default value to use  This may be the actual value  or may contain  environment variable references in the form  Cenvname  or   envname  to attempt to  read all or part of the value from the named environment variable or one of the special  variables enumerated in Variable Expansion     Environment variables can be specified either in the Debug tab of Wing   s Project Prop   erties or in the environment that exists before Wing is launched  Values in the Project  Properties override any values set before starting Wing     When this field is omitted  or when no default environment value can be found  the field  will be left blank      Indentation and Line Endings    Snippets should always use one tab for each level of indentation  Tabs will be replaced  with the appropriate indentation type and size when the snippet is used in a new or  existing file  either according to content of the target file or using the configured indent
129.  than one computer  make sure the clocks of the two  computers are synchronized  The caching mechanism uses time stamps  and may become  confused if this is not done     The analysis cache may be removed in its entirety with no ill effects     PyLint Integration    Wing Pro provides a simple integration with pylint  which is a third party tool that runs  error and warning analyses on Python code     To use the tool  you must install pylint separately first and verify that it works from  the command line  Note that pylint has certain dependencies that may be missing from  your system  See the pylint website for installation details     Once this is done and pylint works on the command line  bring up the PyLint tool  from the Tools menu  Right click on the tool and select Configure  This will open a  configuration file in an editor in Wing  You can alter the following here     e command    The command that invokes pylint    e args    Additional command line arguments to send to pylint  see the  pylint documentation for details on those available     e timeout    The maximum amount of time to wait for pylint to complete  before aborting analysis     e autosave    Set this to 1 to automatically save a file before starting  pylint to analyze it or 2 to auto save all open files before starting pylint  to analyze any file  O disables any auto saving     Once you have edited the configuration file as desired  save and close it     Per project pylintrc files can also be specified  If 
130.  the association stored there is missing quotes around the  1 argu   ment  It should instead read as follows      C  Program Files Wing IDE bin wing exe    1        On Linux  KDE   s Konqueror has the same problem that file names passed on the  command line to applications bound to a file type are not enclosed with quotes  so the  command line is not parsed correctly  We do not currently have a work around for this  problem     18 7  Trouble shooting Failure to Print    This section provides some hints to get printing working if it doesn   t work    out of the  box        On Windows    Wing has trouble printing with some printer drivers  One known issue is failure to  transfer the correct font to the printer  The symptom is correctly printed header and  footer but gibberish in the body of the source code  The problem can be solved in the  Advanced menu under Print Properties in Windows by changing TrueTypeFont from     substitute with device font    to    download as soft font        On Linux    For Python files  Wing prints PDF formatted output directly to the printer  This does  not work on at least some Linux distributions and can be worked around by setting the  Print Spool Command preference to pdf2ps  s     kprinter   stdin     Wing uses kprinter by default on Linux when it is present  Another problem on Linux  occurs when using a buggy version of kprinter  To rule that out  try pdf2ps  s      lpr or simply lpr  s instead for the Print Spool Command preference    Turnin
131.  the project  In  many cases  this is the only operation needed to set up a new project  You will  be able to specify a filter of which files to include  whether to include hidden  amp   temporary files  and whether to include subdirectories  The list of files in the  project will be updated as files matching the criteria are added and removed from  the disk     e Add Current File will add the frontmost current editor file to the project if it  is not already there     47    48    e Add New File is used to create a new file and simultaneously add it to your  project     e Add File will prompt you to select a single file to add to the project view  Note  that this also may result in adding a new directory to the project manager window   if that file is the first to be added for a directory     A subset of these options can be accessed from the context menu that appears when  right clicking your mouse on the surface of the project manager window     3 2  Removing Files and Packages    To remove a specific file  select it and use the Remove From Project menu item in the  right click context menu from the surface of the Project Manager window  or by selecting  an item on the project and using Remove Selected Entry in the Project menu  You can  also remove a whole directory and all the files that it contains in this way     3 3  Saving the Project    To save a new project  use Save Project As in the Project menu  Once a project file  has been saved the first time  it will be auto 
132.  the size of the entry area     The following search options can be selected from the tool   e Case Sensitive    Check this option to show only exact matches of upper and  lower case letters in the search string     e Whole Words    Check this option to require that matches are surrounded by  white space  spaces  tabs  or line ends  or punctuation other than _  underscores      e In Selection    Search for matches only within the current selection on the editor   The following additional options are available from the Options popup menu     e Show Replace    Whether or not the Replace field is visible in the tool   e Text Search    Select this to do a regular text search without wildcard or regex     e Wildcard Search    Select this to allow use of special characters for wildcarding  in the search string  see Wildcard Search Syntax for details      e Regex Search    Select this to use regular expression style searching  This is a  more powerful variant than wildcard search that allows for more complex specifi   cation of search matches and replacement values  For information on the syntax  allowed for the search and replace strings  see Python   s Regular Expression Syntax  documentation  In this mode  the replace string can reference regex match groups  with  1   2  etc  as in the Python re sub   call     e Wrap Search    Uncheck this to avoid wrapping around when the search reaches  the top or bottom of a file     e Incremental    Check this to immediately start or restarte
133.  the virtualenv   s Python  Another fix  is to edit pylint instead and add the following lines at the top     import os  dirname   os path dirname __file__   execfile os path join dirname     activate_this py         Credits    Thanks to Markus Meyer for providing the original implementation of this capability for  Wing IDE  The source code for this integration is available under open source license in  scripts pylintpanel py within your Wing IDE installation     Scripting and Extending Wing IDE    Wing IDE provides an API that can be used to extend and enhance the IDE   s function   ality with scripts written in Python     Simple scripts can be written without any extra tools    Wing will find and load scripts  at startup and reload them when they are edited within Wing IDE and saved to disk   The API Wing allows scripts access to the editor  debugger  project  and a range of  application level functionality  Scripts may also access all documented preferences  and can issue any number of documented commands which implement functionality  not duplicated in the formal Python API     Scripts can be executed like any other command provided by Wing IDE  Scripts can add  themselves to the editor and project context menus  or to new menus in the menu bar   and they can also register code for periodic execution as an idle event  They can also  be bound to a key combination  or can be invoked by name using the Command by Name  item in the Edit menu     Errors encountered while loadin
134.  this feature with the def and class snippet variants     The set of valid contexts depends on file type  For Python files the valid context names  are module  class  method  function  comment  string  For HTML and XML  files  are divided into content  code  within  lt  and  gt    comment  and string  Other files only  distinguish code  comment  and string  Additionally  the context all is used for all file  types to indicate any context     To set the context for a snippet  click on the context name in the snippet lists   s Context  column  or use the items in the right click context menu on the snippet list     Key Bindings    The snippet list context menu menu also allows assigning key bindings to snippets  so  they can be executed more easily  The key binding entry area is shown at the bottom  of the IDE window  and Enter is pressed to accept the displayed binding  Note that  bindings can be multi key sequences such as Ctrl Shift H Ctr1l A  Pressing the keys  in sufficiently rapid succession creates a sequence  Waiting a moment will start a new  sequence when further keys are pressed  Clicking away from the entry area will abort  the operation without assigning any key binding     Note that key bindings are assigned to the snippet by name and not to a particular  snippet file  If multiple like named snippets exists for different file types or contexts  the  appropriate snippet is chosen when the key binding is used     Execution and Data Entry    When snippets are execute
135.  to all upper case   smart copy       Implement a variant of clipboard copy that copies the whole current line if there is no  selection on the editor     hyphen to under  editor       Change hyphens  dashes  to underscores in current selection  lower case  editor       Change current selection to all lower case   cc checkout  app        Check the current file out of clearcase  This is best used with Wing configured to auto   reload unchanged files     sort selected  app      Sort selected lines of text alphabetically  insert spaces to tab stop  tab_size 0     Insert spaces to reach the next tab stop  units of given tab size or editor   s tab size if  none is given     367    fold python classes       Fold up all Python classes but leave other fold points alone Key Bindings  Normal  Alt 2   VI VIM  Alt 2  Emacs  Alt 2  Brief  Alt 2  Visual Studio  Alt 2  OS X  Command Ctrl   KP_Divide    vi fold less      Approximation of zm key binding in vim Key Bindings  VI VIM  z m  vs tab  app       Modified tab indentation command that acts like tab in Visual Studio   describe key briefly  key     Display the commands that a key is bound to in the status area  Does not fully work  for the vi binding     indent new commment line       Enter a newline  indent to match previous line and insert a comment character and a  space  Assumes that auto indent is enabled     search python docs     Do a search on the Python documentation for the selected text in the current editor  delete selected l
136.  to make it possible to keep the debug process  responsive while waiting for I O  This code mimics the environment found outside of  the debugger  so any code that uses only Python level I O does not need to worry about  this change of environment     There are however several cases that can affect users that bypass Python level I O by  doing C C   level I O from within an extension module     e Any C C   extension module code that does standard I O calls using the C level  stdin or stdout will bypass Wing   s I O environment  which affects only Python   level stdin and stdout   This means that waiting on stdin in C or C   code will  make the debug process unresponsive to Wing  causing time out and termination  of the debug session if you attempt to Pause or alter breakpoints at that time  In  this case  redirection of I O to the debugger I O tool and Debug Probe  in Wing  Pro only  will also not work     e On all platforms  calling C level stdin from multiple threads in a multi threaded  program may result in altered character read order when running under the Wing  debugger     e When debugging on win32  calling C level stdin  even in a single threaded pro   gram  can result in a race condition with Wing   s I O multiplexer that leads to  out of order character reads  This is an unavoidable result of limitations on mul   tiplexing keyboard and socket I O on this platform     If you run into a problem with keyboard I O in Wing   s debugger  you should   1  Turn off Wing   s 
137.  too use the 64 bit packages if  you are on a 64 bit system     23    Installing from RPM     Wing can be installed from an RPM package on RPM based systems  such as RedHat  and Mandriva  To install  run rpm  i wingide4 0 4 0 0 1 i1386 rpm as root or use  your favorite RPM administration tool to install the RPM  Most files for Wing are placed  under the  usr lib wingide4 0 directory and the wing4 0 command is placed in the   usr bin directory     Installing from Debian package     Wing can be installed from a Debian package on Debian  Ubuntu  and other Debian   based systems     You will need to install enscript before installing Wing  if it   s not already on your  system     To install  run dpkg  i wingide4 0_4 0 0 1_i386 deb    as root or use your favorite package administration tool to install  Most files for Wing are  placed under the  usr lib wingide4 0 directory and the wing4 0 command is placed  in the  usr bin directory     Installing from Tar Archive     Wing may also be installed from a tar archive  This can be used on systems that do  not use RPM or Debian packages  or if you wish to install Wing into a directory other  than  usr lib wingide4 0  Unpacking this archive with tar  zxvf wingide 4 0 0   1 1386 linux tar gz will create a wingide 4 0 0 1 i386 linux directory that con   tains the wing install py script and a binary package tar file     Running the wing install py script will prompt for the location to install Wing   and the location in which to place the 
138.  toolbar icon size    Data Specification      medium  default  xlarge  text height  large  small     186    Default Value     small    Toolbar Style    Select style of toolbar icons to use  One of    icon only        text only        text below        text   right     or use    default    to select the system wide settings     Internal Name     gui toolbar icon style    Data Specification      medium  default  xlarge  text height  large  small     Default Value     icon only    e Colors    Text Selection Color  The color used to indicate the current text selection on editable text     Internal Name     gui text selection color    Data Specification      tuple length 3 of   from 0 to 255    from 0 to 255    from 0 to 255      Default Value      253  253  104     187    Source Code Background    Background color to use on the source editor  Python Shell  Debug Probe  Source Assis   tant  and other tools that display source code  Foreground colors for text may be altered  automatically to make them stand out on the selected background color     Internal Name    edit  background color  Data Specification     None or  tuple length 3 of   from O to 255    from 0 to 255    from 0 to 255     Default Value    None    Debugger Run Marker Color  The color of the text highlight used for the run position during debugging    Internal Name    debug  run marker color  Data Specification     tuple length 3 of   from 0 to 255    from 0 to 255    from 0 to 255    Default Value     255  163  163
139.  used when using a non  OS X keyboard layout on the Apple X11 server  The option key should be used only if  it   s not needed to enter individual characters  This will use xmodmap to set the global  X11 key map to use the specified key as the alt key modifier  Turning this option off if  it was on previously will reset the option key back to mode_switch  which is the Apple  default setting  Non default options will override any externally set xmodmap setting  so use with care if you   ve customized your xmodmap     Internal Name    gui osx key for alt  Data Specification     default  command  option2  option   Default Value    default    gui last feedback shown  Used internally to avoid showing the feedback dialog on exit over and over again     Internal Name   gui last feedback shown  Data Specification    lt type float gt   Default Value   0 0    gui more controls for search in files  Controls whether    Search in Files    dialog has an extra row of visible options as buttons     Internal Name     275  gui more controls for search in files  Data Specification    lt boolean  O or 1 gt     Default Value     gui prefered symbol order    Control preferred order in source index displays such as the editor browse menus  Either  sort in    file order    or    alpha order        Internal Name    gui prefered symbol order  Data Specification     file order  alpha order   Default Value    alpha order    gui reported exceptions    Used internally to remember which unexpected exceptio
140.  using  a version control system outside of Wing     14 9 1  Configuring SSH    Most modern version control systems use SSH as a secure and convenient way to access  the version control repository     To set up SSH on Windows     1  Install putty    the combined installer is easiest    2  Add the location where putty is installed to your PATH environment variable  from the Advanced tab of the System control panel     3  Run puttygen and generate an SSH2 RSA key pair  Use a passphrase you  will remember  Save both private and public keys to disk  Copy the contents  of the key box  starting with    ssh rsa     to rsa public key on disk     4  Copy the rsa public key file to your server and add it to the   ssh authorized_keys file under your username  E g   use pscp rsa   public key user hostname  and then log into hostname and cat rsa   public key  gt  gt   ssh authorized_keys     148    5  Run putty and enter host name in Host Name and Saved Sessions boxes  then press Save  Go to the Connection category and enter your user name on  the server into the Auto login username box  Go back to Session category  and press Save again     6  Run pageant  which adds an icon to your Windows tray  Right click and  select Add Key  Navigate to the private key saved from puttygen and enter  your passphrase when prompted     7  Restart putty  click on the saved session  press Load  and then Open  This  should open a connection to the server without prompting for any further  information     To
141.  var   without a value  will remove the given variable  so it is undefined  Note that you are operating on the environment inherited by the  IDE when it started and not modifying an empty environment  When the Use system  environment choice is set  any entered values are ignored and the inherited environment  is used without changes     Debug    The following properties are defined in the Debug tab     Main Debug File    This defines where execution starts when the debugger is launched  from the IDE  The default is to start debugging in the current editor file  Alternatively   use this property to define a project wide main debug file so that debug always started  in that file regardless of which file is current in the editor     Initial Directory    When the Use default radio button is checked  the initial working  directory set for each debug session will be the location where the main entry point file   if any  or project file is located  Otherwise  when Custom is selected  the specified  directory is used or  when blank  the project file   s directory is used     Build Command    This command will be executed before starting debug on any source  in this project  This is useful to make sure that C C   extension modules are built  for    52    example in conjunction with an external Makefile or distutils script  before execution  is started  The build is configured through and takes place in the OS Commands tool     Python Options    This is used to select the command line 
142.  view     Ctrl Shift F9  Multiple commands  first available is executed      432    e break disable all   Disable all breakpoints  e break enable all   Enable all breakpoints    Ctrl Shift G  batch replace   Display search and replace in files tool     Ctrl Shift Home  start of document extend   Move cursor to start of document   adjusting the selection range to new position    Ctrl Shift I  add current file to project   Add the frontmost currently open file to  project    Ctrl Shift ISO_Left_Tab  begin visited document cycle move_back False     Start moving between documents in the order they were visited  Starts modal key  interaction that ends when a key other than tab is seen or ctrl is released     Ctrl Shift KP_Down  next line extend   Move to next screen line  adjusting the  selection range to new position  optionally repositioning character within line  same    to  leave in same horizontal position     start    at start     end    at end  or    fnb    for first non blank  char     Ctrl Shift KP_End  end of document extend   Move cursor to end of document   adjusting the selection range to new position    Ctrl Shift KP_Home  start of document extend   Move cursor to start of docu   ment  adjusting the selection range to new position    Ctrl Shift KP_Left  backward word extend   Action varies according to focus  Ac   tive Editor Commands  Move cursor backward one word  adjusting the selection range  to new position  Optionally  provide a string that contains the delimit
143.  where case does not match     Internal Name     edit  match case occurrences    Data Specification      lt boolean  O or 1 gt     Default Value     True    Occurrences Indicator Style    The style of indicator to use for highlighting other occurrences of the current selection  on the editor     Internal Name     edit  occurrence indicator style    Data Specification      box  block     Default Value     box    e Bookmarks    Bookmark Color  Color to use on the source editor to indicate the location of user defined bookmarks     Internal Name     222    edit  bookmark color    Data Specification      tuple length 3 of   from 0 to 255    from 0 to 255    from 0 to 255      Default Value      16  192  16     Bookmark Style    Visual display style to use for user defined bookmarks  Either an underline  a background  color change  or no visible marker     Internal Name     edit  bookmark style    Data Specification      None  underline  background     Default Value     background    e Folding    Enable Folding  Set to true to enable structural folding on source  false to disable    Internal Name     edit  enable folding    Data Specification      lt boolean  O or 1 gt     223    Default Value     Line Mode    Set to    above expanded        below expanded        above collapsed        below collapsed     or     none    to indicate where fold lines are shown and whether they are above or below  the line where the fold point is located     Internal Name   edit  fold line mode  Data
144.  write changes to a file within a  zip or  egg file or  otherwise write to or create a  zip or  egg file     When stepping through code  using goto definition  or using other methods to goto a  line in a file  a file within a  zip or  egg file will be opened automatically  To open a file  through the open file dialog  specify the name of the  zip or  egg file and add a   followed  by the name of the file to open     74    4 14  Keyboard Macros    The Edit menu contains items for starting and completing definition of a keyboard or  command sequence macro  and for executing the most recently defined macro  Once  macro recording is started  any keystroke or editor command is recorded as part of that  macro  until macro recording is stopped again  Most commands may be included in  macros  as well as all character insertions and deletions     Macros can be quite powerful by combining keyboard driven search  Mini search in  the Edit menu   cursor movements  and edits     4 15  Notes on Copy Paste    There are a number of ways to copy and paste text in the editor     e Use the Edit menu items  This stores the copy cut text in the system wide clip   board and can be pasted into or copied from other applications     e Use key equivalents as defined in the Edit menu   e Right click on the editor surface and use the items in the popup menu that appears     e Select a range of text and drag it using the drag and drop feature  The default  drag operation is to copy on Linux and OS X and m
145. 32 bit version of Wing  This version can also debug 64 bit Python     Installing the 32 bit version of Wing may require installing some compatibility packages  as follows     On 64 bit Ubuntu and Debian systems  you need to first install the 32 bit compat   ibility libraries  This is the   ia32 libs    package on Ubuntu  On Debian and Ubuntu  9   the ia32 libs gtk package is needed as well  Then install the 32 bit Wing with  the command dpkg  i   force architecture wingide4 0_4 0 0 1_ i386 deb The  package contains what you need to run your debug process with 64 bit Python but Wing  itself runs as a 32 bit application     On CentOS 64 bit systems  installing the libXtst i386 and gtk2 386 packages with  yum provides the necessary 32 bit support     1 12 2  Installing Extra Documentation    If you are using Linux Unix  the Python manual is not included in most installations   so you may also wish to download and install local copies of these pages     Place the top level of the HTML formatted Python manual  where index html is found   into python manual     within your Wing IDE installation  Substitute for     the  major and minor version of the corresponding Python interpreter  for example  for the  Python 2 3 x manual  use python manual 2 3      Once this is done  Wing will use the local disk copy rather than going to the web when  the Python Manual item is selected from the Help menu     25  1 12 3  Source Code Installation    Source code is available to licensed users of Wi
146. Action varies according to focus  Active  Editor Commands  Delete one character behind the cursor  or the current selection if  not empty    Toolbar Search Commands  Delete character behind the cursor    Shift Ctrl F8  start select block   Turn on auto select block mode    Shift Delete  cut   Action varies according to focus  Active Editor Commands  Cut  selected text   Search Manager Instance Commands  Cut selected text   Toolbar Search  Commands  Cut selection    Shift Down  next line extend   Move to next screen line  adjusting the selection    388    range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start  end    at end  or    fnb    for first non blank char     Shift End  end of line extend   Action varies according to focus  Active Editor Com   mands  Move to end of current line  adjusting the selection range to new position    Toolbar Search Commands  Move to the end of the toolbar search entry  extending the  selection    Shift F1  move focus   Move the keyboard focus forward within the Window to the  next editable area    Shift F11  frame show   Show the position  thread and stack frame  where the de   bugger originally stopped    Shift F2  Multiple commands  first available is executed    e enter fullscreen   Hide both the vertical and horizontal tool areas    and toolbar  saving previous state so it can be restored later with  exit_fullscreen    e exit fullscreen   Restore previous n
147. Be   gin  Select  Print  Execute  Insert  Undo  Redo  Menu  Find  Cancel  Help  Break   Mode switch  script switch  Num_Lock     F1  F2  F3  F4  F5  F6  F7  F8  F9  F10  F11  L1  F12  L2  F13  L3  F14  L4  F15  L5   F16  L6  F17  L7  F18  L8  F19  L9  F20  L10  F21  R1  F22  R2  F23  R3  F24  R4  F25   R5  F26  R6  F27  R7  F28  R8  F29  R9  F30  R10  F31  R11  F32  R12  F33  R13  F34   R14  F35  R15      5  For equivalents that work with the mouse buttons  use these     Pointer_Left  Pointer_Right  Pointer_Up  Pointer_Down  Pointer_UpLeft   Pointer_UpRight    Pointer_DownLeft  Pointer_ DownRight  Pointer_Button_Dfit   Pointer_Button1  Pointer_Button2  Pointer_Button3  Pointer_Button4   Pointer_Button5  Pointer_DblClick_Dflt    Pointer_DblClickl  Pointer  DblClick2   Pointer_DbIClick3  Pointer_DbIClick4  Pointer_DbIClick5  Pointer_Drag_Dfit   Pointer_Dragl  Pointer_Drag2  Pointer_Drag3  Pointer_Drag4  Pointer_EnableKeys   Pointer_Accelerate  Pointer_DfltBtnNext  Pointer_DfitBtnPrev      6  Keypad keys are specified like this     KP_Left  KP_Right  KP_Up  KP_Down  KP_Home  KP_Page_Up  KP_Page_Down   KP_End  KP_Insert  KP_Delete  KP_0  KP_1  KP_2  KP_3  KP_4  KP_5  KP_6  KP_7   KP_8  KP_9         7  These will also work but ignore the Shift modifier since they tend to appear in  different locations on international keyboards     38    KP_Space  KP_Tab  KP_Enter  KP_F1  KP_F2  KP_F3  KP_F4  KP_Prior  KP_Next   KP_Begin  KP_Insert  KP_Delete  KP_Equal  KP_Multiply  KP_Add  KP_Sep
148. Bindings  Normal  Left  VI VIM  Left  Emacs  Left   Brief  Left  Visual Studio  Left  OS X  Option Up    backward char extend     Move backward one character  extending the selection Key Binding  Shift Left  backward delete char       Delete character behind the cursor Key Bindings  Normal  BackSpace  VI VIM   BackSpace  Emacs  BackSpace  Brief  BackSpace  Visual Studio  BackSpace  OS X   Backspace    backward delete word       Delete word behind the cursor Key Bindings  Normal  Ctrl BackSpace  VI VIM   Ctrl BackSpace  Emacs  Ctrl BackSpace  Brief  Ctrl BackSpace  Visual Studio  Ctrl   BackSpace  OS X  Ctrl Option Delete    backward word       Move backward one word Key Bindings  Normal  Ctrl Left  VI VIM  Ctrl Left  Emacs   Ctrl Left  Brief  Ctrl Left  Visual Studio  Ctrl Left  OS X  Option Left    backward word extend       Move backward one word  extending the selection Key Bindings  Normal  Ctrl Shift   Left  VI VIM  Ctrl Shift Left  Emacs  Ctrl Shift Left  Brief  Ctrl Shift Left  Visual Stu   dio  Ctrl Shift Left  OS X  Option Shift Left    beginning of line       Move to the beginning of the toolbar search entry Key Bindings  VI VIM  0 invokes  beginning of line toggle 0   Emacs  Home  Brief  Shift Home  OS X  Command Left    beginning of line extend       Move to the beginning of the toolbar search entry  extending the selection Key Bindings   Emacs  Shift Home  OS X  Ctrl Shift Left    copy       Cut selection Key Bindings  Normal  Ctrl Insert  VI VIM  Ctrl Insert  Em
149. Browse 9  initiate numeric modifier digit 9    VI style repeat  numeric modifier  for following command    Browse    repeat search char   Repeat the last search_char operation  optionally in  the opposite direction     Browse  lt   outdent next move   Outdent lines spanned by next cursor move    Browse    indent to match next move   Indent lines spanned by next cursor move  to match  based on the preceding line    Browse  gt   indent next move   Indent lines spanned by next cursor move    Browse    isearch backward regex   Action varies according to focus  Active Editor  Commands  Initiate incremental regular expression mini search backward from the cur   sor position  optionally entering the given search string   Document Viewer Commands   Initiate incremental regular expression mini search backward from the cursor position   optionally entering the given search string     Browse    execute kbd macro register None    Execute most recently recorded  keyboard macro  If register is None then the user is asked to enter a letter a z for the  register where the macro is filed  Otherwise  register    a    is used by default     Browse A  enter insert mode pos    after       Enter editor insert mode    Browse Apostrophe  vi goto bookmark   Goto bookmark using single character  name defined by the next pressed key    Browse BackSpace  backward char   Action varies according to focus  Active Editor  Commands  Move cursor backward one character   Toolbar Search Commands  Move  backward
150. Clear the breakpoint on the current line  Home  start of document   Move cursor to start of document  ISO_Left_Tab  backward tab   Outdent line at current position    KP_Delete  forward delete char   Action varies according to focus  Active Editor  Commands  Delete one character in front of the cursor   Toolbar Search Commands   Delete character in front of the cursor    473    KP_End  end of document   Move cursor to end of document  KP_Enter  new line   Place a new line at the current cursor position  KP_Home  start of document   Move cursor to start of document  KP_Page_Down  forward page   Move cursor forward one page  KP_Page_Up  backward page   Move cursor backward one page    Left  backward char   Action varies according to focus  Active Editor Commands   Move cursor backward one character   Toolbar Search Commands  Move backward one  character    Option Backspace  backward delete word   Action varies according to focus  Ac   tive Editor Commands  Delete one word behind of the cursor   Toolbar Search Com   mands  Delete word behind the cursor    Option Delete  forward delete word   Action varies according to focus  Active Ed   itor Commands  Delete one word in front of the cursor   Toolbar Search Commands   Delete word in front of the cursor    Option F3  search   Bring up the search manager in search mode     Option F4  close window   Close the current window and all documents and panels  in it   Option F6  run failed tests   Re run all the previously failed tests  Th
151. Ctrl X  cut   Action varies according to focus  Active Editor Commands  Cut se   lected text   Search Manager Instance Commands  Cut selected text   Toolbar Search  Commands  Cut selection    Ctrl Y  redo   Redo last action  Ctrl Z  undo   Undo last action    Ctrl    brace match   Match brace at current cursor position  selecting all text between  the two and hilighting the braces    Ctrl greater  indent region   Indent the selected region one level of indentation   Set sel to None to use preference to determine selection behavior  or    never select    to  unselect after indent     always select    to always select after indent  or    retain select    to  retain current selection after indent     Ctrl less  outdent region   Outdent the selected region one level of indentation  Set  sel to None to use preference to determine selection behavior  or    never select    to unselect  after indent     always select    to always select after indent  or    retain select    to retain  current selection after indent     Ctrl parenleft  start kbd macro   Start definition of a keyboard macro  If regis   ter None then the user is prompted to enter a letter a z under which to file the macro   Otherwise  register    a    is used by default     Ctrl parenright  stop kbd macro   Stop definition of a keyboard macro    Ctrl space  show autocompleter   Show the auto completer for current cursor posi   tion    Delete  forward delete char   Action varies according to focus  Active Editor Com   man
152. Default Value    None    debug python exec    Set this to override the default Python executable used with the debug server  A None   default  value uses  usr bin env python on Linux and the configured default on NT   Otherwise  give the full path of the python executable  e g   usr local bin python or  C devpython  This preference only affects programs that are launched from the IDE     Internal Name    debug  python exec  Data Specification     None or  lt type str gt    Default Value     None    284    debug safe size checks only    This is a temporary preference that will go away in future version of Wing IDE  It can  be used to turn off server side size checking done on values typed in the interactive  shell  When set to true  Wing may terminate the debug process on large values that are  evaluated in the interactive shell  When set to false  Wing will do size checking to avoid  such termination but will also cause duplicate execution of any functionality reached as  the result of a _getattr__ method     Internal Name   debug safe size checks only  Data Specification    lt boolean  0 or 1 gt     Default Value     debug shell auto restart before eval    Auto restart the Python Shell before a file is evaluated within it  When this is disabled   be aware that previously defined symbols will linger in the Python Shell environment     Internal Name    debug  shell auto restart before eval  Data Specification     lt boolean  0 or 1 gt     Default Value     debug shell eval who
153. Delete  word behind the cursor    Alt Down  fold expand more current   Expand the current fold point one more  level    Alt End  fold expand all   Expand all fold points in the current file    Alt F  forward word   Action varies according to focus  Active Editor Commands   Move cursor forward one word  Optionally  provide a string that contains the delimiters  to define which characters are part of a word  Gravity may be    start    or    end    to indicate  whether cursor is placed at start or end of the word   Toolbar Search Commands  Move  forward one word    Alt F11  prev points of use match   Display the previous match is the active points  of use tool    Alt F12  next points of use match   Display the next match is the active points of  use tool    Alt F3  search   Bring up the search manager in search mode   Alt F4  close window   Close the current window and all documents and panels in it    Alt F5  run to cursor   Run to current cursor position    393  Alt F6  run failed tests   Re run all the previously failed tests  The tests are de   bugged when debug is True     Alt F7  run last tests   Run again the last group of tests that were run  The tests  are debugged when debug is True     Alt G  goto line   Position cursor at start of given line number  Alt Home  fold collapse all   Collapse all fold points in the current file  Alt KP_Enter  new line   Place a new line at the current cursor position  Alt L  goto line   Position cursor at start of given line number    Alt
154. Document Viewer Commands  Copy any selected text    Exceptions  Commands  Copy the exception traceback to the clipboard   Search Manager Instance  Commands  Copy selected text   Toolbar Search Commands  Cut selection    Ctrl KP_Left  backward word   Action varies according to focus  Active Editor  Commands  Move cursor backward one word  Optionally  provide a string that contains  the delimiters to define which characters are part of a word  Gravity may be  start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move backward one word    Ctrl KP_Next  forward page   Move cursor forward one page  Ctrl KP_Page_Down  forward page   Move cursor forward one page  Ctrl KP_Page_Up  backward page   Move cursor backward one page  Ctrl KP_Prior  backward page   Move cursor backward one page    Ctrl KP_Right  forward word   Action varies according to focus  Active Editor Com   mands  Move cursor forward one word  Optionally  provide a string that contains the  delimiters to define which characters are part of a word  Gravity may be start    or    483       end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move forward one word    Ctrl KP_Subtract  zoom out   Zoom out  increasing the text display size temporarily  by one font size    Ctrl KP_Up  previous line   Move to previous screen line  optionally repositioning  character within line  same    to leave in same horizontal posit
155. E documentation section for the snippet manager  template add  new_template_name  ttype        Deprecated in 4 0  Use snippet_add instead  template add file type  file_extension    Deprecated in 4 0  Use snippet_add_file_type instead  template assign key binding      Deprecated in 4 0  Use snippet_assign_key_binding instead    template clear key binding       344    Deprecated in 4 0  Use snippet_clear_key_binding instead  template reload all      Deprecated in 4 0  Use snippet_reload_all instead  template remove file type      Deprecated in 4 0  Use snippet_remove_file_type instead  template rename file type  new_file_extension   Deprecated in 4 0  Use snippet_rename_file_type instead  template selected copy  new_name    Deprecated in 4 0  Use snippet_selected_copy instead  template selected edit      Deprecated in 4 0  Use snippet_selected_edit instead  template selected new file      Deprecated in 4 0  Use snippet_selected_new_file instead  template selected paste      Deprecated in 4 0  Use snippet_selected_paste instead  template selected remove      Deprecated in 4 0  Use snippet_selected_remove instead  template selected rename  new_name    Deprecated in 4 0  Use snippet_selected_rename instead  template show docs       Deprecated in 4 0  Use snippet_show_docs instead    20 4  Search Manager Commands    Toolbar Search Commands    Commands available when the tool bar search entry area has the keyboard focus     345    backward char       Move backward one character Key 
156. F8  OS  X  Shift Command F8    start select char     Turn on auto select mode character by character Key Binding  Shift F 8  start select line       Turn on auto select mode line by line Key Bindings  Normal  Ctrl F8  VI  VIM  Ctrl F8   Emacs  Ctrl F8  Brief  Ctrl F8  Visual Studio  Ctrl F8  OS X  Command F8    Editor Panel Commands    Commands that control splitting up an editor panel  These are available when one split  in the editor panel has the keyboard focus     split horizontally  new 0   Split current view horizontally  Key Bindings  VI VIM  Ctrl W v  Emacs  Ctrl X 3  split horizontally open file  filename     Split current view horizontally and open selected file    310    split vertically  new 0     Split current view vertically  Create new editor in new view when new  1  Key Bind     ings  VI VIM  Ctrl W s  Emacs  Ctrl X 2  Brief  F3  split vertically open file  filename    Split current view vertically and open selected file  unsplit  action    current        Unsplit all editors so there   s only one  Action specifies how to choose the remaining  displayed editor  One of     current    Show current editor   close    Close current editor before unsplitting  recent    Change to recent buffer before unsplitting  recent or close    Change to recent buffer before closing    split  or close the current buffer if there is only  one split left     NOTE  The parameters for this command are subject to change in the future  Key  Bindings  VI VIM  Ctrl W q invokes unsplit act
157. Files           mime type        text x   c source          mime type        text x cpp source            wildcard   filename                    wildcard filename                     wildcard   filename                     wildcard filename          svn base          wildcard   filename         coverage          wildcard directory        __py    cache__          wildcard directory         bzr          wildcard    directory        CVS          wildcard directory         hg          wildcard   directory         git          wildcard directory         svn      C wildcard   directory        _svn          wildcard directory         xvpics        u   Hidden  amp  Tem   porary Files           wildcard filename          0       C wildcard   filename          obj          wildcard filename          a      C wildcard   filename          lib          wildcard filename          so          wildcard   filename          dll          wildcard filename          exe          wildcard   filename          ilk          wildcard filename          pdb          wildcard   filename          pyc          wildcard filename          pyo          wildcard   filename          pyd          wildcard filename          py class          wildcard   filename        core          wildcard filename          bak          wildcard   filename          tmp          wildcard filename          temp      C wildcard   filename          old          wildcard filename          old          wildcard   filename          wpr
158. How Tos for tips of working with specific third party libraries  and frameworks for Python     13 1  Debugging Externally Launched Code    This section describes how to start debugging from a process that is not launched by  Wing  Examples of debug code that is launched externally include CGI scripts or web  servlets running under a web server and embedded Python scripts running inside a larger  application     13 1 1  Importing the Debugger    The following step by step instructions can be used to start debugging in externally  launched code that is running on the same machine as Wing IDE     1  Copy wingdbstub  py from the Wing IDE installation directory into the same  directory as your debug program     2  In some cases  you will also need to copy the file wingdebugpw from your  User Settings Directory into the same directory as wingdbstub  py  This  is needed when running the debug process as a different user or in a way that  prevents the debug process from reading the wingdebugpw file from within  your User Settings Directory     3  At the point where you want debugging to begin  insert the following source  code  import wingdbstub Depending on your code base  you may need to    123    124    be cautious about whether this statement is reached by multiple processes   If this happens  the first process will connect to Wing and the second one  will fail to connect and continue running without debug  If you are debug   ging code in an embedded Python instance  see the note
159. I O multiplexer by setting the Use sys stdin Wrapper  preference to False   2  Turn on the Use External Console preference  for details see External    I O Consoles     Once that is done  I O should work properly in the external console  but the debug  process will remain unresponsive to Pause or breakpoint commands from Wing IDE  whenever it is waiting for input  either at the C C   or Python level     118    Also  in this case keyboard input invoked as a side effect of using the Debug Probe  will happen through unmodified stdin instead of within the Debug Probe  even though  command output will still appear there     12 11  Interactive Debug Probe    The Debug Probe acts like the Python shell for evaluating and executing arbitrary  Python code in the context of a debug program  This acts on the current debug stack  frame  and thus is available only when the debug program is paused     You may use many of Wing   s source editor commands and key bindings within the  Debug Probe  and can use the up down arrow keys to traverse a history of recently  typed commands     Like the Python Shell  the Debug Probe in Wing provides auto completion and inte   grates with the Source Assistant so that documentation and call signatures are readily  available for functions and methods that are invoked here     This makes the Debug Probe particularly useful  not just to find and understand bugs   but also in crafting and trying out new code to fix the bug     Even when no bugs are present  th
160. IP Address and  a single local remote mapping pair containing c  src and   server share dir     13 2 2  Remote Debugging Example    Here is a simple example that enables debugging a process running on a Linux Unix host   192 168 1 200  using Wing IDE running on a Windows machine  192 168 1 210    This example is for wingdbstub users only  If you are using the WingDBG product to  debug Zope code  please refer to the Zope Debugging How To  also included in the  WingDBG control panel   s Help tab      On the Windows machine  the following preferences must be specified     e Enable Passive Listen should be checked  e Server Host should be set to All Interfaces  this is the default   e Server Port should be set to 50005  this is the default     e Allowed Hosts should be altered by adding 192 168 1 200  On the Linux Unix machine  the following value is needed in wingdbstub  py   kWingHostPort    192 168 1 210 50005       Once this is done and Wing has been restarted  you should be able to run code that  imports wingdbstub on the Linux Unix machine and see the debug connection establish  on the Windows machine     Then you will need to set up file sharing between the two machines  for example  using  Samba  and will need to establish a location map in your Wing IDE preferences on the  Windows machine     If your source code on the Linux Unix machine is in  home myuser mysource and you  map  home myuser to e  on the Windows machine  then you would enter this location  map via the Pre
161. Installing CVS    On Windows  Download from http    www  nongnu org cvs and add installation location  to PATH environment variable from the Advanced tab of the System control panel    On Linux Unix  Install CVS from using the packages that came with your Linux Unix  distribution or download from http   www nongnu org cvs and build from sources     Using CVS with SSH    First time configuration  Install and configure SSH as described earlier  this also  loads authentication information into the cache for the current session   Then  On  Windows  add CVS_RSH p1link to your environment from the Advanced tab of the System    150    control panel  On Linux Unix  add CVS_RSH ssh to your environment  For example   CVS_RSH ssh  export CVS_RSH on the command line  or add this to your  bashrc file   Note that Environment in your Project Properties can also be used to set CVS_RSH or  other environment variables  however only for CVS commands issued from the IDE     To check out a repository  Type cvs  d  ext username hostname  path to repository  co module_name    Future sessions require  On Windows  double click on your private key file and enter  your pass phrase  or on Linux Unix  run ssh add and enter your pass phrase    Using CVS with pserver    CVS   s pserver authentication mechanism is obsolete but it is still used for anonymous  CVS access in some places  such as on sourceforge net  If you are working with a pserver  repository that requires a password  then you will need to is
162. License      issued to a designated user  only by Wingware or its authorized  agents  is required for each user of the Software Product  If you do not agree to the terms  of this EULA  then do not install or use the Software Product or the Software Product  License  By explicitly accepting this EULA you are acknowledging and agreeing to be  bound by the following terms     1  EVALUATION LICENSE WARNING    This Software Product can be used in conjunction with a free evaluation Software Prod   uct License  If you are using such an evaluation Software Product License  you may  use the Software Product only to evaluate its suitability for purchase  Evaluation Soft   ware Product Licenses have an expiration date and most of the features of the software  will be disabled after that date  WINGWARE BEARS NO LIABILITY FOR ANY  DAMAGES RESULTING FROM USE  OR ATTEMPTED USE AFTER THE EX   PIRATION DATE  OF THE SOFTWARE PRODUCT  AND HAS NO DUTY TO  PROVIDE ANY SUPPORT BEFORE OR AFTER THE EXPIRATION DATE OF  AN EVALUATION LICENSE     495    496    2  GRANT OF NON EXCLUSIVE LICENSE    Wingware grants the non exclusive  non transferable right for a single user to use this  Software Product for each license purchased  Each additional user of the Software Prod   uct requires an additional Software Product License  This includes users working on  operating systems where the Software Product is compiled from source code by the user  or a third party     Winegware grants you the right to modify  
163. M  Ctrl Right  Emacs  Ctrl Right  Brief  Ctrl Right  Visual Studio  Ctrl Right   OS X  Option Right    forward word extend  delimiters None  gravity    start     repeat  lt numeric modifier   default 1 gt      Move cursor forward one word  adjusting the selection range to new position  Optionally   provide a string that contains the delimiters to define which characters are part of a  word  Gravity may be    start    or    end    to indicate whether cursor is placed at start or  end of the word  Key Bindings  Normal  Ctrl Shift Right  VI VIM  Ctrl Shift Right   Emacs  Ctrl Shift Right  Brief  Ctrl Shift Right  Visual Studio  Ctrl Shift Right  OS X   Option Shift Right    hide selection     Turn off display of the current text selection  indent to match       Indent the current line or selected region to match indentation of preceding non blank  line Key Binding  Ctrl      indent to next indent stop       Indent to next indent stop from the current position  Acts like indent command if  selection covers multiple lines     isearch backward  search_string None  repeat  lt numeric modifier  default 1 gt      Initiate incremental mini search backward from the cursor position  optionally entering  the given search string Key Bindings  Normal  Ctrl Shift U  Emacs  Ctrl R  Visual  Studio  Ctrl Shift U  OS X  Command Shift U    isearch backward regex  search_string None  repeat  lt numeric modifier  de   fault 1 gt      322    Initiate incremental regular expression mini search backwa
164. Move backward one  character   Next  forward page   Move cursor forward one page   Page Down  forward page   Move cursor forward one page   Page_Up  backward page   Move cursor backward one page   Prior  backward page   Move cursor backward one page   Return  new line   Place a new line at the current cursor position    Right  forward char   Action varies according to focus  Active Editor Commands   Move cursor forward one character   Toolbar Search Commands  Move forward one  character    Shift Alt A  diff merge a b  Shift Alt B  diff merge b a    Shift Alt Down  next line extend rect   Move to next screen line  adjusting the  rectangular selection range to new position  optionally repositioning character within  line  same    to leave in same horizontal position     start    at start     end    at end  or    fnb    for  first non blank char     Shift Alt Left  backward char extend rect   Move cursor backward one character   adjusting the rectangular selection range to new position    Shift Alt N  diff next  Shift Alt P  diff previous    Shift Alt Right  forward char extend rect   Move cursor forward one character   adjusting the rectangular selection range to new position    Shift Alt Up  previous line extend rect   Move to previous screen line  adjusting  the rectangular selection range to new position  optionally repositioning character within  line  same    to leave in same horizontal position     start    at start     end    at end  or    fnb    for  first non blank cha
165. Move cursor backward one page  adjusting  the selection range to new position    Shift Prior  backward page extend   Move cursor backward one page  adjusting the  selection range to new position    Shift Return  new line   Place a new line at the current cursor position    Shift Right  forward char extend   Action varies according to focus  Active Edi   tor Commands  Move cursor forward one character  adjusting the selection range to  new position   Toolbar Search Commands  Move forward one character  extending the  selection    Shift Tab  backward tab   Outdent line at current position    Shift Up  previous line extend   Move to previous screen line  adjusting the selection  range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start  end    at end  or    fnb    for first non blank char     Tab  tab key   Implement the tab key  the action of which is configurable by preference    Up  previous line   Move to previous screen line  optionally repositioning character  within line  same    to leave in same horizontal position     start    at start     end    at end  or   fnb    for first non blank char     Visual Esc  exit visual mode   Exit visual mode and return back to default mode    463    21 5  OS X Personality    This section documents all the default key bindings for the OS X keyboard personality   set by the Personality preference     Backspace  backward delete char   Action varies according t
166. Move cursor to end of document   adjusting the selection range to new position    Ctrl Shift KP_Home  start of document extend   Move cursor to start of docu   ment  adjusting the selection range to new position    Ctrl Shift K P_Left  backward word extend   Action varies according to focus  Ac   tive Editor Commands  Move cursor backward one word  adjusting the selection range  to new position  Optionally  provide a string that contains the delimiters to define which  characters are part of a word  Gravity may be    start    or    end    to indicate whether cursor  is placed at start or end of the word   Toolbar Search Commands  Move backward one  word  extending the selection    Ctrl Shift KP_Next  forward page extend   Move cursor forward one page  adjust   ing the selection range to new position    Ctrl Shift K P_Page_Down  forward page extend   Move cursor forward one page   adjusting the selection range to new position    402    Ctrl Shift KP_Page Up  backward page extend   Move cursor backward one page   adjusting the selection range to new position    Ctrl Shift KP_Prior  backward page extend   Move cursor backward one page   adjusting the selection range to new position    Ctrl Shift KP_Right  forward word extend   Action varies according to focus  Ac   tive Editor Commands  Move cursor forward one word  adjusting the selection range to  new position  Optionally  provide a string that contains the delimiters to define which  characters are part of a word  Gravity may
167. Move to screen next line  optionally repositioning character within  line     same    to leave in same horizontal position     start    at start     end    at end  or    fnb     for first non blank char     End  end of line   Action varies according to focus  Active Editor Commands  Move  to end of current line  Toolbar Search Commands  Move to the end of the toolbar search  entry    F1  Multiple commands  first available is executed      e show horizontal tools   Show the horizontal tool area    e minimize horizontal tools   Minimize the horizontal tool area    F11  frame up   Move up the current debug stack  F12  frame down   Move down the current debug stack    F2  Multiple commands  first available is executed      e show vertical tools   Show the vertical tool area    e minimize vertical tools   Minimize the vertical tool area  F3  search forward   Search again using the search manager   s current settings in  forward direction  F4  goto selected symbol defn   Goto the definition of the selected source symbol    F5  debug continue   Continue  or start  running  to next breakpoint    435    F6  step over   Step over current execution point   F7  step into   Step into current execution point  or start debugging at first line  F8  step out   Step out of the current function or method   F9  Multiple commands  first available is executed      e break set   Set a new regular breakpoint on current line    e break clear   Clear the breakpoint on the current line    Home  beginni
168. OF MERCHANTABILITY AND FIT   NESS  IN NO   EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL  INDI   RECT OR   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULT   ING FROM LOSS OF USE    DATA OR PROFITS  WHETHER IN AN ACTION OF CONTRACT  NEGLI   GENCE OR OTHER   TORTIOUS ACTION  ARISING OUT OF OR IN CONNEC    TION WITH THE USE OR   PERFORMANCE OF THIS SOFTWARE     
169. OR ANY COSTS OF SUBSTI   TUTE PRODUCTS OR SERVICES  OR FOR ANY SPECIAL  INCIDENTAL  INDI   RECT  OR CONSEQUENTIAL DAMAGES WHATSOEVER  INCLUDING  WITH   OUT LIMITATION  DAMAGES FOR LOSS OF BUSINESS PROFITS  BUSINESS IN   TERRUPTION  OR LOSS OF BUSINESS INFORMATION  ARISING OUT OF THIS  EULA OR THE USE OF OR INABILITY TO USE THE SOFTWARE PRODUCT OR  THE FAILURE TO PROVIDE SUPPORT SERVICES  EVEN IF WINGWARE HAS    500    BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES  IN ANY CASE   WINGWARE   S  AND ITS THIRD PARTY SUPPLIERS    AND LICENSORS     ENTIRE  LIABILITY ARISING OUT OF THIS EULA SHALL BE LIMITED TO THE LESSER  OF THE AMOUNT ACTUALLY PAID BY YOU FOR THE SOFTWARE PROD   UCT OR THE PRODUCT LIST PRICE  PROVIDED  HOWEVER  THAT IF YOU  HAVE ENTERED INTO AN WINGWARE SUPPORT SERVICES AGREEMENT   WINGWARE   S ENTIRE LIABILITY REGARDING SUPPORT SERVICES SHALL  BE GOVERNED BY THE TERMS OF THAT AGREEMENT     14  HIGH RISK ACTIVITIES    The Software Product is not fault tolerant and is not designed  manufactured or intended  for use or resale as on line control equipment in hazardous environments requiring fail   safe performance  such as in the operation of nuclear facilities  aircraft navigation or  communication systems  air traffic control  direct life support machines  or weapons  systems  in which the failure of the Software Product  or any software  tool  process   or service that was developed using the Software Product  could lead directly to death   personal injury  or se
170. Projects    Auto reopen Last Project    Controls whether most recent project is reopened at startup  in the absence of any other  project on the command line     Internal Name     main auto reopen last project    208    Data Specification      lt boolean  O or 1 gt     Default Value     Close Files with Project  Controls whether any files open in an editor are also closed when a project file is closed    Internal Name     proj close also windows    Data Specification      lt boolean  O or 1 gt     Default Value     Default Project Type    Controls the type of project file that is written by default for new projects     normal     for regular single file format with extension  wpr  and    shared    for split format where  the  wpr file contains shared project info that can be checked into a shared revision  control repository and the  wpu file contains user specific information such as location  of breakpoints  This is useful to avoid revision control wars on a project with multiple  developers     Internal Name     proj file type    Data Specification      shared  normal     209  Default Value   normal    Open Projects as Text    Controls whether project files are opened as project or as text when opened from the  File menu  This does not affect opening from the Project menu     Internal Name   gui open projects as text  Data Specification    lt boolean  0 or 1 gt     Default Value     Confirm Drag Copy Move    Controls whether or not the IDE will confirm file copy move opera
171. RT ANY CLAIM MADE AGAINST WING   WARE     Any supplemental software code or related materials that Wingware provides to you as  part of the support services  in periodic updates to the Software Product or otherwise  is  to be considered part of the Software Product and is subject to the terms and conditions  of this EULA     With respect to any technical information you provide to Wingware as part of the  support services  Wingware may use such information for its business purposes without  restriction  including for product support and development  Wingware will not use such  technical information in a form that personally identifies you without first obtaining  your permission     9  TERMINATION WITHOUT PREJUDICE TO ANY OTHER RIGHTS    Wingware may terminate this EULA if you fail to comply with any term or condition  of this EULA  In such event  you must destroy all copies of the Software Product and  Software Product Licenses     10  U S  GOVERNMENT USE    499    If the Software Product is licensed under a U S  Government contract  you acknowledge  that the software and related documentation are  commercial items     as defined in 48  C F R 2 01  consisting of  commercial computer software    and    commercial computer  software documentation     as such terms are used in 48 C F R  12 212 and 48 C F R   227 7202 1  You also acknowledge that the software is  commercial computer software     as defined in 48 C F R  252 227 7014 a  1   U S  Government agencies and entities an
172. Right  Visual Stu   dio  Ctrl Shift Right  OS X  Option Shift Right    paste       Paste from clipboard Key Bindings  Normal  Shift Insert  VI VIM  Shift Insert  Emacs   Shift Insert  Brief  Shift Insert  Visual Studio  Shift Insert  OS X  Ctrl y    347  Search Manager Commands    Globally available commands defined for the search manager  These commands are  available regardless of whether a search manager is visible or has keyboard focus     batch replace  look_in None  use_selection True     Display search and replace in files tool  Key Bindings  Normal  Ctrl Shift R  VI VIM   Ctrl Shift G  Emacs  Ctrl    Visual Studio  Ctrl Shift R  OS X  Command Shift R    batch search  look_in None  use_selection True  search_text None     Display Search in Files tool  The look_in argument gets entered in the look in field if not  None or      The current selection is put into the search field if it doesn   t span multiple  lines and either use_selection is true or there   s nothing in the search field  The given  search text is used instead  if provided Key Bindings  Normal  Ctrl Shift F  VI VIM   Ctrl Shift F  Emacs  Ctrl    Visual Studio  Ctrl Shift F  OS X  Command Shift F    batch search backward      Move to the previous found match in the search in files tool   batch search forward      Move to the next found match in the search in files tool   replace       Bring up the search manager in replace mode  Key Bindings  Normal  Ctrl R  Emacs   Ctrl 0  Brief  F6  Visual Studio  Ctrl R
173. Search Commands  Move  backward one word    Browse g Browse Shift J  join lines delim          Join together specified number of  lines after current line  replace newlines with the given delimiter  single space by default     Browse g Browse Shift P  paste register pos  1  cursor 1    Paste text from  register as before or after the current position  If the register contains only lines  then  the lines are pasted before or after current line  rather than at cursor   If the register  contains fragments of lines  the text is pasted over the current selection or either before  or after the cursor  Set pos   1 to paste after  or  1 to paste before  Set indent 1 to  indent the pasted text to match current line  Set cursor  1 to place cursor before lines  or cursor 1 to place it after lines after paste completes     Browse g Browse Shift U  case upper next move   Change case of text spanned  by next cursor movement to upper case    Browse g Browse    beginning of screen line text   Move to first non blank char   acter at beginning of current wrapped line    Browse g Browse d  goto selected symbol defn   Goto the definition of the se   lected source symbol    Browse g Browse e  backward word gravity    endm1       Action varies accord   ing to focus  Active Editor Commands  Move cursor backward one word  Optionally   provide a string that contains the delimiters to define which characters are part of a  word  Gravity may be  start    or end    to indicate whether cursor is placed a
174. T  swap lines   Swap the line at start of current selection with the line  that follows it    Ctrl X Ctrl W  write file   Write current file to a new location  optionally omitting  all but the lines in the given range     405  Ctrl X Ctrl X  exchange point and mark   When currently marking text  this ex   changes the current position and mark ends of the current selection    Ctrl X D  recent document   Switches to previous document most recently visited  in the current window or window set if in one window per editor windowing mode     Ctrl X E  execute kbd macro   Execute most recently recorded keyboard macro  If  register is None then the user is asked to enter a letter a z for the register where the  macro is filed  Otherwise  register    a    is used by default     Ctrl X I  insert file   Insert a file at current cursor position  prompting user for file  selection    Ctrl X K  kill buffer   Close the current text file   Ctrl X L C  use lexer cpp   Force syntax highlighting for C C   source  Ctrl X L H  use lexer html   Force syntax highlighting for HTML   Ctrl X L M  use lexer makefile   Force syntax highlighting for make files  Ctrl X L N  use lexer none   Use no syntax highlighting   Ctrl X L P  use lexer python   Force syntax highlighting for Python source  Ctrl X L S  use lexer sql   Force syntax highlighting for SQL   Ctrl X L X  use lexer Xml    Ctrl X N  next document   Move to the next document alphabetically in the list of  documents open in the current window   
175. The location  varies by version of Windows  For Windows 2000 and XP running on c  with an English  localization the location is     c  Documents and Settings   username  Application Data Wing IDE 4  For Vista running on c  with an English localization the location is   c  Users   username  AppData Roaming Wing IDE 4    Wing also creates a Cache Directory that contains the source analysis cache  This is  often but not always in the same location as the above  On Windows  this directory  is usually in the per user directory under Local Settings on 2000 and XP and under  Local on Vista  This directory is also listed in the About Box     1 11  Upgrading    If you are upgrading within the same minor version number of Wing  for example from  3 0 to 3 0 x  this will replace your previous installation  Once you have upgraded  your  previous preferences and settings should remain and you should immediately be able to  start using Wing     21    If you are upgrading across major releases  for example from 2 1 to 3 0   this will install  the new version along side your old version of Wing     To install an upgrade  follow the steps described in Installing    1 11 1  Migrating from older versions of Wing    Moving to Wing IDE 4 x from earlier versions should be easy  The first time you start  Wing IDE 4 x  it will automatically convert your preferences from Wing IDE 2 x or 3 x  and place them into your User Settings Directory     Wing IDE 4 x can be installed and used side by side with o
176. Type  8 3  Sorting the Browser Display  8 4  Navigating the Views  8 5  Browser Keyboard Navigation    Interactive Python Shell  9 1  Python Shell Auto completion  9 2  Python Shell Options   OS Commands Tool       Unit Testing  11 1  Project Test Files  11 2  Running Tests  Debugger  12 1  Quick Start    12 2  Specifying Main Entry Point  12 3  Debug Properties  12 4  Setting Breakpoints  Breakpoint Types  Breakpoint Attributes  Breakpoints Tool  Keyboard Modifiers for Breakpoint Margin  12 5  Starting Debug  12 6  Debugger Status  12 7  Flow Control  12 8  Viewing the Stack  12 9  Viewing Debug Data  12 9 1  Stack Data View  12 9 1 1  Popup Menu Options  12 9 1 2  Filtering Value Display  12 9 2  Watching Values  12 9 3  Evaluating Expressions  12 9 4  Problems Handling Values  12 10  Debug Process I O  12 10 1  External I O Consoles  12 10 2  Disabling Debug Process I O Multiplexing  12 11  Interactive Debug Probe  12 11 1  Managing Program State  12 11 2  Debug Probe Options  12 12  Debugging Multi threaded Code  12 13  Managing Exceptions  12 14  Running Without Debug  Advanced Debugging Topics  13 1  Debugging Externally Launched Code  13 1 1  Importing the Debugger  13 1 2  Debug Server Configuration  13 1 3  Debugger API  13 1 4  Debugging Embedded Python Code  13 2  Remote Debugging    13 2 1  File Location Maps  13 2 1 1  File Location Map Examples       13 2 2  Remote Debugging Example  13 2 3  Installing the Debugger Core  13 3  Attaching and Detaching  13 3 1  Ac
177. UTF 16  big endian  utf 16    be  Japanese shift jis 2004  Console default  UTF 8   Japanese iso   2022 jp 3  Hebrew cp862  Western European latin 1  Japanese euc   jisx0213  US  Canada  and Others cp037  Japanese euc jis    2004  None  Central and Eastern European cp1250  Baltic Lan    guages iso8859 4  English ascii  Japanese shift jis  Ara     245    bic iso8859 6  Canadian English French cp863  Russian koi8    r  Japanese iso 2022 jp  Unicode  UTF 8  utf 8  Greek cp737  Nordic Lan   guages iso8859 10  Central and Eastern European mac    latin2  Chinese  PRC  gb2312  Unicode  UTF 7  utf 7  Ara    bic cp1256  Chinese  PRC  bigShkscs  Western European cp850  Es    peranto and Maltese iso8859 3  Turkish cp857  Korean cp949  US  Aus   tralia  New Zealand  S  Africa cp437  Unicode  UTF 16  utf    16  Japanese cp932      Default Value   None    External Consoles    A list of the xterm compatible X windows terminal programs that are used with debug  processes when running with an external console  Each is tried in turn until one is found  to exist  If just the name is given  Wing will look for each first on the PATH and then  in likely places  Specify the full path  starting with          to use a specific executable  If  program arguments are specified  they must end with the argument that indicates that  the rest of arguments are the program to run in the terminal    Internal Name    debug  x terminal  Data Specification     tuple of   lt type str gt    Default Value         gn
178. Wing IDE Reference Manual  Wing IDE Professional    Wingware  www wingware com    Version 4 0 0  February 19  2011    Contents  Introduction    1 1  Product Levels   1 2  Licenses   1 3  Supported Platforms   1 4  Supported Python versions   1 5  Technical Support   1 6  Prerequisites for Installation   1 7  Installing   1 8  Running the IDE   1 9  Installing your License   1 10  User Settings Directory   1 11  Upgrading  1 11 1  Migrating from older versions of Wing  1 11 2  Fixing a Failed Upgrade   1 12  Installation Details and Options  1 12 1  Linux Installation Notes  1 12 2  Installing Extra Documentation  1 12 3  Source Code Installation   1 13  Removing Wing IDE   1 14  Command Line Usage    Customization    2 1  Editor Personalities  2 2  User Interface Options  2 2 1  Windowing Policies  2 2 2  User Interface Layout  2 2 3  Altering Text Display  2 2 4  Setting Overall Display Theme  2 3  Preferences  2 3 1  Preferences File Layers  2 3 2  Preferences File Format  2 4  Key Equivalents  2 4 1  Key Names    2 0   2a    Perspectives  File Sets    Project Manager    oun     3 8     Creating a Project  Removing Files and Packages  Saving the Project   Sorting the View  Navigating to Files   3 5 1  Keyboard Navigation  Sharing Projects  Project wide Properties  Environment   Debug   Options   Extensions   Testing   3 7 1  Variable Expansion  Per file Properties   File Attributes   Editor   Environment   Debug   Testing    Source Code Editor    4 1   4 2   43   4 4   4 5 
179. X  Command C    Breakpoint View Commands    Commands available on a specific instance of the breakpoint manager tool  bpmanager clear selected      Clear breakpoints currently selected on the breakpoint manager  bpmanager show docs      Show documentation for the breakpoint manager  bpmanager show selected       Show source location for breakpoint currently selected on the breakpoint manager    363    20 8  Script provided Add on Commands    Pylintpanel Script    PyLint integration for Wing IDE    pylint show docs      Show the Wing IDE documentation section for the PyLint integration  pylint execute      Execute pylint for the current editor   pylint package execute      Execute pylint on all files in the package to which the file in the current editor belongs  pylint configure       Show the pylint configuration file so it can be edited    Testapi Script    Tests for Wing   s scripting API   test api  verbose 0     Test Wing   s scripting API    Debugger Extensions Script    Scripts that extend the debugger in various ways   set breaks from markers  app        Scan current file for markers in the form  BP  and places breakpoints on all lines where  those markers are found  A conditional breakpoint can be set if a condition follows the  marker  for example  BP  x  gt  10  Removes all old breakpoints first     364  Django Script    A plugin that provides Django specific functionality when a project looks like it contains  Django files     django validate      Run manage py va
180. a file  pylintrc exists in the same  directory as a Wing project file  then this file name is passed to pylint using the   rcfile  argument  See the pylint documentation for details on what this file can contain     Next  bring up some Python source code in an editor in Wing and then right click on  the PyLint tool and select Update  After some time  up to a minute for larger files    lists of errors  warnings  and informational messages will be placed into the tool  Click  on the items to bring up the source code with the indicated line selected     Note that you can disable messages on the command line to pylint  as configured using  the args item in the configuration file  See the pylint documentation for details     155    156    Processing multiple files    The context menu on the PyLint tool will include an item for running pylint on all  the files in the current package  when the current file is in a package  a directory that  contains a file __init__ py   In this case  the file name as well as the line number is  shown in the Line column of the output     Note that this option adds   output format parseable to the pylint command line  so that the file names can be obtained  This may not work with all pylint versions     Using VirtualEnv on Windows    On Windows  pylint installed into a virtualenv does not work because pylint bat is  invoking just python and that may find the wrong Python installation  To fix this  edit  pylint bat and change python to the full path of
181. a register Key Bindings  VI VIM   y    new line     Place a new line at the current cursor position Key Binding  Return  next line  cursor    same     repeat  lt numeric modifier  default 1 gt      Move to screen next line  optionally repositioning character within line     same    to leave  in same horizontal position     start    at start  end    at end  or    fnb    for first non blank char   Key Binding  Down    next line extend  cursor    same     repeat  lt numeric modifier  default 1 gt      Move to next screen line  adjusting the selection range to new position  optionally reposi   tioning character within line  same    to leave in same horizontal position     start    at start      end    at end  or    fnb    for first non blank char  Key Binding  Shift Down    next line extend rect  cursor    same     repeat  lt numeric modifier  default 1 gt      Move to next screen line  adjusting the rectangular selection range to new position  op   tionally repositioning character within line  same    to leave in same horizontal position      start    at start     end    at end  or    fnb    for first non blank char  Key Bindings  Nor   mal  Shift Alt Down  VI VIM  Shift Alt Down  Emacs  Shift Alt Down  Brief  Shift   Alt Down  Visual Studio  Shift Alt Down  OS X  Ctrl Option Down    next line in file  cursor    start     repeat  lt numeric modifier  default 1 gt      Move to next line in file  repositioning character within line     start    at start     end    at    324    end
182. a_KE  kana_KO  kana_SA  kana_SHI   kana_SU  kana_SE  kana_SO  kana_TA  kana_CHI  kana_TI  kana_TSU  kana_TU   kana_TE  kana_TO  kana_NA  kana_NI  kana_NU  kana_NE  kana_NO  kana_HA   kana_HI  kana_FU  kana HU  kana HE  kana HO  kana MA  kana MI  kana MU   kana  ME  kana MO  kana_YA  kana_YU  kana_YO  kana RA  kana_RI  kana RU   kana_RE  kana_RO  kana  WA  kana_N  voicedsound  semivoicedsound  kana_switch        Arabic_comma  Arabic_semicolon  Arabic_question_mark  Arabic_hamza  Ara   bic_maddaonalef  Arabic_hamzaonalef  Arabic_hamzaonwaw  Arabic_hamzaunderalef   Arabic_hamzaonyeh  Arabic_alef  Arabic_beh  Arabic_tehmarbuta  Arabic_teh  Ara   bic_theh  Arabic_jeem  Arabic_hah  Arabic_khah  Arabic_dal  Arabic_thal  Arabic_ra   Arabic_zain  Arabic_seen  Arabic_sheen  Arabic_sad  Arabic_dad  Arabic_tah  Ara   bic_zah  Arabic_ain  Arabic_ghain  Arabic_tatweel  Arabic_feh  Arabic_qaf  Arabic_kaf   Arabic_lam  Arabic_meem  Arabic_noon  Arabic_ha  Arabic_heh  Arabic_waw  Ara   bic_alefmaksura  Arabic_yeh  Arabic_fathatan  Arabic_dammatan  Arabic_kasratan   Arabic_fatha  Arabic damma  Arabic_kasra  Arabic_shadda  Arabic_sukun  Ara   bic_switch     Serbian_dje  Macedonia_gje  Cyrillicio  Ukrainian_ie  Ukranian_je  Macedo   nia_dse  Ukrainian_i  Ukranian_i  Ukrainian_yi  Ukranian_yi  Cyrillic_je  Serbian_je   Cyrilliclje  Serbian_lje  Cyrillic_nje  Serbian_nje  Serbian_tshe  Macedonia_kje   Ukrainian_ghe_with_upturn  Byelorussian_shortu  Cyrillic_dzhe  Serbian_dze  nu   merosign  Serbia
183. acs  Ctrl   Insert  Brief  Ctrl Insert  Visual Studio  Ctrl Insert  OS X  Command C    cut       346   Cut selection Key Bindings  Normal  Shift Delete  VI VIM  Shift Delete  Emacs  Shift   Delete  Brief  Shift Delete  Visual Studio  Shift Delete  OS X  Command X  end of line       Move to the end of the toolbar search entry Key Bindings  Normal  End  VI VIM  End   Emacs  End  Brief  End  Visual Studio  End  OS X  Ctrl Right    end of line extend       Move to the end of the toolbar search entry  extending the selection Key Bindings   Normal  Shift End  VI VIM  Shift End  Emacs  Shift End  Brief  Shift End  Visual  Studio  Shift End  OS X  Ctrl Shift Right    forward char      Move forward one character Key Binding  Right   forward char extend      Move forward one character  extending the selection Key Binding  Shift Right  forward delete char      Delete character in front of the cursor Key Binding  Delete  forward delete word       Delete word in front of the cursor Key Bindings  Normal  Ctrl Delete  VI VIM  Ctrl   Delete  Emacs  Ctrl Delete  Brief  Ctri Delete  Visual Studio  Ctrl Delete  OS X   Option Delete    forward word       Move forward one word Key Bindings  Normal  Ctrl Right  VI VIM  Ctrl Right  Emacs   Ctrl Right  Brief  Ctrl Right  Visual Studio  Ctrl Right  OS X  Option Right    forward word extend       Move forward one word  extending the selection Key Bindings  Normal  Ctrl Shift Right   VI VIM  Ctrl Shift Right  Emacs  Ctrl Shift Right  Brief  Ctrl Shift 
184. ad get_ident    to  one of the following values  0 to ignore the thread  do not debug it   or 1 to debug  the thread and immediately stop it if any thread stops  The default_policy sets  the action to take when a thread is not found in the thread map     Here is a simple usage example     import wingdbstub   a   1   This line is debugged  wingdbstub  debugger   SuspendDebug      x   1   This is executed without debugging  wingdbstub  debugger   ResumeDebug      y   2   This line is debugged again    SuspendDebug   and ResumeDebug   can be called as many times as desired  and nested  calls will be handled so that debugging is only resumed when the number of ResumeDe   bug   calls matches the number of SuspendDebug   calls     Notes for Debugging Embedded Python Code    When Python code is run by an interpreter embedded in a larger application  you may  need to craft special code to make debugging work properly     If the host application is simply creating a single Python instance  in most cases setting  kEmbedded 1 in wingdbstub should suffice     In certain cases where the host application is manually creating or altering the thread  state for each invocation of a script  you may need to use code as follows to reset the  debugger and connection for each script invocation     import wingdbstub    128    if wingdbstub debugger    None   wingdbstub  debugger   StopDebug     wingdbstub  debugger  StartDebug       In other cases where the host application uses an entirely differe
185. ailed tests   Re run all the previously failed tests in the debug   ger     Ctrl Alt F7  debug last tests   Debug the last group of tests that were run     Ctrl Alt Left  goto previous bookmark   Go to the previous bookmark in the book   mark list  or the last one if no bookmark is selected  Stays within the file in the current  editor when current_file_only is True     Ctrl Alt Right  goto next bookmark   Go to the next bookmark  or the first one if  no bookmark is selected  Stays within the file in the current editor when current_file_only  is    True     Ctrl Alt Up  goto previous bookmark current_file_ only True    Go to the pre   vious bookmark in the bookmark list  or the last one if no bookmark is selected  Stays  within the file in the current editor when current_file_only is True     481    Ctrl BackSpace  backward delete word   Action varies according to focus  Active  Editor Commands  Delete one word behind of the cursor   Toolbar Search Commands   Delete word behind the cursor    Ctrl C  center cursor   Scroll so cursor is centered on display    Ctrl C  copy   Action varies according to focus  Active Editor Commands  Copy  selected text   Document Viewer Commands  Copy any selected text    Exceptions  Commands  Copy the exception traceback to the clipboard   Search Manager Instance  Commands  Copy selected text   Toolbar Search Commands  Cut selection    Ctrl D  scroll text down   Scroll text down a line w o moving cursor   s relative posi   tion on screen  Repeat
186. ails of the visual  state  including the state of the tools  the size and position of windows  and the caret  position     Internal Name    main perspective style  Data Specification     tuple length 2 of   tools and editors  all  tools only    lt type str gt    Default Value    tools    Shared Perspective File    Selects the file to use for storing and retrieving shared perspectives  By default  when  value is None  the file    perspectives    in the user settings directory is used     Internal Name     main perspective shared file    193    Data Specification      one of   lt type NoneType gt    lt type str gt      Default Value     None    Auto save Perspectives    Selects whether to auto save perspectives when switching to another perspective  Can  always auto save  never auto save  prompt each time a perspective is left  or auto save  as configured on a per perspective basis     Internal Name     main perspective auto save    Data Specification      tuple length 2 of   always  never  prompt  choose    lt type str gt      Default Value     always    e Other    Show Splash Screen  Controls whether or not the splash screen is shown at startup     Internal Name     main show splash screen    Data Specification      lt boolean  O or 1 gt     194    Default Value     Case Sensitive Sorting    Controls whether names are sorted case sensitively  with all caps preceding small letters   or case insensitively    Internal Name   gui sort case sensitive  Data Specification    lt bool
187. al formlets for collecting data are defined in guiutils formbuilder py  but  these are not usually needed for scripting     Magic Default Argument Values    Wing treats certain defaults values specially when they are specified for a script   s argu   ments  When these default values are given  Wing will replace them with instances of  objects defined in the API  This is a convenient way for the script to access the appli   cation  debugger  current project  current editor  and other objects in the API  All the  default values are defined in the wingapi py file  as are the classes they reference     e kArgApplication    The CAPIApplication instance  this is a singleton   Also  accessible as wingapi gApplication     e kArgDebugger    The currently active CAPIDebugger  Also accessible as  wingapi gApplication GetDebugger        165    e kArgProject    The currently active CAPIProject  Also accessible as  wingapi gApplication GetProject       e kArgEditor    The currently active CAPIEditor  Also accessible as  wingapi gApplication GetActiveEditor       e kArgDocument    The CAPIDocument for the currently active editor  Also ac   cessible as wingapi gApplication GetActiveDocument        GUI Contexts    Scripts can use the contexts function attribute to cause Wing to automatically place the  script into certain menus or other parts of the GUI  The following contexts are currently  supported  they are defined in wingapi py      e kContextEditor    Adds an item to the end of the edit
188. alter  improve  or enhance the Software Prod   uct without limitation  except as described in this EULA     Although rights to modification of the Software Product are granted by this EULA  you  may not tamper with  alter  or use the Software Product in a way that disables  circum   vents  or otherwise defeats its built in licensing verification and enforcement capabilities   The right to modification of the Software Product also does not include the right to re   move or alter any trademark  logo  copyright or other proprietary notice  legend  symbol  or label in the Software Product     You may at your discretion distribute patch files containing any modifications or im   provements made to the Software Product  other than those that are aimed at disabling  or circumventing its built in license verification capabilities  or that result in the removal  or alteration of any trademark  logo  copyright  or other proprietary notice  legend  sym   bol or label in the Software Product  This right does not include the right to distribute  substantial portions of the original source  where distribution rights are limited to con   textual information normally existing in software patch files     You may at your discretion designate license terms  open source or otherwise  for all  modifications or improvements made by you  Wingware has no special rights to any  such modifications or improvements     You may make copies of the Software Product as reasonably necessary for its use  Each
189. alues   tuple length 2 of   tu    ple of   tuple length 2 of   wildcard filename  wildcard   directory  mime type    lt type str gt      tuple of   tu    ple length 2 of   wildcard filename  wildcard directory  mime   type    lt type str gt         Default Value      u   All Source Files      O       wildcard filename          0      C wildcard     filename          obj          wildcard filename          a      C wildcard   filename          lib          wildcard filename          so          wildcard   filename          dll          wildcard filename          exe       C wildcard   filename          ilk          wildcard filename          pdb          wildcard   filename          pyc          wildcard filename          pyo        wildcard   filename          pyd          wildcard filename          py class          wildcard   filename        core          wildcard filename          bak          wildcard   filename          tmp          wildcard filename          temp      C    wildcard   filename          old          wildcard filename          old      C wildcard   filename          wpr          wildcard filename          wpu          wildcard   filename          zip          wildcard filename          tgz          wildcard     filename          tar gz          wildcard filename          dsp          wildcard     205    filename          dsw          wildcard filename          sln          wildcard    filename          suo          wildcard filename          vcproj        
190. ame to create new  instances     If Wing is failing to see matches as resolving to the same point of definition  it may help  to add to the Python Path in Project Properties so that the source analysis engine can  resolve module imports     Completed searches are stored in the Uses tool and can be referenced by clicking on  the drop down menu at the top of the tool and deleted by clicking on the close icon   Note that searches do not automatically refresh as code is modified  but may be updated  manually with Refresh in the Options menu     5 6  Wildcard Search Syntax    For wild card searches in the Search tools  the following syntax is used       can be used to match any sequence of characters except for line endings  For example   the search string my value would match anything within a single line of text starting  with my and ending with value  Note that   is    greedy    in that myinstancevalue    myothervalue would match as a whole rather than as two matches  To avoid this  use  Regex Search instead with     instead of         can be used to match any single character except for line endings  For example   my   value would match any string starting with my followed by three characters  and  ending with value       and   can be used to indicate sets of match characters  For example  abcd  matches  any one of a  b  c  or d  Also   a zA Z  matches any letter in the range from a to z   inclusive   either lower case or uppercase  Note that case specifications in character  
191. among the splits or out to separate windows     The size of each panel and the panel splits can also be altered by dragging on the dividers  between them     All available tools are enumerated in the Tools menu  which will display the most recently  used tool of that type or will add one to your window at its default location  if none is  already present     Creating Additional Windows    In addition to moving existing editors or tools to new windows  it is also possible to  create new tool windows  initially with a single tool  and new document windows  with  editor and toolbars if applicable to the selected windowing policy  from the Windows  menu     Wing IDE will remember the state of all windows as part of your project file  so the  same window layout and contents will be restored in subsequent work sessions     2 2 3  Altering Text Display    Wing tries to find display fonts appropriate for each system on which it runs  but many  users will want to customize the font style and size used in the editor and other user  interface areas  This can be done with the Source Code Font Size and Display  Font  Size preferences     The color of text for some file types in the editor can be controlled with the Syntax  Formatting preference     Note that when the Source Code Background preference is set to a color other than  white  Wing will compute appropriately visible colors for text according to the chosen  background color     The color used for text selection can also be contro
192. an_fe  Armenian_apostrophe  Arme   nian_ligature_ew     Georgian_an  Georgian_ban  Georgian_gan  Georgian_don  Georgian_en  Georgian_vin   Georgian_zen  Georgian_tan  Georgian_in  Georgian_kan  Georgian_las  Georgian_man   Georgian_nar  Georgian_on  Georgian_par  Georgian_zhar  Georgian_rae  Georgian_san   Georgian_tar  Georgian_un  Georgian_phar  Georgian_khar  Georgian_ghan  Geor   gian_qar  Georgian_shin  Georgian_chin  Georgian_can  Georgian_jil  Georgian_cil  Geor   gian_char  Georgian_xan  Georgian_jhan  Georgian_hae  Georgian_he  Georgian_hie   Georgian_we  Georgian_har  Georgian_hoe  Georgian_fi     2 5  Perspectives    Wing IDE Professional allows you to create and switch between subsets of the IDE   s  tools  as appropriate for particular kinds of work  such as editing  testing  debugging   working on documentation  and so forth     These subsets  or perspectives  are named and then accessed from the Tools menu  which  provides a sub menu for switching between them  The current perspective is shown in  brackets in the lower left of Wing   s window     Perspective Manager    The Tools menu also contains an item for displaying the Perspective Manager  The  Perspective Manager shows the name of each perspective  whether or not the perspective  is shared  and the key binding  if any  that is assigned to it     The name of a perspective can be changed by clicking on the name within the list and  editing it in place     When perspectives are shared  they are stored in the
193. ance  Commands  Copy selected text   Toolbar Search Commands  Cut selection    Ctrl Comma  next window   Switch to the next window alphabetically by title  Ctrl D  toolbar search focus   Move focus to toolbar search entry     Ctrl Delete  forward delete word   Action varies according to focus  Active Editor  Commands  Delete one word in front of the cursor   Toolbar Search Commands  Delete  word in front of the cursor    Ctrl Down  scroll text down   Scroll text down a line w o moving cursor   s relative  position on screen  Repeat is number of lines or if  gt 0 and  lt 1 0 then percent of screen   Set move_cursor to False to leave cursor in current position within the source  otherwise  it is moved so the cursor remains on same screen line     Ctrl E  brace match   Match brace at current cursor position  selecting all text be   tween the two and hilighting the braces    Ctrl End  end of document   Move cursor to end of document  Ctrl F  search   Bring up the search manager in search mode     Ctrl F12  command by name   Execute given command by name  collecting any args  as needed    Ctrl F3  search sel forward   Search forward using current selection    Ctrl F4  close   Close active document  Abandon any changes when ignore_changes is  True  Close empty windows and quit if all document windows closed when close_window  is    True     Ctrl F5  debug kill   Stop debugging  Ctrl F8  start select line   Turn on auto select mode line by line  Ctrl F9  break clear all   Clear all 
194. and Return  new line   Place a new line at the current cursor position    Command Right  end of line   Action varies according to focus  Active Editor Com   mands  Move to end of current line  Toolbar Search Commands  Move to the end of the  toolbar search entry    Command  S  save   Save active document  Also close it if close is True     467    Command Semicolon  comment toggle   Toggle commenting out of the selected  lines  The style of commenting can be controlled with the style argument     indented     uses the default comment style indented at end of leading white space and    block    uses  a block comment in column zero  If not given  the style configured with the Editor    Block Comment Style preference is used     Command Shift D  goto bookmark   Goto named bookmark    Command Shift Down  end of document extend   Move cursor to end of docu   ment  adjusting the selection range to new position    Command Shift F  batch search   Display Search in Files tool  The look_in argu   ment gets entered in the look in field if not None or      The current selection is put into  the search field if it doesn   t span multiple lines and either use_selection is true or there   s  nothing in the search field  The given search text is used instead  if provided    Command Shift F3  search sel backward   Search backward using current selection    Command Shift F5  debug stop   Pause free running execution at current program  counter    Command Shift F6  debug all tests   Debug all th
195. and additional activations can be ob   tained from the self serve license manager or by emailing sales at wingware com  As a  fall back in cases of emergency where we cannot be contacted and you don   t have an  activation  Wing IDE will run for 10 minutes at a time without any license at all     See Installing Your License for more information on obtaining and activating licenses     1 3  Supported Platforms    This version of Wing IDE is available for Microsoft Windows  Linux  Mac OS X  with  X11 Server   and some other operating systems where customers compile the product  from source code     15    Microsoft Windows    Wing IDE supports Windows 2000  XP  2003 Server  Vista  and Windows 7  Windows  95  98  and ME are not supported and will not work  Windows NT4 is not supported  but may work with IE5  installed     Linux Intel    Wing IDE runs on Linux versions with glibc2 2 or later  e g  Ubuntu 6   RedHat 7 1    Mandrake 8 0   SUSE 7 1   and Debian 3 0       On Suse  you may need to install the gmp and python packages  or install Python from  source  since Python is not installed by default here     Mac OS X    Wing IDE runs on Mac OS X 10 3 9   Wing IDE for OS X also requires an X11 Server  and Window Manager  For details see OS X Quick Start Guide     Other Platforms    Wing IDE can be compiled from source by customers wishing to use it on other operating  systems  such as Linux PPC  Free BSD  or Solaris   This requires a non disclosure  agreement     1 4  Supported Py
196. and line option to get Wing running again so that the  preference can be turned off     On Linux  OS X  or other posix systems  in some cases when the    cache di   rectory or the cache directory set by the  XDG_CACHE_DIR is located on a nfs or other  remote file server  Wing can   t obtain a lock on a database file  To use slower  dotfile  locking set the Use sqlite dotfile locking preference to enabled or run Wing with the    use sqlite dotfile locking command line option  Note that all Wing processes   regardless of the system they   re running on  that use the same cache directory need to  either use or not use dotfile locking     To rule out problems with a project file or preferences  try renaming your User  Settings Directory and restart Wing  If this works  you can copy over files from the  renamed directory one at a time to isolate the problem    or email support at wingware  dot com for help     Under a Windows terminal server  Wing may not be able to set up the environment  variables it uses internally and will not start up  In this case  you can get Wing to start  with the following commands     set PYTHONOPTIMIZE 1  set PYTHONHOME D  Program Files WingIDE bin PyCore  wing exe    Alter PYTHONHOME according to the location at which you   ve installed Wing IDE     In other cases  refer to Obtaining Diagnostic Output   18 2  Issues on Microsoft Windows  Wing has a few problems and limitations on Microsoft Windows systems    1  The TortoiseHg shell extension and a few
197. angul_Dikeud  Hangul_SsangDikeud  Hangul_Rieul   Hangul_RieulKiyeog  Hangul_RieulMieum  Hangul_RieulPieub  Hangul_RieulSios   Hangul_RieulTieut    Hangul_RieulPhieuf    Hangul_RieulHieuh  Hangul Mieum   Hangul_Pieub  Hangul_SsangPieub  Hangul_PieubSios  Hangul_Sios  Hangul_SsangSios   Hangul_Ieung  Hangul_Jieuj  Hangul_SsangJieuj  Hangul_Cieuc  Hangul_Khieugq   Hangul_Tieut  Hangul_Phieuf  Hangul_Hieuh  Hangul_A  Hangul_AE   Hangul YA  Hangul YAE  Hangul EO  Hangul E  Hangul YEO  Hangul YE   Hangul O  Hangul  WA  Hangul  WAE  Hangul OE  Hangul YO  Hangul  U   Hangul WEO  Hangu WE  Hangul WI  Hangul YU  Hangul EU  Hangul  YI   Hangul_l  Hangul_J_Kiyeog  Hangul_J_SsangKiyeog  Hangul_J_KiyeogSios   Hangul_J_Nieun  Hangul_J_NieunJieuj  Hangul_J_NieunHieuh  Hangul_J_Dikeud   Hangul_J_Rieul  Hangul_J_RieulKiyeog  Hangul_J_RieulMieum  Hangul_J_RieulPieub   Hangul_J_RieulSios  Hangul_J_RieulTieut  Hangul_J_RieulPhieuf  Hangul_J_RieulHieuh     Hangul_J_Mieum  Hangul_J_Pieub  Hangul_J_PieubSios  Hangul_J_Sios   Hangul_J_Ssang Sios  Hangul_J_Ieung  Hangul_J_Jieuj  Hangul_J_Cieuc   Hangul_J_Khieuq  Hangul_J_Tieut  Hangul_J_Phieuf  Hangul_J_Hieuh   Hangul_RieulYeorinHieuh  Hangul_SunkyeongeumMieum  Hangul_SunkyeongeumPieub   Hangul_PanSios  Hangul_KkogjiDalrinleung  Hangul_SunkyeongeumPhieuf   Hangul_YeorinHieuh  Hangul_AraeA  Hangul_AraeAE  Hangul_J_PanSios     Hangul_J_KkogjiDalrinleung  Hangul_J_YeorinHieuh  Korean_Won     Armenian_eternity  Armenian_section_sign  Armenian_full_stop  A
198. arator   KP_Subtract  KP_Decimal  KP_Divide     exclam  quotedbl  numbersign  dollar  percent  ampersand  apostrophe  quoteright   parenleft  parenright  asterisk  plus  comma  minus  period  slash  colon  semicolon  less   equal  greater  question  at  bracketleft  backslash  bracketright  asciicircum  underscore   grave  quoteleft  braceleft  bar  braceright     EuroSign  EcuSign  ColonSign  CruzeiroSign  FFrancSign  LiraSign  MillSign  NairaSign   PesetaSign  RupeeSign  WonSign  NewShegqelSign  DongSign      8  Many other key names are available for use on international or special purpose  keyboards     asciitilde  nobreakspace  exclamdown  cent  sterling  currency  yen  brokenbar  section   diaeresis  copyright  ordfeminine  guillemotleft  notsign  hyphen  registered  macron   degree  plusminus  twosuperior  threesuperior  acute  mu  paragraph  periodcentered   cedilla  onesuperior  masculine  guillemotright  onequarter  onehalf  threequarters  ques   tiondown     leftradical  topleftradical  horizconnector  topintegral  botintegral  vertconnector   topleftsqbracket  botleftsqbracket  toprightsqbracket  botrightsqbracket  topleftparens   botleftparens  toprightparens  botrightparens  leftmiddlecurlybrace  rightmiddlecurly   brace  topleftsummation  botleftsummation  topvertsummationconnector  botvert   summationconnector  toprightsummation  botrightsummation  rightmiddlesummation   lessthanequal  notequal  greaterthanequal  integral  therefore  variation  infinity  nabla 
199. arch or replace string    Ctrl Tab  begin visited document cycle move_back True    Start moving be   tween documents in the order they were visited  Starts modal key interaction that ends  when a key other than tab is seen or ctrl is released     Ctrl U  initiate repeat   Enter a sequence of digits indicating number of times to  repeat the subsequent command or keystroke     Ctrl Up  scroll text up   Scroll text up a line w o moving cursor   s relative position  on screen  Repeat is number of lines or if  gt 0 and  lt 1 0 then percent of screen  Set  move_cursor to False to leave cursor in current position within the source  otherwise it  is moved so the cursor remains on same screen line     Ctrl V  forward page   Move cursor forward one page    Ctrl W  cut   Action varies according to focus  Active Editor Commands  Cut se   lected text   Search Manager Instance Commands  Cut selected text   Toolbar Search  Commands  Cut selection    Ctrl X 1  unsplit   Unsplit all editors so there   s only one  Action specifies how to  choose the remaining displayed editor  One of     current    Show current editor   close    Close current editor before unsplitting  recent    Change to recent buffer before unsplitting  recent or close    Change to recent buffer before closing    split  or close the current buffer if there is only  one split left     404    NOTE  The parameters for this command are subject to change in the future     Ctrl X 2  split vertically   Split current view vertically
200. arch sel forward   Search forward using current selection    Command F4  close   Close active document  Abandon any changes when ig   nore_changes is True  Close empty windows and quit if all document windows closed  when close_window is True     Command F5  debug kill   Stop debugging  Command F8  start select line   Turn on auto select mode line by line  Command F9  break clear all   Clear all breakpoints    Command G  search forward   Search again using the search manager   s current set   tings in forward direction    Command H  toggle bookmark   Set or remove a bookmark at current location on  the editor  When set  the name of the bookmark is set to an auto generated default     Command I  view file properties   View project properties for a particular file  cur   rent file if none is given     Command J  fill paragraph   Attempt to auto justify the paragraph around the cur   rent start of selection    Command KP_Add  fold expand more current   Expand the current fold point  one more level    Command KP_Divide  fold toggle   Toggle the current fold point  Command KP_Enter  new line   Place a new line at the current cursor position    Command KP_Equal  fold python classes and defs   Fold up all Python classes   methods  and functions but leave other fold points alone    Command KP_Multiply  fold expand all current   Expand the current fold point  completely    466   Command KP_Subtract  fold collapse all current   Collapse the current fold  point completely   Command L  g
201. ard    These work like the above but treat  the search string as a regular expression     e Query Replace and Regex Query Replace    This prompts for search and  replace strings in an entry area at the bottom of the IDE window and prompts  for replace on each individual match found after the cursor location in the current  source editor  Press y to replace or n to skip a match and move on to the next  one  The interaction can be canceled at any time with Esc or  G  Matching is case  insensitive unless a capital letter is entered as part of the search string  Searching  is always forward and stops when the end of the file is reached  without wrapping  to any un searched parts between the top of the file and the position from which  the search was started     e Replace String and Replace Regex    This works like the above command but  immediately replaces all matches without prompting     79    5 3  Search Tool    The dockable Search tool can be used for more advanced search and replace tasks within  the current editor  It provides the ability to customize case sensitivity and whole part  word matching  search in selection  and perform wildcard or regex search and replace     The Replace field may be hidden and can be shown from the Options menu in the  bottom right of the tool     To the right of the Search and Replace fields  Wing makes available a popup that  contains a history of previously used strings  options for inserting special characters   and an option for expanding
202. ard   Toolbar Search Commands  Paste from clipboard    Shift KP_Left  backward char extend   Action varies according to focus  Active    412    Editor Commands  Move cursor backward one character  adjusting the selection range  to new position   Toolbar Search Commands  Move backward one character  extending  the selection    Shift KP_Next  forward page extend   Move cursor forward one page  adjusting  the selection range to new position    Shift KP_Page_Down  forward page extend   Move cursor forward one page  ad   justing the selection range to new position    Shift KP_Page_Up  backward page extend   Move cursor backward one page  ad   justing the selection range to new position    Shift KP_Prior  backward page extend   Move cursor backward one page  adjust   ing the selection range to new position    Shift KP_Right  forward char extend   Action varies according to focus  Active  Editor Commands  Move cursor forward one character  adjusting the selection range to  new position   Toolbar Search Commands  Move forward one character  extending the  selection    Shift KP_Up  previous line extend   Move to previous screen line  adjusting the  selection range to new position  optionally repositioning character within line  same    to  leave in same horizontal position     start    at start     end    at end  or    fnb    for first non blank  char     Shift Left  backward char extend   Action varies according to focus  Active Editor  Commands  Move cursor backward one character  a
203. ard one character  adjusting the selection range to  new position   Toolbar Search Commands  Move forward one character  extending the  selection    Shift Right  forward word   Action varies according to focus  Active Editor Com   mands  Move cursor forward one word  Optionally  provide a string that contains the  delimiters to define which characters are part of a word  Gravity may be start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move forward one word    Shift Tab  backward tab   Outdent line at current position  Shift Up  backward page   Move cursor backward one page    Shift Up  previous line extend   Move to previous screen line  adjusting the selection  range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start  end    at end  or    fnb    for first non blank char     Tab  tab key   Implement the tab key  the action of which is configurable by preference    Up  previous line   Move to previous screen line  optionally repositioning character  within line  same    to leave in same horizontal position     start    at start     end    at end  or   fnb    for first non blank char     Visual    filter selection   Filter the current selection through an external command  and replace the lines with the result    Visual 1  initiate numeric modifier digit 1    VI style repeat numeric modifier  for following command    Visual 2  initi
204. arning sign  depending on whether the test failed or succeeded   Status indicators for each file will also be set to red or green depending on whether any  test failed or not  Individual test nodes may be expanded to show any output generated  by the test or any exception that occurred  Exceptions may be expanded to display  tracebacks     Navigating    Double clicking on any node or using the Goto Source option on the right click popup  menu in the testing tool   s tree will display source code in the editor  if the source is  available    99    100    Note that the File Filter field in the Testing tool can be used to subset the list of  tests displayed in the tool  Restore it to blank or use the Clear item in its popup menu  to see the entire lists of tests  This is a convenient way to find and focus on only those  tests being worked on     11 1  Project Test Files    A subset of a project   s files can automatically be included in the list of test files in the  Testing tool  The set of files is specified by the Test file patterns field on the Testing  tab of the Project Properties dialog  which can also be accessed using the Add Files  from Project menu item     Any file matching the glob style wildcard pattern specified here is considered a test file   For details  see Wildcard Search Syntax  If the field is left empty then no project  files will automatically be added     Automatically added files may not be removed from the project tool   s list except by  altering the 
205. articularly in those that alter the thread state or discard and recreate the Python  instance across invocations     To use the API  take the following steps   1  Configure and import wingdbstub  py as  described in section Importing the Debugger   2  Subsequently  use the instance  variable wingdbstub debugger to make any of the following calls     e Start Debug stophere 0  connect 1     Start debugging  optionally connect   ing back to the IDE and or stopping immediately afterwards     e StopDebug     Stop debugging completely and disconnect from Wing IDE  The  debug program continues executing in non debug mode and must be restarted to  resume debugging     e SuspendDebug     This will leave the connection to the debug client intact but  disables the debugger so that connection overhead is avoided during subsequent  execution     127    ResumeDebug     This will resume debugging using an existing connection to  Wing     Break      This pauses the free running debug program on the current line  as if  at a breakpoint     ProgramQuit     This must be called before the debug program is exited if  kEmbedded was set to 1 in wingdbstub py or if autoquit 0 in the preceding  StartDebug   API call  if any   This makes sure the debug connection to the  IDE is closed cleanly     SetDebugThreads threads     default_policy 1    This can be used in  multi threaded code to tell Wing   s debugger which threads to debug  Pass in  a dictionary that maps from thread id  as obtained from thre
206. ase of the current selection  or character ahead of the cursor if there is no  selection  to lower case Key Bindings  Visual Studio  Ctrl U    case lower next move  repeat  lt numeric modifier  default 1 gt      Change case of text spanned by next cursor movement to lower case Key Bindings   VI VIM  g u    case swap  repeat  lt numeric modifier  default 1 gt      Change case of the current selection  or character ahead of the cursor if there is no  selection  so each letter is the opposite of its current case Key Bindings  VI VIM       case swap next move  repeat  lt numeric modifier  default 1 gt      Change case of text spanned by next cursor movement so each letter is the opposite of  its current case Key Bindings  VI VIM  g      316    case title  repeat  lt numeric modifier  default 1 gt      Change case of the current selection  or character ahead of the cursor if there is no  selection  to title case  first letter of each word capitalized     case title next move  repeat  lt numeric modifier  default 1 gt      Change case of text spanned by next cursor movement to title case  first letter of each  word capitalized     case upper  repeat  lt numeric modifier  default 1 gt      Change case of the current selection  or character ahead of the cursor if there is no  selection  to upper case Key Bindings  Visual Studio  Ctrl Shift U    case upper next move  repeat  lt numeric modifier  default 1 gt      Change case of text spanned by next cursor movement to upper case Key Bi
207. ate numeric modifier digit 2    VI style repeat numeric modifier  for following command    Visual 3  initiate numeric modifier digit 3    VI style repeat numeric modifier  for following command    Visual 4  initiate numeric modifier digit 4    VI style repeat numeric modifier  for following command    Visual 5  initiate numeric modifier digit 5    VI style repeat numeric modifier  for following command    Visual 6  initiate numeric modifier digit 6    VI style repeat numeric modifier  for following command    Visual 7  initiate numeric modifier digit 7    VI style repeat numeric modifier  for following command    443  Visual 8  initiate numeric modifier digit 8    VI style repeat numeric modifier  for following command    Visual 9  initiate numeric modifier digit 9    VI style repeat numeric modifier  for following command    Visual  lt   outdent lines num None    Outdent selected number of lines from cursor  position  Set num to None to indent all the lines in current selection     Visual  gt   indent lines num None    Indent selected number of lines from cursor  position  Set num to None to indent all the lines in current selection     Visual Ctrl V  enter browse mode   Enter editor browse mode   Visual Ctrl    exit visual mode   Exit visual mode and return back to default mode  Visual Esc  exit visual mode   Exit visual mode and return back to default mode  Visual Esc  exit visual mode   Exit visual mode and return back to default mode  Visual Shift A  enter insert mode po
208. ating system     Debug    The per file debug properties dialog contains all the same fields described in Project   Wide Properties  with the following additions     Run Arguments    Enter any run arguments here  Wing does not interpret backslashes        on the command line and passes them unchanged to the debug process  The only  exceptions to this rule are      and     backslash followed by single or double quote    which allow inclusion of quotes inside quoted multi word arguments     Show this dialog before each run    Check this checkbox if you want the debug  options dialog to appear each time you start a debug session     Values defined per file override or modify the corresponding project wide property     When debugging  only per file debug properties set on the initially invoked file are used   Even if other files with set properties are used in the debug session  any values set for  them will be ignored     Testing    The testing tab contains a subset of the fields described in Project Wide Properties     Source Code Editor    Wing IDE   s source code editor is designed to make it easier to adopt the IDE even if  you are used to other editors        Key things to know about the editor    e The editor has personalities that emulate other commonly used editors such  as Visual Studio  VI Vim  Emacs  and Brief     e Context appropriate auto completion  goto definition  and code index menus  are available when working in Python code    e The editor supports a wide varie
209. back False    Start mov   ing between documents in the order they were visited  Starts modal key interaction that  ends when a key other than tab is seen or ctrl is released     Ctrl Shift Up  previous line extend   Move to previous screen line  adjusting the  selection range to new position  optionally repositioning character within line  same    to  leave in same horizontal position  start    at start     end    at end  or    fnb    for first non blank  char     Ctrl T  forward tab   Action varies according to focus  Active Editor Commands     434  Place a tab character at the current cursor position   Search Manager Instance Com   mands  Place a forward tab at the current cursor position in search or replace string    Ctrl Tab  begin visited document cycle move_back True    Start moving be   tween documents in the order they were visited  Starts modal key interaction that ends  when a key other than tab is seen or ctrl is released     Ctrl Up  scroll text up   Scroll text up a line w o moving cursor   s relative position  on screen  Repeat is number of lines or if  gt 0 and  lt 1 0 then percent of screen  Set  move_cursor to False to leave cursor in current position within the source  otherwise it  is moved so the cursor remains on same screen line     Delete  forward delete char   Action varies according to focus  Active Editor Com   mands  Delete one character in front of the cursor   Toolbar Search Commands  Delete  character in front of the cursor    Down  next line   
210. backward one page   adjusting the selection range to new position    Ctrl Shift KP_Prior  backward page extend   Move cursor backward one page   adjusting the selection range to new position    Ctrl Shift KP_Right  forward word extend   Action varies according to focus  Ac   tive Editor Commands  Move cursor forward one word  adjusting the selection range to  new position  Optionally  provide a string that contains the delimiters to define which  characters are part of a word  Gravity may be    start    or    end    to indicate whether cursor  is placed at start or end of the word   Toolbar Search Commands  Move forward one  word  extending the selection    Ctrl Shift KP_Up  previous line extend   Move to previous screen line  adjusting  the selection range to new position  optionally repositioning character within line  same     to leave in same horizontal position     start    at start  end    at end  or    fnb    for first non   blank char     Ctrl Shift Left  backward word extend   Action varies according to focus  Active  Editor Commands  Move cursor backward one word  adjusting the selection range to  new position  Optionally  provide a string that contains the delimiters to define which  characters are part of a word  Gravity may be    start    or    end    to indicate whether cursor  is placed at start or end of the word   Toolbar Search Commands  Move backward one  word  extending the selection    Ctrl Shift Next  forward page extend   Move cursor forward one page  a
211. bal args  Data Specification    lt type str gt     Default Value     269    270    Internal Preferences       Core Preferences    main debug break on critical    If True and a gtk  gdk  or glib critical message is logged  Wing tries to start a C debugger  and break at the current execution point    Internal Name    main  debug break on critical  Data Specification     lt boolean  0 or 1 gt   Default Value    False    main documentation language    The language to use for the documentation  when available  not all documentation is  translated into all supported languages      Internal Name   main documentation language  Data Specification    None  de  en  fr   Default Value     en    271    main extra mime type comments    This is a map from mime type to tuple of start end comment characters for each mime  type  One entry should be added for each new mime type added with the main extra   mime types preference     Internal Name    main extra mime type comments  Data Specification     dict  keys   lt type str gt   values   tuple length 2 of   lt type str gt    lt type str gt     Default Value    th     main extra mime type names    This is a map from mime type to displayable name for that mime type  one entry should  be added for each new mime type added with the main extra mime types preference     Internal Name    main extra mime type names  Data Specification     dict  keys   lt type str gt   values   lt type str gt    Default Value    it    main ignored updates  Used interna
212. be obtained and altered  using GetPreference and SetPreference on wingapi gApplication     Scripts can  of course  also import and use standard library modules from Python  al   though Wing ships with a pruned subset of the standard library that includes only those  modules that are used by the IDE   s internals     Advanced scripts may also    reach through    the API into Wing internals  however this  requires reading Wing   s souce code and no guarantee is made that these will remain  unchanged or will change only in a backward compatible manner     17 5  Advanced Scripting    While simple scripts can generally be developed from example using only the Wing IDE  binary distribution  more advanced scripts require Wing to be run from the source code  distribution  usually as a debug process being controlled by another copy of Wing IDE     This provides not only more complete access to the source code for scripts that reach  through the API into Wing internals  but also more complete support for debugging the  scripts as they are developed     To obtain Wing   s source code  you must have a valid license to Wing IDE Professional  or higher and must fill out and submit a non disclosure agreement  Once this is done   you will be provided with access to the source code and more information on working  with Wing IDE   s sources     169  Example    For an example of an advanced script that adds a tool panel to the IDE   s interface  see  templating py in the scripts directory insid
213. bookmark current_file only True    Go to the pre   vious bookmark in the bookmark list  or the last one if no bookmark is selected  Stays  within the file in the current editor when current_file_only is True     Ctrl Alt period  replace string regex   Replace all occurrences of a string from the  cursor position to end of file  The search string is treated as a regular expression     Ctrl B  isearch sel forward   Action varies according to focus  Active Editor Com   mands  Initiate incremental mini search forward from the cursor position  using current  selection as the search string  Set persist False to do the search but end the interactive  search session immediately   Document Viewer Commands  Initiate incremental mini     448    search forward from the cursor position  using current selection as the search string  Set  persist False to do the search but end the interactive search session immediately     Ctrl BackSpace  backward delete word   Action varies according to focus  Active  Editor Commands  Delete one word behind of the cursor   Toolbar Search Commands   Delete word behind the cursor    Ctrl C  copy   Action varies according to focus  Active Editor Commands  Copy  selected text   Document Viewer Commands  Copy any selected text    Exceptions  Commands  Copy the exception traceback to the clipboard   Search Manager Instance  Commands  Copy selected text   Toolbar Search Commands  Cut selection    Ctrl Comma  next window   Switch to the next window alphabetically 
214. breakpoints    Ctrl G  search forward   Search again using the search manager   s current settings in  forward direction    Ctrl H  replace   Bring up the search manager in replace mode     378    Ctrl Home  start of document   Move cursor to start of document  Ctrl I  replace and search   Replace current selection and search again     Ctrl Insert  copy   Action varies according to focus  Active Editor Commands  Copy  selected text   Document Viewer Commands  Copy any selected text    Exceptions  Commands  Copy the exception traceback to the clipboard   Search Manager Instance  Commands  Copy selected text   Toolbar Search Commands  Cut selection    Ctrl J  fill paragraph   Attempt to auto justify the paragraph around the current  start of selection    Ctrl K  open from keyboard   Open a file from disk using keyboard driven selection  of the file    Ctrl KP_Add  zoom in   Zoom in  increasing the text display size temporarily by one  font size    Ctrl KP_Delete  forward delete word   Action varies according to focus  Active  Editor Commands  Delete one word in front of the cursor   Toolbar Search Commands   Delete word in front of the cursor    Ctrl KP_Down  next line   Move to screen next line  optionally repositioning char   acter within line     same    to leave in same horizontal position     start    at start     end    at  end  or    fnb    for first non blank char     Ctrl KP_End  end of document   Move cursor to end of document  Ctrl KP_Home  start of document   Move c
215. by title  Ctrl D  toolbar search focus   Move focus to toolbar search entry     Ctrl Delete  forward delete word   Action varies according to focus  Active Editor  Commands  Delete one word in front of the cursor   Toolbar Search Commands  Delete  word in front of the cursor    Ctrl Down  scroll text down   Scroll text down a line w o moving cursor   s relative  position on screen  Repeat is number of lines or if  gt 0 and  lt 1 0 then percent of screen   Set move_cursor to False to leave cursor in current position within the source  otherwise  it is moved so the cursor remains on same screen line     Ctrl E  brace match   Match brace at current cursor position  selecting all text be   tween the two and hilighting the braces    Ctrl End  end of document   Move cursor to end of document  Ctrl F  search   Bring up the search manager in search mode   Ctrl F10  debug to cursor    Ctrl F12  command by name   Execute given command by name  collecting any args  as needed    Ctrl F3  search sel forward   Search forward using current selection    Ctrl F4  close   Close active document  Abandon any changes when ignore_changes is  True  Close empty windows and quit if all document windows closed when close_window  is    True     Ctrl F5  debug file   Start debugging the current file  rather than the main entry  point     Ctrl F5  debug kill   Stop debugging    449    Ctrl F8  start select line   Turn on auto select mode line by line  Ctrl F9  break clear all   Clear all breakpoints   Ct
216. c modifier  default 1 gt     Move cursor forward one character Key Binding  Right  forward char extend  wrap 1  repeat  lt numeric modifier  default 1 gt      Move cursor forward one character  adjusting the selection range to new position Key  Binding  Shift Right    forward char extend rect  wrap 1  repeat  lt numeric modifier  default 1 gt      Move cursor forward one character  adjusting the rectangular selection range to new po     320    sition Key Bindings  Normal  Shift Alt Right  VI VIM  Shift Alt Right  Emacs  Shift   Alt Right  Brief  Shift Alt Right  Visual Studio  Shift Alt Right  OS X  Ctrl Option   Right    forward delete char  repeat  lt numeric modifier  default 1 gt    Delete one character in front of the cursor Key Binding  Delete  forward delete char insert  repeat  lt numeric modifier  default 1 gt      Delete one char in front of the cursor and enter insert mode  when working in modal  key bindings  Key Bindings  VI VIM  s    forward delete char within line  repeat  lt numeric modifier  default 1 gt      Delete one character in front of the cursor unless at end of line  in which case delete  backward  Do nothing if the line is empty  This is VI style    x    in browser mode  Key  Bindings  VI VIM  x    forward delete word  repeat  lt numeric modifier  default 1 gt      Delete one word in front of the cursor Key Bindings  Normal  Ctrl Delete  VI VIM   Ctrl Delete  Emacs  Ctrl Delete  Brief  Ctrl Delete  Visual Studio  Ctrl Delete  OS X   Option Delete    
217. ce in files tool     Ctrl Shift Home  start of document extend   Move cursor to start of document   adjusting the selection range to new position    Ctrl Shift I  add current file to project   Add the frontmost currently open file to  project    Ctrl Shift ISO_Left_Tab  begin visited document cycle move_back False     Start moving between documents in the order they were visited  Starts modal key  interaction that ends when a key other than tab is seen or ctrl is released     Ctrl Shift KP_Down  next line extend   Move to next screen line  adjusting the  selection range to new position  optionally repositioning character within line  same    to  leave in same horizontal position     start    at start  end    at end  or    fnb    for first non blank  char     Ctrl Shift KP_End  end of document extend   Move cursor to end of document   adjusting the selection range to new position    Ctrl Shift KP_Home  start of document extend   Move cursor to start of docu   ment  adjusting the selection range to new position    Ctrl Shift K P_Left  backward word extend   Action varies according to focus  Ac   tive Editor Commands  Move cursor backward one word  adjusting the selection range  to new position  Optionally  provide a string that contains the delimiters to define which  characters are part of a word  Gravity may be    start    or    end    to indicate whether cursor  is placed at start or end of the word   Toolbar Search Commands  Move backward one  word  extending the selection 
218. ce to define them     Once defined  file sets are presented by name in the Search in Files tool   s batch search  facility and in the Project tool   s batch file addition features     Any problems encountered in using the file sets are reported in the Messages area     Project Manager    The Project manager provides a convenient index of the files in your software project  and collects information needed by Wing   s debugger  source code analysis tools  and  other facilities     To get the most out of Wing   s debugger and source analysis engine  you may in some  cases need to set up Python Executable  Python Path  and other values in Project   Wide Properties and or Per File Properties     3 1  Creating a Project    To create a new project  use the New Project item in the Project menu  This will  prompt you to save any changes to your currently open project and will create a new  untitled project  If Wing is started without any command line arguments  the most  recent project is opened  or if no project exists then the Default Project is opened     When you create a new project  you will often want to alter some of the Project  Properties to point Wing at the version of Python you want to use  set PYTHONPATH  so Wing   s source analyzer and debugger can find your files  and set any other necessary  runtime environment for your code     To add files to your project  use the following items in the Project menu     e Add Directory allows you to specify a directory to include in
219. ced at start or end of the word   Toolbar Search  Commands  Move forward one word    Ctrl KP_Subtract  zoom out   Zoom out  increasing the text display size temporarily  by one font size    Ctrl KP_Up  previous line   Move to previous screen line  optionally repositioning  character within line  same    to leave in same horizontal position     start    at start     end     at end  or    fnb    for first non blank char     Ctrl Left  backward word   Action varies according to focus  Active Editor Com   mands  Move cursor backward one word  Optionally  provide a string that contains  the delimiters to define which characters are part of a word  Gravity may be  start    or    431       end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move backward one word    Ctrl Next  forward page   Move cursor forward one page    Ctrl Page Down  next document   Move to the next document alphabetically in  the list of documents open in the current window    Ctrl Page_Up  previous document   Move to the previous document alphabetically  in the list of documents open in the current window    Ctrl Pointer_Button1  goto clicked symbol defn   Goto the definition of the  source symbol that was last clicked on    Ctrl Prior  backward page   Move cursor backward one page  Ctrl Return  new line   Place a new line at the current cursor position    Ctrl Right  forward word   Action varies according to focus  Active Editor Com   mands  Move cursor forward
220. cent   Greek_iotaaccent  Greek_iotadieresis  Greek_iotaaccentdieresis  Greek_omicronaccent   Greek_upsilonaccent  Greek_upsilondieresis  Greek_upsilonaccentdieresis   Greek_omegaaccent  Greek_ALPHA  Greek_BETA  Greek_ GAMMA  Greek_DELTA   Greek_EPSILON   Greek_ZETA  Greek_ETA  Greek THETA  Greek IOTA   Greek KAPPA  Greek LAMDA  Greek  LAMBDA  Greek  MU  Greek  NU   Greek_XI  Greek  OMICRON  Greek_PI  Greek  RHO  Greek SIGMA  Greek TAU   Greek_UPSILON  Greek_PHI  Greek CHI  Greek_PSI  Greek  OMEGA  Greek_alpha   Greek_beta  Greek_gamma  Greek delta  Greek_epsilon  Greek_zeta  Greek_eta   Greek_theta  Greek_iota  Greek_kappa  Greek_lamda  Greek_lambda  Greek_mu   Greek_nu   Greek_xi  Greek_omicron  Greek_pi  Greek_rho  Greek_sigma   Greek_finalsmallsigma  Greek_tau  Greek_upsilon  Greek_phi  Greek_chi  Greek_psi   Greek_omega  Greek_switch     hebrew_doublelowline  hebrew_aleph  hebrew_bet  hebrew_beth  hebrew_gimel  he   brew_gimmel  hebrew_dalet  hebrew_daleth  hebrew_he  hebrew_waw  hebrew_zain   hebrew_zayin  hebrew_chet  hebrew_het  hebrew_tet  hebrew_teth  hebrew_yod  he   brew_finalkaph  hebrew_kaph  hebrew_lamed  hebrew_finalmem  hebrew_mem  he   brew_finalnun  hebrew_nun  hebrew_samech  hebrew_samekh  hebrew_ayin  he   brew_finalpe  hebrew_pe  hebrew_finalzade  hebrew_finalzadi  hebrew_zade  hebrew_zadi   hebrew_qoph  hebrew_kuf  hebrew_resh  hebrew_shin  hebrew_taw  hebrew_taf  He   brew_switch     Thai_kokai  Thai_khokhai  Thai_khokhuat  Thai_khokhwai  Thai_khokhon  
221. cess Control  13 3 2  Detaching  13 3 3  Attaching  13 3 4  Identifying Foreign Processes  13 3 5  Constraints  13 4  Debugger Limitations          Integrated Version Control    14 1  Version Control Tool Panel   14 2  Common Version Control Operations  14 3  Bazaar   14 4  CVS   14 5  Git   14 6  Mercurial   14 7  Perforce    14 8  Subversion       14 9  Version Control Configuration  14 9 1  Configuring SSH  14 9 2  Configuring Subversion  14 9 3  Configuring CVS    Source Code Analysis       15 1  How Analysis Works  15 2  Static Analysis Limitations  15 3  Helping Wing Analyze Code    PyLint Integration       Scripting and Extending Wing IDE    17 1  Scripting Example    17 2  Getting Started  Naming Commands  Reloading Scripts  Overriding Internal Commands  17 3  Script Syntax  Script Attributes  ArgInfo  Commonly Used Types  Commonly Used Formlets  Magic Default Argument Values  GUI Contexts  Top level Attributes  Importing Other Modules  Internationalization and Localization  Plugins  17 4  Scripting API  17 5  Advanced Scripting  Example  How Script Reloading Works       Trouble shooting Guide    18 1  Trouble shooting Failure to Start  18 2  Issues on Microsoft Windows  18 3  Trouble shooting Failure to Debug  18 3 1  Failure to Start Debug  18 3 2  Failure to Stop on Breakpoints or Show Source Code  18 3 3  Failure to Stop on Exceptions  18 3 4  Extra Debugger Exceptions  18 4  Obtaining Diagnostic Output        18 5  Speeding up Wing  18 6  Trouble shooting F  18 7
222. ch Commands  Move forward one  character    Shift Command F8  start select block   Turn on auto select block mode    Shift Down  next line extend   Move to next screen line  adjusting the selection  range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start  end    at end  or    fnb    for first non blank char     475    Shift End  end of document extend   Move cursor to end of document  adjusting  the selection range to new position    Shift F1  move focus   Move the keyboard focus forward within the Window to the  next editable area    Shift F2  Multiple commands  first available is executed      e enter fullscreen   Hide both the vertical and horizontal tool areas  and toolbar  saving previous state so it can be restored later with  exit_fullscreen    e exit fullscreen   Restore previous non fullscreen state of all tools and  tool bar    Shift F3  search backward   Search again using the search manager   s current settings  in backward direction    Shift F4  new document window   Create a new document window with same doc   uments and panels as in the current document window  if any  otherwise empty with  default panels     Shift F5  debug file   Start debugging the current file  rather than the main entry  point     Shift F6  run all tests   Runs all the tests in testing panel     Shift F7  run current tests   Runs the current test or tests  if possible  The current  tests are determined by th
223. ch again using the search manager   s current settings  in backward direction    Shift F4  find points of use   Find points of use for a symbol  The symbol defaults  to the active selection     Shift F5  debug file   Start debugging the current file  rather than the main entry  point     Shift F5  debug kill   Stop debugging  Shift F6  run all tests   Runs all the tests in testing panel     Shift F7  run current tests   Runs the current test or tests  if possible  The current  tests are determined by the current position in the active view  The tests are debugged  when debug is True     Shift F8  start select char   Turn on auto select mode character by character    Shift F9  Multiple commands  first available is executed      e break enable   Enable the breakpoint on the current line    e break disable   Disable the breakpoint on current line    Shift Home  beginning of line text extend   Move to end of the leading white  space  if any  on the current line  adjusting the selection range to the new position     461    If toggle is True  moves to the beginning of the line if already at the end of the leading  white space  and vice versa      Shift Insert  paste   Action varies according to focus  Active Editor Commands  Paste  text from clipboard   Search Manager Instance Commands  Paste text from clipboard    Toolbar Search Commands  Paste from clipboard    Shift KP_Delete  cut   Action varies according to focus  Active Editor Commands   Cut selected text   Search Manager Ins
224. char   Action varies according to focus  Active Editor Commands   Move cursor forward one character   Toolbar Search Commands  Move forward one  character    Shift Alt A  diff merge a b  Shift Alt B  diff merge b a    Shift Alt Down  next line extend rect   Move to next screen line  adjusting the  rectangular selection range to new position  optionally repositioning character within  line  same    to leave in same horizontal position     start    at start  end    at end  or    fnb    for  first non blank char     Shift Alt Left  backward char extend rect   Move cursor backward one character   adjusting the rectangular selection range to new position    Shift Alt N  diff next  Shift Alt P  diff previous    Shift Alt Right  forward char extend rect   Move cursor forward one character   adjusting the rectangular selection range to new position    Shift Alt Up  previous line extend rect   Move to previous screen line  adjusting  the rectangular selection range to new position  optionally repositioning character within  line  same    to leave in same horizontal position     start    at start  end    at end  or    fnb    for  first non blank char     Shift BackSpace  backward delete char   Action varies according to focus  Active  Editor Commands  Delete one character behind the cursor  or the current selection if  not empty    Toolbar Search Commands  Delete character behind the cursor    Shift Ctrl F8  start select block   Turn on auto select block mode    Shift Delete  cut   Act
225. code  UTF 16  utf   16  Japanese cp932      Default Value   None    OS Commands Encoding    Default encoding of sub process input output when run in the OS Commands panel   This can be overridden on a per command basis  in each command   s properties     Internal Name   consoles  encoding  Data Specification      None or  Central and Eastern European iso8859 2  Japanese iso   2022 jp 2004  Hebrew cp856  Japanese euc jp  Vietnamese cp1258  Greek cp1253  guages cp1257  Korean johab  Western European cp1252  Baltic Lan   guages cp775  Japanese iso 2022 jp ext  Korean iso 2022    kr  Icelandic cp861  Hebrew cp424  Cyrillic Languages cp1251  Turk   ish iso8859 9  Unicode  UTF 16  little endian  utf 16 le  West    ern European cp500  Chinese  PRC  gb18030  Greek cp875  Ara    bic cp864  Icelandic mac iceland  Chinese  PRC  gbk  Turk    ish mac turkish  Greek iso8859 7  Baltic Languages iso8859    13  Cyrillic Languages mac cyrillic  Greek cp869  Turk    ish cp1254  Japanese iso 2022 jp 1  Central and Eastern Euro    pean cp852  Japanese iso 2022 jp 2  Chinese  ROC  big5  Urdu cp1006  He   brew iso8859 8  Celtic Languages iso8859 14  Thai cp874  Cyril    lic Languages cp855  Western European iso8859 15  Greek mac    greek  Ukrainian koi8 u  Hebrew cp1255  Danish  Norwe    gian cp865  Cyrillic Languages iso8859 5  Turkish cp1026  West    ern European mac roman  Western European cp1140  Chi    nese  PRC  hz  Japanese shift jisx0213  Portuguese cp860  Chi    nese  ROC  cp950  Unicode  
226. command runs bzr merge   lt remote gt  to merge the changes     Push Entire Branch    144    Push changes in local branch to remote branch  This command runs bzr push  lt remote gt   to push the changes     14 4  CVS    Wing   s CVS support requires the cvs command line executable to be installed separately  from Wing  Please see http   www nongnu org cvs  for information about CVS  The  cvs executable may either be in your path or set it with the CVS executable preference  in the Version Control   CVS preferences group     The CVS support works best if usernames and passwords are handled by another pro   gram such as ssh agent  pageant  or another ssh agent  For details on this see Setting  up SSH     If this is not possible and you must use the obsolete pserver authentication mechanism   you will need to issue the cvs login command once from the command line before  starting Wing     CVS defines the following commands  in addition to those documented in Common  Version Control Operations     Revert    This operation will dispose of any local changes and revert the local files to match the  current revision in the repository     14 5  Git    Wing   s Git support requires the git command line executable to be installed separately  from Wing  Please see http   git scm com  for information about Git  The git exe   cutable may either be in your path or set it with the Git executable preference in the  Version Control   Git preferences group     The Git support defines the follow
227. connects from the loopback interface  127 0 0 1     Internal Name    debug  network server  Data Specification     None or  lt type str gt    Default Value    None    Server Port    Determines the TCP IP port on which the IDE will listen for the connection from the  debug process  This needs to be unique for each developer working on a given host   The debug process  if launched from outside of the IDE  needs to be told the value  specified here using kWingHostPort inside wingdbstub py or by WINGDB_HOSTPORT  environment variable before importing wingdbstub in the debug process     Internal Name    debug  network port  Data Specification     from 0 to 65535   Default Value     50005    250    Location Map    Defines a mapping between the remote and local locations of files for host to host de   bugging  Each mapping key is the ip address of the remote location and the mapping  values are arrays of tuples where each tuple is a  remote_prefix  local_prefix  pair  This  should be used when files on the remote host are updated via ftp  NFS  Samba  or other  method from master copies on the local host  but the full path file system locations on  the local and remote hosts do not match     Internal Name   debug  location map  Data Specification      dict  keys   lt ip4 address         gt   values   None or  list of   tu   ple length 2 of   lt type str gt    lt type str gt         Default Value        127 0 0 1     None     Kill Externally Launched    Enable or disable the Kill comma
228. cript by any code that accesses the  Wing scripting API  For example  it could set up an instance that connects to signals in  the API and calls wingapi gApplication EnablePlugin   to enable or disable itself  according to project contents  file type in active editor  etc     When a plugin is inactive  none of its commands are available and any added menus or  menu items its adds to the GUI are removed  Plugins may denote particular commands  as always available even when the plugin is inactive by setting the _plugin_override  function attribute to True     If the user disables a plugin in the Tools menu  this prevents loading of the plugin  and  thus overrides _activator_cb and any _plugin_override attributes for the plugin     168    17 4  Scripting API    Wing   s formal scripting API consists of several parts     1  The contents of the wingapi py file in bin inside the Wing IDE installation   this file is located in src when working from the source distribution   Please  refer to the file itself for details of the API     2  The portions of the wingutils datatype and guiutils formbuilder mod   ules that are documented in the preceding section     3  All of the documented commands which can be invoked using the  ExecuteCommand   method on wingapi gApplication  Note keyword  arguments can be passed to commands that take them  for exam   ple ExecuteCommand    replace string     search_string  tset   re   place_string  test      4  All of the documented preferences which can 
229. cro is filed  Otherwise  register    a    is used by default     Ctrl Minus  visit history previous   Move back in history to previous visited editor  position    Ctrl N  new file   Create a new file  Ctrl Next  forward page   Move cursor forward one page    Ctrl O  open gui   Open a file from disk  prompting with file selection dialog if neces   sary    Ctrl P  print view   Print active editor document    Ctrl Page_Down  next document   Move to the next document alphabetically in  the list of documents open in the current window    Ctrl Page_Up  previous document   Move to the previous document alphabetically  in the list of documents open in the current window    Ctrl Pointer Button1  goto clicked symbol defn   Goto the definition of the  source symbol that was last clicked on    Ctrl Prior  backward page   Move cursor backward one page    452    Ctrl Q  quit   Quit the application   Ctrl R  replace   Bring up the search manager in replace mode   Ctrl Return  new line   Place a new line at the current cursor position    Ctrl Right  forward word   Action varies according to focus  Active Editor Com   mands  Move cursor forward one word  Optionally  provide a string that contains the  delimiters to define which characters are part of a word  Gravity may be start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move forward one word    Ctrl S  save   Save active document  Also close it if close is True     Ctrl Shift
230. ction    Ctrl Shift S  save as   Save active document to a new file    383    Ctrl Shift T  find symbol   Allow user to visit point of definition of a source symbol  in the current editor context by typing a fragment of the name    Ctrl Shift Tab  begin visited document cycle move_back False    Start mov   ing between documents in the order they were visited  Starts modal key interaction that  ends when a key other than tab is seen or ctrl is released     Ctrl Shift U  isearch backward   Action varies according to focus  Active Editor  Commands  Initiate incremental mini search backward from the cursor position  op   tionally entering the given search string   Document Viewer Commands  Initiate in   cremental mini search backward from the cursor position  optionally entering the given  search string     Ctrl Shift Up  previous line extend   Move to previous screen line  adjusting the  selection range to new position  optionally repositioning character within line  same    to  leave in same horizontal position     start    at start     end    at end  or    fnb    for first non blank  char     Ctrl Shift V  duplicate line   Duplicate the current line or lines  Places the duplicate  on the line following the selection if pos is below    or before the selection if it is    above        Ctrl Slash  comment out region   Comment out the selected region  The style of  commenting can be controlled with the style argument     indented    uses the default com   ment style indented at en
231. d   or fnb    for first non blank char     Browse Ctrl P  previous line   Move to previous screen line  optionally repositioning  character within line  same    to leave in same horizontal position     start    at start     end     at end  or    fnb    for first non blank char     Browse Ctrl Q  start select block   Turn on auto select block mode  Browse Ctrl R  redo   Redo last action    Browse Ctr  Shift O  open from project   Open a document from the project by  typing a fragment to match file names    Browse Ctrl Shift T  find symbol   Allow user to visit point of definition of a source  symbol in the current editor context by typing a fragment of the name    Browse Ctrl U  scroll text up repeat 0 5    Scroll text up a line w o moving cur   sor   s relative position on screen  Repeat is number of lines or if  gt 0 and  lt 1 0 then percent  of screen  Set move_cursor to False to leave cursor in current position within the source   otherwise it is moved so the cursor remains on same screen line     Browse Ctrl V  vi ctrl v    Browse Ctrl W Browse    grow split vertically   Increase height of this split    418   Browse Ctrl W Browse Ctrl W  move editor focus   Move focus to next or pre   vious editor split  optionally wrapping when the end is reached    Browse Ctrl W Browse Ctrl    vi split edit alternate    Browse Ctrl W Browse Down  move editor focus wrap False    Move focus to  next or previous editor split  optionally wrapping when the end is reached     Browse Ctrl W Br
232. d  Wing chooses the snippet by name and places the correct  variant according to the file type and the context within the current editor  The caret  position on the editor is used to determine the context  so altering the position of the  caret within leading indentation may alter which snippet variant Wing selects     When a snippet is used  Wing will place default arguments into the snippet  convert  indentation and line endings to match the target file  paste it into the active editor     64    and place the editor into inline data entry mode to collect additional arguments for the  snippet     In data entry mode  Wing will move between the data entry fields in the snippet when  Tab or BackTab are pressed  The position within the snippet   s fields will be displayed in  the status area at the bottom of the editor window     In this mode  the Indent and Outdent commands in the Indentation sub group of  Wing   s Source menu  and their key equivalents  can be used to increase or decrease the  indentation of the whole snippet within the editor  However  the same snippet variant  that was used initially will be used regardless of subsequent changes in indentation     To exit data entry mode  press Esc  or Ctr1 G in emacs mode  or move the caret outside  of the pasted snippet  To undo the snippet insertion  use Undo in the Edit menu or its  key binding     Auto completion    Snippets are also listed in the editor   s auto completer and may be activated from there   To disable th
233. d  others acquiring under a U S  Government contract shall have only those rights  and  shall be subject to all restrictions  set forth in this EULA  Contractor manufacturer is  Wineware  P O  Box 400527  Cambridge  MA 02140 0006  USA     11  EXPORT RESTRICTIONS    You will not download  export  or re export the Software Product  any part thereof  or  any software  tool  process  or service that is the direct product of the Software Product   to any country  person  or entity    even to foreign units of your own company    if such  a transfer is in violation of U S  export restrictions     12  NO WARRANTIES    YOU ACCEPT THE SOFTWARE PRODUCT AND SOFTWARE PRODUCT LI   CENSE    AS IS     AND WINGWARE AND ITS THIRD PARTY SUPPLIERS AND  LICENSORS MAKE NO WARRANTY AS TO ITS USE  PERFORMANCE  OR  OTHERWISE  TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE  LAW  WINGWARE AND ITS THIRD PARTY SUPPLIERS AND LICENSORS DIS   CLAIM ALL OTHER REPRESENTATIONS  WARRANTIES  AND CONDITIONS   EXPRESS  IMPLIED  STATUTORY  OR OTHERWISE  INCLUDING  BUT NOT  LIMITED TO  IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABIL   ITY  SATISFACTORY QUALITY  FITNESS FOR A PARTICULAR PURPOSE  TI   TLE  AND NON INFRINGEMENT  THE ENTIRE RISK ARISING OUT OF USE OR  PERFORMANCE OF THE SOFTWARE PRODUCT REMAINS WITH YOU     13  LIMITATION OF LIABILITY    THIS LIMITATION OF LIABILITY IS TO THE MAXIMUM EXTENT PERMIT   TED BY APPLICABLE LAW  IN NO EVENT SHALL WINGWARE OR ITS THIRD  PARTY SUPPLIERS AND LICENSORS BE LIABLE F
234. d Code and  for remote host to host debugging  see Remote Debugging     Before debugging  you will need to install Python on your system if you have not already  done so  Python is available from www python org     To debug Python code with Wing  open up the Python file and select Start   Continue  from the Debug menu  This will run to the first breakpoint  unhandled exception  or    103    104    until the debug program completes  Select Step Into instead to run to the first line of  code     Use the Debug I O tool to view your program   s output  or to enter values for input to  the program  If your program depends on characteristics of the Windows Console or a  particular Linux Unix shell  see External I O Consoles for more information     In some cases  you may also need to enter a PYTHONPATH and other environment values  using the Project Properties dialog available from the Project menu  This can also be  used to specify which Python executable should be used to run with your debug process   Use this if Wing IDE cannot find Python on your system or if you have more than one  version of Python installed     To set breakpoints  just click on the leftmost part of the margin next to the source code   In Wing IDE Professional  conditional and ignore counted breakpoints are also available  from the Breakpoint Options group in the Debug menu  or by right clicking on the  breakpoints margin     12 2  Specifying Main Entry Point    Normally  Wing will start debugging in whatever
235. d executable  Wing   s files are installed by  default in C  Program Files Wing IDE 4 0  but this location may be modified dur   ing installation  Wing will also create a User Settings Directory in the location  appropriate for your version of Windows  This is used to store preferences and other  settings     The Windows installer supports a  silent command line option that uses the default  options  including removing any prior install of version 4 0 of Wing IDE  If a prior install  is removed  a dialog with a progress bar will appear  You can also use a  dir  lt dir  name gt  option to specify an alternate installation directory     Linux  glibc 2 2      Use the RPM  Debian package  or tar file installer as appropriate for your system type   Installation from packages is at  usr lib wingide4 0 or at the selected location when  installing from the tar file  Wing will also create a User Settings Directory in     wingide4  which is used to store preferences and other settings     For more information  see the Linux installation details   Mac OS X 10 3     Wing IDE on Mac OS X requires that you first install an X11 Server  For details on  installing and running on OS X  see the OS X Quickstart     1 8  Running the IDE    For a quick introduction to Wing   s features  refer to the Wing IDE Quickstart Guide   For a more gentle in depth start  see the Wing IDE Tutorial     On Windows  start Wing IDE from the Program group of the Start menu  You can  also start Wing from the comman
236. d from the Breakpoints tool     e Ignore Count    It is possible to set an ignore count for a breakpoint  In this  case  the breakpoint will be ignored the given number of times  and the debugger    106    will only stop at the breakpoint if it is encountered more than the set number of  times  The ignore count is reset to its original value with each new debug run  Use  the Breakpoint tool to monitor the remaining number of times a breakpoint will  be ignored     e Disable Enable    Breakpoints can be temporarily disabled and subsequently  re enabled  Any disabled breakpoint will be ignored until re enabled     Breakpoints Tool    The Breakpoints tool  available in the Tools menu displays a list of all currently  defined breakpoints  The following columns of data are provided     e Enabled    Checked if the breakpoint is enabled  The checkbox can be used to  alter the breakpoint   s state     e Location    The file and line number where the breakpoint is located    e Condition    The conditional that must be true for the breakpoint to cause the  debug process to stop  or blank if the breakpoint is not conditional   This value  can be changed by clicking on it and editing it directly on the list     e Temporary    Checked if the breakpoint is a temporary  one time  breakpoint  The  checkbox can be used to alter the breakpoint   s type     e Ignores    The number of times the breakpoint should be ignored before it causes  the debugger to stop  This value can be changed by clic
237. d into the IDE  Leave the command name blank to remove the default binding for  a key  this is useful when adding multi key bindings that conflict with a default      Internal Name    gui keymap override  Data Specification     dict  keys   lt type str gt   values   lt type str gt    Default Value    th    Typing Group Timeout    Sets the timeout in seconds to use for typing  after which keys pressed are considered  a separate group of characters  This is used for typing to select on lists and in other  GUI areas  Before the timeout subsequent keys are added to previous ones to refine the  selection during keyboard navigation     Internal Name   gui typing group timeout  Data Specification    lt type float gt    lt type int gt     Default Value     VI Mode Ctrl C X V    Controls the behavior of the Ctrl X C V key bindings in vi mode  Either always use  these for cut copy paste  use them for vi native actions such as initiate numeric repeat  and start select block  or use the default by system  clipboard on win32 and other com   mands elsewhere      Internal Name     192   vi mode clipboard bindings  Data Specification     other  clipboard  system default   Default Value     system default    e Perspectives    Perspective Style    Controls what parts of the GUI are altered when switching perspectives  Tools and  Layout only captures the set of visible tools and overall layout  Tool  Layout  and Editors  stores also the set of open editors  and All Visual State captures all det
238. d line with wing exe  located inside WINGHOME      On Linux Unix  just execute wing4 0  or wing located inside WINGHOME     18    On Mac OS X  start Wing IDE by double clicking on the app folder  If you launch  Wing from the command line using Contents MacOS wing inside the Wing IDE app  folder  then you will need to start your X11 Server manually first and may need to set  your DISPLAY environment variable     1 9  Installing your License    Wing IDE requires a time limited trial or permanent license and the license needs to be  activated on each machine  see the Licenses section for general information   When  Wing IDE is first started  you can obtain a trial licence  purchase a permanent license   install  amp  activate a permanent license  or use Wing for up to 10 minutes without any  license     No License Found    Wing is running without a valid license  You may now        e  Obtain or extend a trial license             Purchase a permanent license    Install and activate a permanent license   Enter license id  _       10 minute emergency session    V   continue  X Cancel          Trial Licenses    Trial licenses allow evaluation of Wing IDE for 10 days  with an option to extend the  evaluation twice for up to 30 days total  or more on request   The most convenient way  to obtain a trial license is to ask Wing IDE to connect directly to wingware com  via  http  TCP IP port 80   After the trial license is obtained  Wing will not attempt to  connect to wingware com  or an
239. d of leading white space and    block    uses a block comment in  column zero  If not given  the style configured with the Editor   Block Comment Style  preference is used  Each call adds a level of commenting     Ctrl T  forward tab   Action varies according to focus  Active Editor Commands   Place a tab character at the current cursor position   Search Manager Instance Com   mands  Place a forward tab at the current cursor position in search or replace string    Ctrl Tab  begin visited document cycle move_back True    Start moving be   tween documents in the order they were visited  Starts modal key interaction that ends  when a key other than tab is seen or ctrl is released     Ctrl U  isearch forward   Action varies according to focus  Active Editor Commands   Initiate incremental mini search forward from the cursor position  optionally entering  the given search string   Document Viewer Commands  Initiate incremental mini search  forward from the cursor position  optionally entering the given search string     Ctrl Up  scroll text up   Scroll text up a line w o moving cursor   s relative position  on screen  Repeat is number of lines or if  gt 0 and  lt 1 0 then percent of screen  Set  move_cursor to False to leave cursor in current position within the source  otherwise it  is moved so the cursor remains on same screen line     Ctrl V  paste   Action varies according to focus  Active Editor Commands  Paste    384    text from clipboard   Search Manager Instance Commands 
240. d searching as you  type or alter search options  When unchecked  use the forward backward search  buttons to initiate searching     80    e Find After Replace    Select this to automatically find the next search match  after each Replace operation     5 4  Search in Files Tool    The dockable Search in Files tool is used to search and replace within sets of files  or  for searching Wing   s documentation  It performs searches in batch and displays a result  list for all found matches  This list can then be traversed to view the matches in the  source editor  and is automatically updated as edits alter the search results  Searching  may span the current editor  a single selected file  all open files  all project files  all of  Wing   s documentation  or sets of files on disk     Files in a set may be filtered by file type  for example searching only through Python  files in the project     In addition the options also available in the search tool  the following choices are  available in the Options popup menu     e Replace Operates On Disk    Check this to replace text in un opened files  directly on disk  Caution  see Replace in Multiple Files for details on this  option     e Recursive Directory Search    Check this to search recursively within all sub   directories of the selected search directory     e Omit Binary Files    Check this to omit any file that appears to contain binary  data     e Auto restart Searches    Check this to restart searching immediately if it is  i
241. dded from the OS Commands  tool or by selecting an item and using the Edit item in the Options menu     The following properties are available under two tabs in the dialog   Definition    Type    Two types of commands can be defined  A command  which can be any command  line  or a file which can be a Python file  a makefile  or any executable script or program   For commands  the full command line is specified here  For files  the file is selected and  no arguments may be added for invocation of the file     In command lines  use   ENV  or   ENV  to insert values from the environment or from  the special variables enumerated in Variable Expansion  These values will be empty  if undefined     Note that the commands are executed on their own and not in a shell  so any commands  that are built into the shell cannot be used here  For example  on Windows dir and  some others are built in commands so cannot be used directly  however  the form cmd   c dir will work in this case  On Linux  invoking bash directly may be necessary in  similar cases     Title    This is the user assigned title to use for the command  If not set  the command  line or file name is shown instead     I O Encoding    This is the encoding to use for text sent to and received from the  sub process     Key Binding    This field can be used to assign a key binding to the command  Press  the keys desired while focus is in the field  Multi key sequences may be used if pressed  within a few seconds of each other  T
242. ded when printing very large amounts of output from a  debug process     Debug processes launched outside of Wing  using wingdbstub  always do their keyboard  I O through the environment from which they were launched  whether that   s a console  window  web server  or any other I O environment      When commands are typed in the Debug Probe  I O is redirected temporarily to the  Debug Probe only during the time that the command is being processed     12 10 1  External I O Consoles    In cases where the debug process requires specific characteristics provided by the Win   dows Console or specific Linux Unix shell  or to better handle very large amounts of  debug process output  you can redirect debug I O to a new external window using the  Use External Console preference     The most effective way to keep the external console visible after the debug process  exits is to place a breakpoint on the last line of your program  Alternatively  enable  the External Console Waits on Exit preference  However  this can result in many  external consoles being displayed at once if you do not press enter inside the consoles  after each debug run     117    On Linux Unix it is possible to select which console applications will be tried for the  external console by altering the External Consoles preference     Windows always uses the standard DOS Console that comes with your version of Win   dows     12 10 2  Disabling Debug Process I O Multiplexing    Wing alters the I O environment in order
243. dicate whether cursor  is placed at start or end of the word   Toolbar Search Commands  Move forward one  word  extending the selection    Ctrl Shift S  save all   Save all unsaved items  Will prompt the user only for choosing  names for new items that don   t have a set filename    Ctrl Shift T  find symbol   Allow user to visit point of definition of a source symbol  in the current editor context by typing a fragment of the name    Ctrl Shift Tab  begin visited document cycle move_back False    Start mov     455    ing between documents in the order they were visited  Starts modal key interaction that  ends when a key other than tab is seen or ctrl is released     Ctrl Shift U  case upper   Change case of the current selection  or character ahead  of the cursor if there is no selection  to upper case    Ctrl Shift U  isearch backward   Action varies according to focus  Active Editor  Commands  Initiate incremental mini search backward from the cursor position  op   tionally entering the given search string   Document Viewer Commands  Initiate in   cremental mini search backward from the cursor position  optionally entering the given  search string     Ctrl Shift Up  previous line extend   Move to previous screen line  adjusting the  selection range to new position  optionally repositioning character within line  same    to  leave in same horizontal position     start    at start     end    at end  or    fnb    for first non blank  char     Ctrl Slash  command by name   Exec
244. dit  show non py indent warning    Data Specification      lt boolean  O or 1 gt     Default Value     True    e Line Wrapping    Wrap Long Lines    Set to true to wrap long source lines on the editor display     Internal Name     edit  wrap lines    Data Specification      lt boolean  O or 1 gt     Default Value     Edge Markers    219    Tuple that defines how edge markers are shown   mode  column  color  where mode is 0  to turn off markers  1 to show a line  or 2 to highlight text that extends past the edge   column is the column at which to draw the marker  if on  and color is the color for the  marker  r g b  tuple with values from 0x00 to Oxff   Oxff Oxff 0xff  is white     Internal Name     edit  show edge markers    Data Specification      tuple length 3 of   0  1  2    from O to 10000    tu     ple length 3 of   from 0 to 255    from 0 to 255       from 0 to 255       220    Default Value      0  80   251  8  8      Reformatting Wrap Column    Column at which text should be wrapped by commands that automatically rearrange  text    Internal Name     edit text wrap column    Data Specification      lt type int gt     Default Value     TT    e Occurrences    Highlight Occurrences    Selects when to automatically highlight other occurrences of the current selection on the  editor    Internal Name     edit  highlight occurrences    Data Specification      always  never  words     Default Value     words    221    Match Case  Disable to allow occurrences highlighting also
245. djusting  the selection range to new position    Ctrl Shift Page_Down  forward page extend   Move cursor forward one page  ad   justing the selection range to new position    Ctrl Shift Page_Up  backward page extend   Move cursor backward one page  ad   justing the selection range to new position    Ctrl Shift Prior  backward page extend   Move cursor backward one page  adjust   ing the selection range to new position    Ctrl Shift Right  forward word extend   Action varies according to focus  Active  Editor Commands  Move cursor forward one word  adjusting the selection range to  new position  Optionally  provide a string that contains the delimiters to define which  characters are part of a word  Gravity may be    start    or    end    to indicate whether cursor    486    is placed at start or end of the word   Toolbar Search Commands  Move forward one  word  extending the selection    Ctrl Shift Tab  begin visited document cycle move_back False    Start mov   ing between documents in the order they were visited  Starts modal key interaction that  ends when a key other than tab is seen or ctrl is released     Ctrl Shift Up  previous line extend   Move to previous screen line  adjusting the  selection range to new position  optionally repositioning character within line  same    to  leave in same horizontal position     start    at start     end    at end  or    fnb    for first non blank  char     Ctrl T  forward tab   Action varies according to focus  Active Editor Command
246. djusting the selection range to new  position   Toolbar Search Commands  Move backward one character  extending the  selection    Shift Next  forward page extend   Move cursor forward one page  adjusting the  selection range to new position    Shift Page_Down  forward page extend   Move cursor forward one page  adjusting  the selection range to new position    Shift Page_Up  backward page extend   Move cursor backward one page  adjusting  the selection range to new position    Shift Prior  backward page extend   Move cursor backward one page  adjusting the  selection range to new position    Shift Return  new line   Place a new line at the current cursor position    Shift Right  forward char extend   Action varies according to focus  Active Edi   tor Commands  Move cursor forward one character  adjusting the selection range to    413  new position   Toolbar Search Commands  Move forward one character  extending the  selection  Shift Tab  backward tab   Outdent line at current position    Shift Up  previous line extend   Move to previous screen line  adjusting the selection  range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start     end    at end  or    fnb    for first non blank char     Tab  tab key   Implement the tab key  the action of which is configurable by preference    Up  previous line   Move to previous screen line  optionally repositioning character  within line  same    to leave in
247. ds  Delete one character in front of the cursor   Toolbar Search Commands  Delete  character in front of the cursor    Down  next line   Move to screen next line  optionally repositioning character within  line     same    to leave in same horizontal position     start    at start     end    at end  or    fnb     for first non blank char     End  end of line   Action varies according to focus  Active Editor Commands  Move  to end of current line  Toolbar Search Commands  Move to the end of the toolbar search  entry    F1  Multiple commands  first available is executed      e show horizontal tools   Show the horizontal tool area    e minimize horizontal tools   Minimize the horizontal tool area    457    F10  step over   Step over current execution point   F11  frame up   Move up the current debug stack   F11  step into   Step into current execution point  or start debugging at first line  F12  frame down   Move down the current debug stack    F2  Multiple commands  first available is executed      e show vertical tools   Show the vertical tool area    e minimize vertical tools   Minimize the vertical tool area  F3  search forward   Search again using the search manager   s current settings in  forward direction  F4  goto selected symbol defn   Goto the definition of the selected source symbol  F5  debug continue   Continue  or start  running  to next breakpoint  F6  step over   Step over current execution point  F7  step into   Step into current execution point  or start debu
248. dule      scripts_example       The string    scripts_example    should be replaced with the name of the  mo translation  file that will be added to the resources locale localization directories inside the Wing  installation     167    Subsequently  all translatable strings are passed to the _   function as in this code  example     kMenuName   _  Test Base      The separate _i18n_module attribute is needed to tell Wing how to translate docstrings   which cannot be passed to _        Currently  the only support provided by Wing for producing the   po and   mo files  used in the gettext translation system is in the build system that comes with the Wing  IDE sources  Please refer to build files wingide py and build files README txt  for details on extracting strings  merging string updates  and compiling the   mo files   On Linux  KDE   s kbabel is a good tool for managing the translations     Plugins    When a script contains the _plugin attribute at the top level  it is treated as a plugin  that can enable disable itself as a whole and or be enabled disabled by the user in  preferences     When _plugin is present  it contains  name  _activator_cb  where name is the display  name of the plugin and activator_cb is a function minimally defined as follows for a  plugin that is always enabled     Literal block expected  none found     def _activator_cb plugin_id   wingapi gApplication EnablePlugin plugin_id  True   return True    The _activator_cb can also selectively enable the s
249. e    Browse Shift W  forward word delimiters     tnr       Action varies according to  focus  Active Editor Commands  Move cursor forward one word  Optionally  provide a  string that contains the delimiters to define which characters are part of a word  Gravity  may be    start    or    end    to indicate whether cursor is placed at start or end of the word    Toolbar Search Commands  Move forward one word    Browse Shift Y  move to register unit    line       Cut or copy a specified number  of characters or lines  or the current selection  Set cut 1 to remove the range of text  from the editor after moving to register  otherwise it is just copied   Unit should be one  of    char    or    line    or    sel    for current selection     Browse Shift Z Browse Shift Q  close ignore_changes 1  close window 1     Close active document  Abandon any changes when ignore_changes is True  Close  empty windows and quit if all document windows closed when close_window is True     Browse Shift Z Browse Shift Z  write file and close filename None    Write  current document to given location and close it  Saves to current file name if the given  filename is None     Browse Shift x  backward delete char   Action varies according to focus  Active  Editor Commands  Delete one character behind the cursor  or the current selection if  not empty    Toolbar Search Commands  Delete character behind the cursor    Browse Space  forward char   Action varies according to focus  Active Editor Com   mands
250. e  or return      Note that if preference Auto indent is turned off  auto indent does not occur until the  tab key is pressed     4 10 5  The Tab Key    By default  the tab key either indents according to context or increases the indent depth  at the current cursor position by one level  this depends on the selected editor Person   ality   If one or more lines are selected  this instead operates on the indentation of all  selected lines by one level     To insert a real tab character regardless of the indentation mode or the position of the  cursor on a line  type Ctrl Tab or Ctrl T     The behavior of the tab key can be altered using the Tab Key Action preference     4 10 6  Checking Indentation    Wing IDE analyzes existing indentation whenever it opens a Python source file  and will  indicate a potentially problematic mix of indentation styles  allowing you to attempt to  repair the file  Files can be inspected more closely or repaired at any time using the  Indentation Manager     To turn off indentation warnings in Python files  use the Show Python Indent Warn   ings preference     Wing also indicates suspiciously mismatched indentation in source code by underlining  the indent area of the relevant lines in red or yellow  In this case  an error or warning  message is displayed when the mouse hovers over the flagged area of code     4 10 7  Changing Block Indentation    Wing provides Indent and Outdent commands in the Indentation portion of the Source  menu  which increas
251. e Debug Probe can be used to craft code quickly in  the live context in which it is intended to work  To do this  set a breakpoint where  you plan to place the code  debug until you reach that breakpoint  then work in the  Debug Probe to design parts or all of your new code  The auto completer and Source  Assistant running in the live program context make navigation of unfamiliar or complex  code quite easy  and can greatly speed up the design and implementation of new features  for existing code     Conditional breakpoints are a natural companion for the Debug Probe  Setting a condi   tional breakpoint makes it easier to isolate one iteration or invocation out of many  thus  isolating either a problematic case for which a bug fix is needed  or a particular case for  which a new feature is desired     12 11 1  Managing Program State    If commands you type change any local  instance  or global data values  cause modules to  be loaded or unloaded  set environment variables  or otherwise alter the run environment   your debug program will continue within that altered state  All visible variable display  views are also updated after each line entered in the Debug Probe in order to reflect any  changes caused by your commands  Since you may not notice these changes  caution is  needed to avoid creating undesired side effects in the running debug program     119    Note that breakpoints are never reached as a result of entries typed into the Debug  Probe  and any exceptions are re
252. e Insert  enter insert mode pos    before       Enter editor insert mode    Browse Minus  previous line in file cursor    fnb       Move to previous line in file   repositioning character within line     start    at start  end    at end  or    fnb    for first non   blank char     Browse O  enter insert mode pos    new below       Enter editor insert mode    Browse Return  next line cursor    start       Move to screen next line  optionally  repositioning character within line     same    to leave in same horizontal position     start     at start  end    at end  or    fnb    for first non blank char     Browse Shift A  enter insert mode pos    eol       Enter editor insert mode    Browse Shift B  backward word delimiters     tnr       Action varies according to  focus  Active Editor Commands  Move cursor backward one word  Optionally  provide a  string that contains the delimiters to define which characters are part of a word  Gravity  may be    start    or    end    to indicate whether cursor is placed at start or end of the word    Toolbar Search Commands  Move backward one word    Browse Shift C  delete to end of line insert   Delete everything between the cursor  and end of line and enter insert move  when working in a modal editor key binding     Browse Shift D  delete to end of line post_offset  1    Delete everything be   tween the cursor and end of line    Browse Shift E  forward word delimiters     tnr     gravity    endm1       Action  varies according to focus  Ac
253. e Python Shell contains some settings that control how the  Python Shell works     e Wrap Lines causes the shell to wrap long output lines in the display    e Evaluate Whole Lines causes Wing to round up the selection to the nearest line  when evaluating selections  making it easier to select the desired range    e Auto restart when Evaluate File causes Wing to automatically restart the  shell before evaluating a file  so that each evaluation is made within a clean new  environment     OS Commands Tool    Wing IDE Professional includes an OS Commands tool that can be used to execute  and interact with external commands provided by the OS or by other software  and to  execute files outside of the debugger     This is used for the Execute items in the Debug menu and Project context menu and  to run any build command configured in Project Properties or File Properties  It  can also be used for other purposes such as integrating external commands into Wing   starting code that is debugged using wingdbstub  and so forth     Adding and Editing Commands    Whenever a file is executed outside of the debugger  or when a build command is con   figured  these are added automatically to the OS Commands tool     Additional items can be added with the Options menu   s New Toolbox Command item   and any existing items can be edited or removed with the Edit and Remove items here   For details  see OS Command Properties     Executing Commands    The Options menu also includes items for starti
254. e and configure extensions for revision  control  Zope  and other tools     Any string value for a property may contain environment and special variable references   as described in Variable Expansion     51  Environment    To get the most out of Wing  it is important to set these values in the Environment tab  correctly for your project     Python Executable    When the Custom radio button is checked and the entered field  is non blank  this can be used to set the full path to the Python executable that should  be used when debugging source code in this project  When Use default is selected  Wing  tries to use the default Python obtained by typing python on the command line  If this  fails  Wing will search for Python in  usr local and  usr  on Linux Unix  or in the  registry  on Windows      Python Path    The PYTHONPATH is used by Python to locate modules that are imported  at runtime with the import statement  When the Use default checkbox in this area  is checked  the inherited PYTHONPATH environment variable is used for debug sessions   Otherwise  when Custom is selected  the specified PYTHONPATH is used     Environment    This is used to specify values that should be added  modified  or  removed from the environment that is inherited by debug processes started from Wing  IDE and is used to expand environment variable references used in other properties   Each entry is in var value form and must be specified one per line in the provided  entry area  An entry in the form
255. e by appending   lt line number gt  to the file name  for example   README  100 will position the cursor at the start of the README file      The following valid options may be specified anywhere on the command line       prefs file    Add the file name following this argument to the list of preferences files  that are opened by the IDE  These files are opened after the system wide and default  user preferences files  so values in them override those given in other preferences files   Note that preferences files added this way must have all the preferences in a section  delimited by  extra preferences   unlike the main user preferences file  which uses   user preferences         new    By default Wing will reuse an existing running instance of Wing IDE to open  files specified on the command line  This option turns off this behavior and forces  creation of a new instance of Wing IDE  Note that a new instance is always created if  no files are given on the command line       reuse    Force Wing to reuse an existing running instance of Wing IDE even if there  are no file names given on the command line  This just brings Wing to the front       system gtk     Posiz only  This option causes Wing to try to use the system wide  install of GTK2 rather than its own version of GTK  regardless of any preference setting   Running in this mode will cause Wing to pick up on system wide theme defaults  but  may result in crashing or display problems due to incompatibilities in GTK and rela
256. e column   In this case  the full value of the string can be viewed in the textual display area at  the bottom of the Stack Data tool  which is accessed by right clicking on a value and  selecting Show Detail  The contents of the detail area is updated when other items in  the Stack Data tool are selected        Opaque Data   Some data types  such as those defined only within C C   code  or those con   taining certain Python language internals  cannot be transferred over the network   These are denoted with Value entries in the form  lt opaque 0x80ce784 gt  and can   not be expanded further  In Wing IDE Professional you may be able to use the  Debug Probe to access them  for example try typing dir value                 112  12 9 1 1  Popup Menu Options    Right clicking on the surface of the Stack Data view displays a popup menu with options  for navigating data structures     e Show Hide Detail    Used to quickly show and hide the split where Wing shows  expanded copies of values that are truncated on the main debug data view  click  on items to show their expanded form      e Expand More    When a complex data value is selected  this menu item will  expand one additional level in the complex value  Since this expands a potentially  large number of values  you may experience a delay before the operation completes     e Collapse More    When a complex data value is selected  this menu item will  collapse its display by one additional level     e Watch by        These items ca
257. e current position in the active view  The tests are debugged  when debug is True     Shift F8  start select char   Turn on auto select mode character by character    Shift F9  Multiple commands  first available is executed      e break enable   Enable the breakpoint on the current line    e break disable   Disable the breakpoint on current line    411    Shift Home  beginning of line extend   Action varies according to focus  Active  Editor Commands  Move to beginning of current line  adjusting the selection range to  the new position  When toggle is True  moves to the end of the leading white space if  already at the beginning of the line  and vice versa    Toolbar Search Commands  Move  to the beginning of the toolbar search entry  extending the selection    Shift Home  beginning of line text extend   Move to end of the leading white  space  if any  on the current line  adjusting the selection range to the new position   If toggle is True  moves to the beginning of the line if already at the end of the leading  white space  and vice versa      Shift Insert  paste   Action varies according to focus  Active Editor Commands  Paste  text from clipboard   Search Manager Instance Commands  Paste text from clipboard    Toolbar Search Commands  Paste from clipboard    Shift KP_Delete  cut   Action varies according to focus  Active Editor Commands   Cut selected text   Search Manager Instance Commands  Cut selected text   Toolbar  Search Commands  Cut selection    Shift KP_Down  ne
258. e current position in the active view  The tests are debugged  when debug is True     Shift F8  start select char   Turn on auto select mode character by character    Shift F9  Multiple commands  first available is executed      e break enable   Enable the breakpoint on the current line    e break disable   Disable the breakpoint on current line  Shift Home  start of document extend   Move cursor to start of document  adjust   ing the selection range to new position    Shift KP_End  end of document extend   Move cursor to end of document  adjust   ing the selection range to new position    Shift KP_Enter  new line   Place a new line at the current cursor position    476    Shift KP_Home  start of document extend   Move cursor to start of document   adjusting the selection range to new position    Shift K P_Page_Down  forward page extend   Move cursor forward one page  ad   justing the selection range to new position    Shift KP_Page_Up  backward page extend   Move cursor backward one page  ad   justing the selection range to new position    Shift Left  backward char extend   Action varies according to focus  Active Editor  Commands  Move cursor backward one character  adjusting the selection range to new  position   Toolbar Search Commands  Move backward one character  extending the  selection    Shift Page_Down  forward page extend   Move cursor forward one page  adjusting  the selection range to new position    Shift Page_Up  backward page extend   Move cursor backward one 
259. e cursor forward one page  Ctrl KP_Page_Up  backward page   Move cursor backward one page    Ctrl KP_Prior  backward page   Move cursor backward one page    451    Ctrl KP_Right  forward word   Action varies according to focus  Active Editor Com   mands  Move cursor forward one word  Optionally  provide a string that contains the  delimiters to define which characters are part of a word  Gravity may be  start or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move forward one word    Ctrl KP_Subtract  zoom out   Zoom out  increasing the text display size temporarily  by one font size    Ctrl KP_Up  previous line   Move to previous screen line  optionally repositioning  character within line  same    to leave in same horizontal position     start    at start     end     at end  or    fnb    for first non blank char     Ctrl L  cut line   Cut the current line s  to clipboard     Ctrl Left  backward word   Action varies according to focus  Active Editor Com   mands  Move cursor backward one word  Optionally  provide a string that contains  the delimiters to define which characters are part of a word  Gravity may be  start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move backward one word    Ctrl M  execute kbd macro   Execute most recently recorded keyboard macro  If  register is None then the user is asked to enter a letter a z for the register where the  ma
260. e file    in general this is used only in development or debugging keymaps  use  the keymap override preference instead for better tracking across Wing versions     Internal Name    gui keymap  Data Specification     None or  lt type str gt    Default Value    None    Messages    Controls the format and verbosity of messages shown to the user for each message domain  in the message area  Each domain specifies the format  in Python 2 3 logging  Formatter  format   and the minimum logging level that should be shown in the display  If a message  domain is left unspecified  then the parent domain settings are used instead         is the  parent of all domains      Internal Name   gui message config  Data Specification      dict  keys   search  debugger  analysis  general  project  ed   itor  scripts  browser   values   tuple length 3 of   lt type str gt    0  40  30     197  Default Value            message s     0  100000      Document Text Styles    Defines text styles used in data and document display  Each style is specified as a list of   name  value  tuples  The names and values must be valid Pango text attribute names  and values  To set default values that apply to all styles  use the    default    style name   for example adding     size     14  changes default display size to 14 points  Note that  size of menus  buttons  labels  and other basic GUI elements are set using system wide  theme configuration and not from this preference  The source editor is also configured 
261. e if the file has been modified  or added or removed   has a conflict  is locked   or is not registered  Unregistered files are omitted from the status view by default  They  can be shown by right clicking on the tool and selecting Show Unregistered     The common operation Project Status can be used to run the status operation against  all the files in the project     Log    This operation displays a list of all the revisions  with commit comments  for the files  that are in the scope of the command     Add   The add operation registers a file or directory to be added in the next commit   Remove   The remove operation requests that a file or directory be removed in the next commit   Revert    This operation will dispose of any local changes and revert the local files to match the  current revision in the repository     14 3  Bazaar    Wing   s Bazaar support requires the bzr command line executable to be installed sep   arately from Wing  Please see http   bazaar vcs org  for information about Bazaar   The bzr executable may either be in your path or set it with the Bazaar executable  preference in the Version Control   Bazaar preferences group     The Bazaar support defines the following commands  in addition to those documented  in Common Version Control Operations  Please see the Bazaar documentation for  information on what these commands do when executed by the command line executable     Merge Entire Branch    Merge changes in remote branch with the local branch  This 
262. e left of source files that  can be folded  Left mouse click on one of the fold marks in this margin to collapse or  expand that fold point  Right mouse clicking anywhere on the fold margin displays a  context menu with the various folding operations     You can also hold down the following key modifiers while left clicking to modify the  folding behavior     e Shift    Clicking on any fold point while holding down the shift key will expand  that point and all its children recursively so that the maximum level of expansion  is increased by one     e Ctrl    Clicking on any fold point while holding down the ctrl key will collapse  that point and all its children recursively so that the maximum level of expansion  is decreased by one     e Ctrl Shift    On a currently expanded fold point  this will collapse all child fold  points recursively to maximum depth  as well as just the outer one  When the  fold point is subsequently re expanded with a regular click  its children will appear  collapsed  Ctrl shift click on a collapsed fold point will force re expansion of all  children recursively to maximum depth     Fold commands are also available in the Structural Folding section of the Source  menu  which indicates the key equivalents assigned to the operations     e Toggle Current Fold    Like clicking on the fold margin  this operates on the  first fold point found in the current selection or on the current line     e Collapse Current More    Like ctrl clicking  this collapses t
263. e or decrease the level of indentation for selected blocks of text  All    71  lines that are included in the current text selection are moved  even if the entire line  isn   t selected     Indentation placed by these commands will contain either only spaces  only tabs  or a  mixture of tabs and spaces  as determined by the method described in Indentation        Indenting to Match   The command Indent Lines to Match  also in the Indentation sub menu  will  indent or outdent the current line or selected lines to the level as a unit so that the  first line is positioned as it would have been positioned by Wing s auto indentation  facility  This is very useful when moving around blocks of code              4 10 8  Indentation Manager    The Indentation manager  accessible from the Tools menu  can be used to inspect and  change indentation style in source files  It has two parts   1  The indentation report   and  2  the indentation converter     A report on the nature of existing indentation found in your source file is given above  the horizontal divider  This includes the number of spaces only  tabs only  and mixed  tabs and space indents found  information about whether indentation in the file may be  problematic to the Python interpreter  and the tab and indent size computed for that  file  The manager also provides information about where the computed tab and indent  size value come from  for example  an empty file results in use of the defaults configured  in preferences   
264. e private gtk option     2 3  Preferences    Wing has many preferences that control features of the editor  unit tester  debugger   source browser  project manager  and other tools     To alter these  use the Preferences item in the Edit menu  This organizes all available  preferences by category and provides access to documentation in tooltips that are dis   played when mousing over the label area to the left of each preference  Any non default  values that are selected through the Preferences Dialog are stored in the user   s pref   erences file  which is located in the User Settings Directory     2 3 1  Preferences File Layers    Wing   s preferences manager runs on a layered set of preferences files  An installation   wide preferences file may be placed inside WINGHOME and individual users can override  these values from the Preferences GUI in Wing   s Edit menu  or by manually placing a  preferences file in the User Settings Directory   The values given in the user specific    34    preferences file take precedence over any values in the default WINGHOME preferences  file  Note that a file at WINGHOME preferences must contain all preferences in a section  with delimiter set to  global preferences  instead of  user preferences   as is used  for the user specific file in the User Settings Directory     It is also possible to specify additional preferences files on the command line though the    prefs file option  For example     wing4 0   prefs file  path to myprefs    Any
265. e tests are  debugged when debug is True     Option F7  run last tests   Run again the last group of tests that were run  The  tests are debugged when debug is True     Option KP_Delete  forward delete word   Action varies according to focus  Active  Editor Commands  Delete one word in front of the cursor   Toolbar Search Commands   Delete word in front of the cursor    Option KP_Enter  new line   Place a new line at the current cursor position  Option KP_Page_Down  forward page   Move cursor forward one page  Option KP_Page_Up  backward page   Move cursor backward one page    Option Left  backward word   Action varies according to focus  Active Editor Com   mands  Move cursor backward one word  Optionally  provide a string that contains  the delimiters to define which characters are part of a word  Gravity may be  start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move backward one word    474    Option Page_Down  forward page   Move cursor forward one page  Option Page_Up  backward page   Move cursor backward one page  Option Return  new line   Place a new line at the current cursor position    Option Right  forward word   Action varies according to focus  Active Editor Com   mands  Move cursor forward one word  Optionally  provide a string that contains the  delimiters to define which characters are part of a word  Gravity may be start    or     end    to indicate whether cursor is placed at start or end of t
266. e tests in testing panel     Command Shift F7  debug current tests   Runs the current test or tests  if possi   ble  The current tests are determined by the current position in the active view     Command Shift G  search backward   Search again using the search manager   s cur   rent settings in backward direction    Command Shift I  add current file to project   Add the frontmost currently open  file to project    Command Shift K  show bookmarks   Show a list of all currently defined book   marks    Command Shift KP_Subtract  fold collapse more current   Collapse the current  fold point one more level    Command Shift Left  beginning of line extend   Action varies according to focus   Active Editor Commands  Move to beginning of current line  adjusting the selection  range to the new position  When toggle is True  moves to the end of the leading white  space if already at the beginning of the line  and vice versa    Toolbar Search Commands   Move to the beginning of the toolbar search entry  extending the selection    Command Shift O  open from project   Open a document from the project by typ   ing a fragment to match file names    Command Shift R  batch replace   Display search and replace in files tool     468    Command Shift Right  end of line extend   Action varies according to focus  Ac   tive Editor Commands  Move to end of current line  adjusting the selection range to  new position   Toolbar Search Commands  Move to the end of the toolbar search entry   extending t
267. e the Wing IDE installation     How Script Reloading Works    Advanced scripters working outside of the API defined in wingapi py should note that  Wing only clears code objects registered through the API  For example  a script added  timeout  using CAPIApplication InstallTimeout   method  will be removed and re   added automatically during reload  but a tool panel added using Wing internals will  need to be removed and re added before it updates to run on altered script code  In  some cases  when object references from a script file are installed into Wing   s internals   it will be necessary to restart Wing IDE     Script files that define a global _no_reload_scripts will never be reloaded or unloaded   Here is how reloading works   1  All currently loaded script files are watched so that saving the file from an  editor will cause Wing to initiate reload after it has been saved   2  When a file changes  all scripts in its directory will be reloaded     3  Wing removes all old scripts from the command registry  unregisters any  timeouts set with CAPIApplication InstallTimeout    and removes any  connections to preferences  attributes  and signals in the API     4  Next imp find_module is used to locate the module by name     5  Then the module is removed from sys modules and reloaded using  imp find_module and a module name that prepends internal_script_ to  the module name  in order to avoid conflicting with other modules loaded  by the IDE      6  If module load fails  for
268. ean  0 or 1 gt     Default Value     Auto Show Bug Report Dialog    Whether the error bug reporting dialog  also available from the Help menu  is shown  automatically when an unexpected exception is encountered inside Wing IDE     Internal Name   gui show report error dialog  Data Specification    lt boolean  0 or 1 gt   Default Value   False    Auto check for Product Updates    Automatically attempt to connect to wingware com to check for updates once every day  after Wing is started     Internal Name     195  main  auto check updates  Data Specification    lt boolean  O or 1 gt     Default Value     e Advanced    Display Area    Rectangle to use for the IDE work area on screen  All windows open within this area   Format is  x  y  width  height   or use None for full screen     Internal Name    gui work area rect  Data Specification     None or  tuple length 4 of   lt type int gt    lt type int gt    lt type int gt    lt type int gt     Default Value    None    Max Error Log Size    The number of bytes at which the error log file  USER SETTINGS_DIR error log  is  truncated  This file can be sent to technical support to help diagnose problems with the  IDE     Internal Name   main max error log size    Data Specification     196    from 10000 to 10000000   Default Value    500000    Key Map File    Defines location of the keymap override file  Use None for default according to configured  editor personality  See the Wing IDE Manual for details on building your keymap  overrid
269. eat  reverse 1    Repeat the most recent isearch  using  same string and regex text  Reverse direction when reverse is True     Browse Shift O  enter insert mode pos    new above     Enter editor insert mode    Browse Shift P  paste register pos  1    Paste text from register as before or after  the current position  If the register contains only lines  then the lines are pasted before  or after current line  rather than at cursor   If the register contains fragments of lines   the text is pasted over the current selection or either before or after the cursor  Set  pos   1 to paste after  or  1 to paste before  Set indent 1 to indent the pasted text to  match current line  Set cursor  1 to place cursor before lines or cursor 1 to place it  after lines after paste completes     Browse Shift R  enter replace mode   Enter editor replace mode    Browse Shift S  delete line insert   Delete the current line or lines when the selection  spans multiple lines or given repeat is  gt  1  Enters insert mode  when working with modal  key bindings      Browse Shift T  search char dir  1  pos 1  single_line 1    Search for the given  character  Searches to right if dir  gt  0 and to left if dir  lt  0  Optionally place cursor pos    422    characters to left or right of the target  e g   use  1 to place one to left   If repeat  gt  1   the Nth match is found  Set single_line 1 to search only within the current line     Browse Shift V  start select line   Turn on auto select mode line by lin
270. ecification      dict  keys   lt type str gt   values   lt type str gt      Default Value     259        QtSvg        from PyQt4 import QtSvg        wxpython        pass        QtHelp        from PyQt4 im   port QtHelp        gdk        import pygtk nvers   pygtk _get_available_versions   keys    nv  cept   n pass n        QtGui        from PyQt4 import QtGui        _gst        from gst im    port _gst        gtk        import pygtk nvers   pygtk _get_available_versions    keys    nver  cept  n pass n        QtXml        from PyQt4 import QtXml        QtWe    bKit         from PyQt4 import QtWebkKit        QtScriptTools        from PyQt4 im    port QtScriptTools        QtSql        from PyQt4 import Qt    Sql        Qt        from PyQt4 import Qt        QtAssistant        from PyQt4 im    port QtAssistant        QtXmlPatterns        from PyQt4 import QtXml    Patterns        QtDesigner        from PyQt4 import QtDesigner        pango        im    port pygtk nvers   pygtk _get_available_versions    keys   nvers sort   nvers reverse  cept   n pass n        QtOpenGL        from PyQt4 import QtOpenGL        QSci        from PyQt4 im  port QSci        atk        import pygtk nvers   pygtk _get_available_versions    keys    nver  cept  n pass n        QtTest        from PyQt4 import QtTest        QtScript        from PyQt4 im  port QtScript        gobject        import pygtk nvers   pygtk _get_available_versions    key  cept  n pass n        QtCore        from PyQt4 import QtCore  
271. ect   Move to next screen line  adjusting the  rectangular selection range to new position  optionally repositioning character within  line  same    to leave in same horizontal position     start    at start  end    at end  or    fnb    for  first non blank char     Shift Alt Left  backward char extend rect   Move cursor backward one character   adjusting the rectangular selection range to new position    Shift Alt N  diff next  Shift Alt P  diff previous    Shift Alt Right  forward char extend rect   Move cursor forward one character   adjusting the rectangular selection range to new position    Shift Alt Up  previous line extend rect   Move to previous screen line  adjusting  the rectangular selection range to new position  optionally repositioning character within  line  same    to leave in same horizontal position     start    at start  end    at end  or    fnb    for  first non blank char     Shift BackSpace  backward delete char   Action varies according to focus  Active  Editor Commands  Delete one character behind the cursor  or the current selection if  not empty    Toolbar Search Commands  Delete character behind the cursor    Shift Ctrl F8  start select block   Turn on auto select block mode    Shift Delete  cut   Action varies according to focus  Active Editor Commands  Cut  selected text   Search Manager Instance Commands  Cut selected text   Toolbar Search  Commands  Cut selection    410    Shift Down  next line extend   Move to next screen line  adjusting the s
272. efault     Ctrl parenright  stop kbd macro   Stop definition of a keyboard macro    Ctrl question  uncomment out region   Uncomment out the selected region if com   mented out  If one_level is True then each call removes only one level of commenting     Ctrl space  show autocompleter   Show the auto completer for current cursor posi   tion    Delete  forward delete char   Action varies according to focus  Active Editor Com   mands  Delete one character in front of the cursor   Toolbar Search Commands  Delete  character in front of the cursor    Down  next line   Move to screen next line  optionally repositioning character within  line     same    to leave in same horizontal position     start    at start     end    at end  or    fnb     for first non blank char     385    End  end of line   Action varies according to focus  Active Editor Commands  Move  to end of current line  Toolbar Search Commands  Move to the end of the toolbar search  entry    F1  Multiple commands  first available is executed      e show horizontal tools   Show the horizontal tool area    e minimize horizontal tools   Minimize the horizontal tool area    F11  frame up   Move up the current debug stack  F12  frame down   Move down the current debug stack    F2  Multiple commands  first available is executed      e show vertical tools   Show the vertical tool area    e minimize vertical tools   Minimize the vertical tool area  F3  search forward   Search again using the search manager   s current settings
273. election  range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start  end    at end  or    fnb    for first non blank char     Shift End  end of line extend   Action varies according to focus  Active Editor Com   mands  Move to end of current line  adjusting the selection range to new position    Toolbar Search Commands  Move to the end of the toolbar search entry  extending the  selection    Shift F1  move focus   Move the keyboard focus forward within the Window to the  next editable area    Shift F11  frame show   Show the position  thread and stack frame  where the de   bugger originally stopped    Shift F2  Multiple commands  first available is executed      e enter fullscreen   Hide both the vertical and horizontal tool areas  and toolbar  saving previous state so it can be restored later with  exit_fullscreen    e exit fullscreen   Restore previous non fullscreen state of all tools and  tool bar    Shift F3  search backward   Search again using the search manager   s current settings  in backward direction    Shift F4  find points of use   Find points of use for a symbol  The symbol defaults  to the active selection     Shift F5  debug file   Start debugging the current file  rather than the main entry  point     Shift F6  run all tests   Runs all the tests in testing panel     Shift F7  run current tests   Runs the current test or tests  if possible  The current  tests are determined by th
274. en from keyboard  filename     Open a file from disk using keyboard driven selection of the file Key Bindings  Normal   Ctrl K  Emacs  Ctrl X Ctrl F  Visual Studio  Ctrl K Ctrl O    open from project       Open a document from the project by typing a fragment to match file names Key Bind   ings  Normal  Ctrl Shift O  VI VIM  Ctrl Shift O  Emacs  Ctrl X Ctrl O  Visual Stu   dio  Ctrl Shift O  OS X  Command Shift O    open gui  filename None     Open a file from disk  prompting with file selection dialog if necessary Key Bindings   Normal  Ctrl O  Brief  Alt E  Visual Studio  Ctrl O  OS X  Command O    perspective disable auto      Disable auto perspectives  perspective enable auto      Enable auto perspectives  perspective manage      Display the perspectives manager dialog  perspective restore  name    Restore the given named perspective   previous document       Move to the previous document alphabetically in the list of documents open in the  current window Key Bindings  Normal  Ctrl Page_Up  VI  VIM  Ctrl Page_Up  Emacs   Ctrl Page_Up  Brief  Ctrl Page_Up  Visual Studio  Ctrl Page_Up  OS X  Command 9    previous window      Switch to the previous window alphabetically by title  query end session      Process query end session message on win32   quit       Quit the application  Key Bindings  Normal  Ctrl Q  Emacs  Ctrl X Ctrl C  Brief   Alt X  Visual Studio  Ctrl Q  OS X  Command Q    295    recent document       Switches to previous document most recently visited in the cu
275. encoding for that file cannot be determined by reading the file  Other encodings  may also be tried  This also sets the encoding to use for newly created files     Internal Name   edit  default encoding  Data Specification      None or  Central and Eastern European iso8859 2  Japanese iso   2022 jp 2004  Hebrew cp856  Japanese euc jp  Vietnamese cp1258  Greek cp1253  guages cp1257  Korean johab  System default  UTF 8   Baltic Lan   guages cp775  Japanese iso 2022 jp ext  Korean iso 2022    kr  Icelandic cp861  Hebrew cp424  Cyrillic Languages cp1251  Turk   ish iso8859 9  Unicode  UTF 16  little endian  utf 16 le  West    ern European cp500  Chinese  PRC  gb18030  Greek cp875  Ara    bic cp864  Icelandic mac iceland  Chinese  PRC  gbk  Turk    ish mac turkish  Greek iso8859 7  Baltic Languages iso8859    13  Cyrillic Languages mac cyrillic  Greek cp869  Japanese iso   2022 jp 1  Central and Eastern European cp852  Japanese iso   2022 jp 2  Chinese  ROC  big5  Urdu cp1006  Hebrew iso8859    8  Celtic Languages iso8859 14  Thai cp874  Cyrillic Lan    guages cp855  Western European iso8859 15  Greek mac    greek  Western European cp1252  Ukrainian koi8 u  He    brew cp1255  Danish  Norwegian cp865  Cyrillic Languages iso08859   5  Turkish cpi026  Western European mac roman  Western Euro    pean cpii40  Chinese  PRC  hz  Japanese shift jisx0213  Por   tuguese cp860  Chinese  ROC  cp950  US  Canada  and Oth    ers cp037  Japanese shift jis 2004  Turkish cp1254  Japanese iso   2022
276. epping through code is a mismatch between the file name that is  stored in the   pyc file and the actual location of the   py source file     This can be caused by  1  not saving before you run in the debugger   2  using partial  path names on PYTHONPATH or when invoking a script from the command line  the  partial path stored in the   pyc file may become invalid if current directory changes     3  moving around the   pyc file after they are created  or  4  using compileall py to    176    create   pyc files from source  The easiest way to solve this is to use only full paths on  PYTHONPATH and remove any suspect   pyc files     Wing may fail to stop when debugging an application that gets invoked repeatedly in  separate processes  for example a CGI script invoked multiple times from a browser as  part of a page load  This is because the debugger can currently only debug one process  at a time  If the debugger is already connected to one process  the second and later  processes will not be debugged and thus may miss breakpoints     Less common causes of this problem are  1  running Python with the  0 optimization  option   2  running Python with psyco or other optimizer   3  overriding the Python  __import__ routine   4  adding breakpoints after you   ve started debugging an applica   tion that spends much of its time in C C   or other non Python code  and  5  on win32   using symbolic links to directories that contain your source code files  Posix platforms  handle symbolic 
277. erits the SSH  related environment     An often easier alternative is to make use of a tool like SSHKeyChain     149  14 9 2  Configuring Subversion    Installing Subversion    On Windows  Download from http   subversion tigris org  and add installation location  to PATH environment variable from the Advanced tab of the System control panel    On Linuz Uniz  Install Subversion using the packages that came with your Linux Unix  distribution or download from http   subversion tigris org  and build from sources     Subversion with SSH    First time configuration  Install and configure SSH as described earlier  this also loads  authentication information into the cache for the current session     To check out a repository  Type svn checkout svntssh   hostname path to repository   If yow   re not sure what to check out try this first  svn list svn ssh   hostname     Future sessions require  On Windows  double click on your private key file and enter  your pass phrase  or on Linux Unix  run ssh add and enter your pass phrase     Subversion with http https or file URLs    To check out a repository with http or https  type svn checkout  http   hostname path to repository  If you   re not sure what to check out try  this first  svn list http   hostname     To check out a repository with file  URLs  type svn checkout  file    path to repository You will be prompted for your user name and pass   word  which will be cached by Subversion for future sessions     14 9 3  Configuring CVS    
278. erpreter  This means that any code in finally clauses  except clauses that  reraise the exception  and with statement cleanup routines will be executed before the  debugger stops     The Exception Reporting preference can be used to choose different ways of reporting  exceptions  The following choices are available     When Printed  default     The debugger will stop on exceptions at the time that they  would have been printed out by the Python interpreter     For code with catch all exceptions written in Python  Wing may fail to report unexpected  exceptions if the handlers do not print the exception  In this case  it is best to rewrite the  catch all handlers as described in Trouble shooting Failure to Stop on Exceptions     Always Immediately    The debugger will stop at every single exception immediately  when it is raised  In most code this will be very often  since exceptions may be used inter   nally to handle normal  acceptible runtime conditions  As a result  this option is usually  only useful after already running close to a code that requires further examination     At Process Termination    In this case  the debugger will make a best effort to stop  and report exceptions that actually lead to process termination  This occurs just before  or sometimes just after the process is terminated  The exception is also printed to  stderr  as it would be when running outside of the debugger     When working with an Externally Launched Debug Process   the At Process    121  
279. ers to define which  characters are part of a word  Gravity may be    start    or    end    to indicate whether cursor  is placed at start or end of the word   Toolbar Search Commands  Move backward one  word  extending the selection    Ctrl Shift KP_Next  forward page extend   Move cursor forward one page  adjust   ing the selection range to new position    Ctrl Shift KP_Page_Down  forward page extend   Move cursor forward one page   adjusting the selection range to new position    Ctrl Shift KP_Page_Up  backward page extend   Move cursor backward one page   adjusting the selection range to new position    Ctrl Shift KP_Prior  backward page extend   Move cursor backward one page   adjusting the selection range to new position    Ctrl Shift KP_Right  forward word extend   Action varies according to focus  Ac   tive Editor Commands  Move cursor forward one word  adjusting the selection range to    433    new position  Optionally  provide a string that contains the delimiters to define which  characters are part of a word  Gravity may be    start    or    end    to indicate whether cursor  is placed at start or end of the word   Toolbar Search Commands  Move forward one  word  extending the selection    Ctrl Shift KP_Up  previous line extend   Move to previous screen line  adjusting  the selection range to new position  optionally repositioning character within line  same     to leave in same horizontal position     start    at start     end    at end  or    fnb    for first no
280. ersion 2 2     Internal Name     debug use members attrib    Data Specification      lt boolean  O or 1 gt     Default Value     debug  wrap debug io  Set to true to turn on line wrapping in the integrated debug I O panel     Internal Name   debug  wrap debug io  Data Specification    lt boolean  O or 1 gt     Default Value     debug  wrap debug probe    Set to true to turn on line wrapping in the integrated debug probe panel     Internal Name     debug  wrap debug probe    Data Specification      lt boolean  O or 1 gt     Default Value     debug  wrap python shell  Set to true to turn on line wrapping in the Python shell panel     Internal Name     debug  wrap python shell    Data Specification     287    288   lt boolean  O or 1 gt     Default Value     Source Analysis Preferences    pysource instance attrib scan mode  How to scan for instance attributes     Internal Name    pysource  instance attrib scan mode  Data Specification     init only  all methods   Default Value     all methods    Command Reference    This chapter describes the entire top level command set of Wing IDE  Use this reference  to look up command names for use in modified keyboard bindings     Commands that list arguments of type  lt numeric modifier gt  accept either a number  or previously entered numeric modifier  This is used with key bindings that provide a  way to enter a numeric modifier  such as Esc 1 2 3 in the emacs personality or typing  numerals in browse mode in the vi personality      20 1
281. es and stores these in the project  file  These values will not be refetched during subsequent debugging  even if Wing is  quit and restarted     To override this behavior for an individual value  use the Force Reload item in the  right click context menu on a data value     To clear the list of all errors previously encountered so that all values are reloaded  use  the Clear Stored Value Errors item in the Debug menu  This operates only on the    116    list of errors known for the current debug file  if a debug session is active  or for the main  debug file  if any  when no debug process is running     12 10  Debug Process I O    While running under the Wing debugger  any output from print or any writes to stdout  or stderr will be seen in the Debug I O tool  This is also where you enter keyboard  input  if your debug program requests any with input   or raw_input   or by reading  from stdin     The code that services debug process I O does two things   1  any waits on sys stdin  are multiplexed with servicing of the debug network socket  so that the debug process  remains responsive to Wing IDE while waiting for keyboard input  and  2  in some cases   I O is redirected to another window     For a debug process launched from within Wing  keyboard I O always occurs either in  the Debug I O tool or in a new external console that is created before the debug process  is started  This can be controlled as described in External I O Consoles  Using an  external console is recommen
282. ether all lines in given  selection  replace newlines with the given delimiter  single space by default     Visual g Visual q  fill paragraph   Attempt to auto justify the paragraph around  the current start of selection    Visual o  exchange point and mark   When currently marking text  this exchanges  the current position and mark ends of the current selection    Visual r  replace char   Replace num characters with given character  Set line mode  to multiline to allow replacing across lines  extend to replace on current line and then  extend the line length  and restrict to replace only if enough characters exist on current  line after cursor position     Visual s  enter insert mode pos    delete sel       Enter editor insert mode  Visual v  enter browse mode   Enter editor browse mode    Visual x  move to register unit    sel     cut 1    Cut or copy a specified number  of characters or lines  or the current selection  Set cut 1 to remove the range of text  from the editor after moving to register  otherwise it is just copied   Unit should be one  of    char    or    line    or    sel    for current selection     Visual y  move to register unit    sel       Cut or copy a specified number of charac   ters or lines  or the current selection  Set cut 1 to remove the range of text from the  editor after moving to register  otherwise it is just copied   Unit should be one of    char     or    line    or    sel    for current selection     21 4  Visual Studio Personality    This
283. ew position  optionally repositioning character within line  same    to  leave in same horizontal position     start    at start     end    at end  or    fnb    for first non blank  char     Shift Left  backward char extend   Action varies according to focus  Active Editor  Commands  Move cursor backward one character  adjusting the selection range to new  position   Toolbar Search Commands  Move backward one character  extending the  selection    Shift Left  backward word   Action varies according to focus  Active Editor Com   mands  Move cursor backward one word  Optionally  provide a string that contains  the delimiters to define which characters are part of a word  Gravity may be  start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move backward one word    Shift Next  forward page extend   Move cursor forward one page  adjusting the  selection range to new position    Shift Page_Down  forward page extend   Move cursor forward one page  adjusting  the selection range to new position    Shift Page_Up  backward page extend   Move cursor backward one page  adjusting  the selection range to new position    Shift Prior  backward page extend   Move cursor backward one page  adjusting the  selection range to new position    Shift Return  new line   Place a new line at the current cursor position    442    Shift Right  forward char extend   Action varies according to focus  Active Edi   tor Commands  Move cursor forw
284. ew script file is added  in order to get Wing to discover it  Afterward  Wing automat   ically reloads scripts whenever they are saved to disk     Next execute the script with the Command by Name item in the Edit menu and then  type test script followed by pressing the Enter key in the text entry that appears at  the bottom of the IDE window  Wing will ask for the argument test_str using it   s  builtin argument collection facility  Type a string and then Enter  The script will pop  up a modal message dialog     Next make a trivial edit to the script  e g   change    And you typed    to    Then you typed       Save the script and execute the script again  You will see that Wing has automatically  reloaded the script and the new text appears in the message dialog     Finally  make an edit to the script that introduces an error into it  For example  change  import wingapi to import wingapi2  Save the script and Wing will show a clickable  traceback in the Scripts channel of the Messages tool  This makes it easy to quickly  find and fixed errors in scripts during their development     To make life easier  you may want to create a project for your scripting work  and then  add WINGHOME bin  where WINGHOME is replaced with the installation location of Wing  IDE  to your Python Path in Project Properties  This will make it possible for Wing  to show auto completion and call tips for items inside the module wingapi     That   s all there is to basic scripting  The most relevant exam
285. executable wing4 0  These locations default  to  usr local lib wingide and  usr local bin  respectively  The install program  must have read write access to both of these directories  and all users running Wing  must have read access to both     Using System wide GTK     By default  Wing IDE runs with its own copy of GTK2 and does not pick up on the  system configured theme  This is done to avoid problems and bugs sometimes brought  out by binary incompatibilities in GTK versions     On Linux versions that include GTK version 2 6 or later  you can tell Wing IDE to use  the system defined GTK2 by setting the System GTK preference or running with the    system gtk command line argument     Using the system wide GTK2 in this way generally works quite well but may result in    24    crashing or display bugs due to binary incompatibilities in GTK and related libraries   If you set the preference and Wing fails to start  specify the   private gtk command  line option to override the preference     Non ascii File Paths on Older Linux Systems     Some older Linux versions require setting the environment variable  G_BROKEN_FILENAMES before Wing IDE   s file open save dialog will work properly  with file paths that contain non ascii characters  The environment variable is already  set on some systems where it is needed but this is not always the case     Debugging 32 bit Python on 64 bit Systems    On a 64 bit system where you need to debug 32 bit Python  you will need to install the  
286. ext document   Move to the next document alphabetically in the list of  documents open in the current window    Ctrl 1  activate file option menu   Activate the file menu for the editor     Ctrl 2  activate symbol option menu 1   Activate the 1st symbol menu for the  editor     Ctrl 3  activate symbol option menu 2   Activate the 2nd symbol menu for the  editor     Ctrl 4  activate symbol option menu 3   Activate the 3rd symbol menu for the  editor     Ctrl 5  activate symbol option menu 4   Activate the 4th symbol menu for the  editor     Ctrl 6  activate symbol option menu 5   Activate the 5th symbol menu for the  editor     Ctrl 7 C  use lexer cpp   Force syntax highlighting for C C   source  Ctrl 7 H  use lexer html   Force syntax highlighting for HTML   Ctrl 7 M  use lexer makefile   Force syntax highlighting for make files  Ctrl 7 N  use lexer none   Use no syntax highlighting   Ctrl 7 P  use lexer python   Force syntax highlighting for Python source  Ctrl 7 S  use lexer sql   Force syntax highlighting for SQL   Ctrl 7 X  use lexer xml   Force syntax highlighting for XML files    Ctrl 8  recent document   Switches to previous document most recently visited in  the current window or window set if in one window per editor windowing mode     Ctrl 9  previous document   Move to the previous document alphabetically in the  list of documents open in the current window    Ctrl    indent to match   Indent the current line or selected region to match inden   tation of preceding 
287. ey Bindings  Normal  Ctrl Alt G  Emacs  Ctrl X R B  Visual  Studio  Ctrl Alt G  OS X  Command Shift D    goto next bookmark  current_file_only False     Go to the next bookmark  or the first one if no bookmark is selected  Stays within  the file in the current editor when current_file_only is True  Key Bindings  Normal   Ctrl Alt Right  VI VIM  Ctrl Alt Right  Emacs  Ctrl Alt Right  Brief  Ctrl Alt Right   Visual Studio  Ctrl Alt Right    goto previous bookmark  current_file_only False     Go to the previous bookmark in the bookmark list  or the last one if no bookmark is  selected  Stays within the file in the current editor when current_file_only is True  Key  Bindings  Normal  Ctrl Alt Left  VI VIM  Ctrl Alt Left  Emacs  Ctrl Alt Left  Brief   Ctrl Alt Left  Visual Studio  Ctrl Alt Left    hide line numbers     Hide line numbers in editors  initiate numeric modifier  digit     VI style repeat numeric modifier for following command Key Bindings  VI VIM  1  invokes initiate numeric modifier  digit 1     initiate repeat       Enter a sequence of digits indicating number of times to repeat the subsequent command  or keystroke  Key Bindings  Emacs  Ctrl U    initiate repeat O       Enter a sequence of digits indicating number of times to repeat the subsequent command  or keystroke  Key Bindings  Emacs  Alt 0    292    initiate repeat 1       Enter a sequence of digits indicating number of times to repeat the subsequent command  or keystroke  Key Bindings  Emacs  Alt 1    initia
288. f host  so  that on Linux Unix you include   so extension modules  on Windows   pyd extension  modules  and so forth     Compiling from Source    On machines for which there is no Wing IDE installer  the debugger core can be installed  from source code  This is only available to Wing IDE Professional customers  and  requires signing a non disclosure agreement  The compilation instructions are located in  build files README  DBG SRC txt in the source distribution that you will be provided  with     13 3  Attaching and Detaching    Debug processes normally contact Wing IDE automatically during startup  However   Wing IDE can also attach to debug processes that are already running but not yet in  contact with the IDE if the process will allow it  There are two cases where this is useful     135     1  When an externally launched process  one that uses wingdbstub py  as described  in section Debugging Externally Launched Code  cannot reach the IDE at the  configured host and port during initial startup  for example because the IDE is not yet  running or was not configured to accept debug connections      2  When a process attached to the IDE is disconnected using Detach from Process  in the Debug menu or the detach icon in the toolbar     In either case  the IDE can manage any number of detached processes  allowing you to  attach to any one process at a time     13 3 1  Access Control    Wing will not allow attach detach functionality unless it has available to it a password  tha
289. fault Value    O    Do Not Expand    Defines types for which values should never be probed for contents  These are types  that are known to crash when the debugger probes them because they contain buggy  data value extraction code  These values are instead shown as an opaque value with hex  object instance id     Internal Name   debug  no probe types  Data Specification      tuple of   lt type str gt      248  Default Value       GdkColormap        I0BTree        e External Remote    Enable Passive Listen    Controls whether or not the debugger listens passively for connections from an externally  launched program  false to disable  true to enable   This should be on when the debug  program is not launched by the IDE  e g   as with a CGI script      Internal Name   debug passive listen   Data Specification    lt boolean  O or 1 gt     Default Value     Allowed Hosts    Sets which hosts are allowed to connect to the debugger when it is listening passively  for externally launched programs     Internal Name   debug passive hosts  Data Specification    tuple of   lt type str gt    Default Value       127 0 0 1       249    Server Host    Determines the network interface on which the debugger listens for connections  This  can be a symbolic name  an ip address  or left unspecified  use None  to indicate that  the debugger should listen on all valid network interfaces on the machine  Note that  when a debug session is launched from within the IDE  with the Run button   it always  
290. ferences GUI by adding 192 168 1 200 as a new Remote Host IP and  entering a single mapping pair with  home myuser mysource and e  mysource     See Location Map Examples for additional examples     134  13 2 3  Installing the Debugger Core    When Wing is used to debug a Python program remotely  the Wing debugger core must  be installed on the remote machine  The easiest way to do that is just to install Wing  IDE there  If that is not possible  there are two options   1  Copy just the debugger files  from a Wing IDE installation on the same type of machine  or  2  compile the debugger  core from sources  available for Wing IDE Professional only      Copying from Wing IDE Installation    When copying from an existing Wing IDE installation on another machine  you will need  to copy all of the following files and directories under WINGHOME     wingdbstub py bin wingdb py bin     src debug tserver bin     src zip  debug tserver   only Python 2 5  bin     opensource schannel  Python versions other  than 2 5  bin     opensource zip schannel  only Python 2 5     Replace     with each version Python you wish to debug under  for example  2 5   You  can omit the directories for the versions that you are not using     The directories within zip files  used only in Python 2 5 and later  can either be copied  by moving the entire zip file or by creating a subset that contains only the necessary  directories     Be sure to copy these directories from a Wing installation on the same type o
291. folders and files     Linux RPM    If you installed Wing IDE for Linux from RPM  issue the command rpm  e wingide4 0   Then go into  usr lib wingide4 0 and remove any remaining files and directories     Linux Debian    If you installed Wing IDE for Linux from Debian package  issue the command dpkg  r  wingide4 0  Then go into  usr lib wingide4 0 and remove any remaining files and  directories     Linux Tar    If you installed Wing IDE for Linux from the tar distribution  find your Wing installation  directory and run the wing uninstal11 script located there  Once done  manually remove  any remaining files and directories     Mac OS X  On Mac OS X  just drag the entire Wing IDE application folder to the trash     If this procedure does not solve the problem  try moving aside the User Settings  Directory and then starting Wing  If this works  try restoring files from the old user  settings directory one by one to find the problem  Key files to try are license act    preferences and recent   Then submit a bug report to support wingware com with  the offending file     1 12  Installation Details and Options    This section provides some additional detail for installing Wing and describes installation  options for advanced users     1 12 1  Linux Installation Notes    On Linux  Wing can be installed from RPM  Debian package  or from tar archive   Use the latter if you do not have root access on your machine or wish to install Wing  somewhere other than  usr lib wingide4 0  Be sure
292. forward delete word insert  repeat  lt numeric modifier  default 1 gt      Delete one word in front of the cursor and enter insert mode  when working in modal  key bindings     forward page  repeat  lt numeric modifier  default 1 gt      Move cursor forward one page Key Bindings  Normal  Next  VI VIM  Next  Emacs   Next  Brief  Next  Visual Studio  Next  OS X  Ctrl Down    forward page extend  repeat  lt numeric modifier  default 1 gt      Move cursor forward one page  adjusting the selection range to new position Key Bind   ings  Normal  Shift Next  VI VIM  Shift Next  Emacs  Shift Next  Brief  Shift Nezt   Visual Studio  Shift Next  OS X  Shift Page Down    forward paragraph  repeat  lt numeric modifier  default 1 gt      Move cursor forward one paragraph  to next all whitespace line   Key Bindings   VI VIM       forward paragraph extend  repeat  lt numeric modifier  default 1 gt      321    Move cursor forward one paragraph  to next all whitespace line   adjusting the selection  range to new position     forward tab     Place a tab character at the current cursor position Key Binding  Ctrl T    forward word  delimiters None  gravity    start     repeat  lt numeric modifier  de   fault 1 gt      Move cursor forward one word  Optionally  provide a string that contains the delimiters  to define which characters are part of a word  Gravity may be    start    or    end    to indicate  whether cursor is placed at start or end of the word  Key Bindings  Normal  Ctrl Right   VI VI
293. from the editor within the Debug Probe tool  When  whole_lines is set  the selection is rounded to whole lines before evaluation  When  unspecified  set to None   the setting from the Shell   s Option menu is used instead     evaluate sel in shell  restart_shell False  whole_lines None     Evaluate the current selection from the editor within the Python Shell tool  optionally  restarting the shell first  When whole_lines is set  the selection is rounded to whole lines  before evaluation  When unspecified  set to None   the setting from the Shell   s Option  menu is used instead  Key Bindings  Emacs  Ctrl C      execute kbd macro  register    a     repeat  lt numeric modifier  default 1 gt      Execute most recently recorded keyboard macro  If register is None then the user is  asked to enter a letter a z for the register where the macro is filed  Otherwise  register     a    is used by default  Key Bindings  Normal  Ctrl M  VI VIM    invokes execute   kbd macro register None   Emacs  Ctrl X E  Brief  F8  Visual Studio  Ctri M  OS X   Command M    fill paragraph       Attempt to auto justify the paragraph around the current start of selection Key Bind   ings  Normal  Ctrl J  VI  VIM  g q q  Emacs  Ctrl J  Visual Studio  Ctrl K Ctrl F  OS  X  Command J    find symbol       Allow user to visit point of definition of a source symbol in the current editor context  by typing a fragment of the name Key Bindings  Normal  Ctrl Shift T  VI VIM  Ctrl   Shift T  Emacs  Ctrl X Ctrl G  Vis
294. future version of  Wing ever adds a command with the same name  This can generally be avoided by using  appropriately descriptive and unique names and or by referencing the command from  key bindings and menus using only its fully qualified name     17 3  Script Syntax    Scripts are syntactically valid Python with certain extra annotations and structure that  are used by Wing IDE to determine which scripts to load and how to execute them     Only functions defined at the top level of the Python script are treated as commands   and only those that start with a letter of the alphabet  This allows the use of _ prefixed  names to define utilities that are not themselves commands  and allows use of Python  classes defined at the top level of script files in the implementation of script functionality     Script Attributes    In most cases additional information about each script def is provided via function  attributes that define the type of arguments the script expects  whether or not the  command is available at any given time  the display name and documentation for the  command  and the contexts in which the script should be made available in the GUI     The following are supported     161    arginfo    This defines the argument types for any arguments passed to the script   It is a dictionary from the argument name to an ArgInfo specification  described  in more detail below  or a callable object that returns this dictionary  Argument  information is used by Wing to drive aut
295. g directory must  be entered before the checkout     cvs commit  locs  lt selected files gt     Commit the selected files to the CVS repository  cvs commit project      Commit files in project   cvs diff  locs  lt selected files gt      Show the differences between working version of given files and the corresponding revision  in the CVS repository    cvs log  locs  lt selected files gt     Show the revision log for the selected files in the CVS repository  cvs project status      Run status for entire project    cvs remove  locs  lt selected files gt     Remove the selected files   cvs revert  locs  lt selected files gt     Revert the selected files   cvs status  locs  lt selected files gt     View the CVS repository status for the selected files  cvs update  locs  lt selected files gt      Update the selected files from the CVS repository    304    cvs update project       Update files in project    Mercurial Commands    Mercurial revision control system commands  hg annotate  locs  lt selected files gt     Show user and revision for every line in the file s    hg log  locs  lt selected files gt     Show the revision log for the selected files in the hg repository  hg merge  locs  lt selected files gt     Merge working directory with changes in repository  hg pull entire repository  locs  lt selected files gt     Pull all changes from remote repository to local repository  hg push entire repository  locs  lt selected files gt    Update the selected files from the hg reposit
296. g on the Print Python as Text preference may also solve some printing prob   lems  although on some systems with plainer output for Python files  When this is  enabled  Python files are also passed through the the command given in the Text Print  Cmd preference instead of generating syntax highlighted PDF  In all cases  all non   Python files are passed through this command     Preferences Reference    This chapter documents the entire set of available preferences for Wing IDE Professional   Note that this includes preferences that are ignored and unused in Wing IDE Personal  and Wing IDE 101     Most preferences can be set from the Preferences GUI but some users may wish to  build preference files manually to control different instances of Wing IDE  see details in  Preferences Customization      User Interface    Display Theme    Configures the overall display style  or theme  used by Wing IDE  Additional  GTK2 themes may be downloaded from http   art gnome org themes and placed into  WINGHOME bin gtk bin share themes or USER SETTINGS_DIR themes  These  will be added to the choices below  However  only the pixbuf  metal  and redmond95  theme engines are supported     Internal Name   gui display theme  Data Specification      H20 gtk2 Saphire  H20 gtk2 Emerald  H20 gtk2 Amber  AluminumAlloy   Toxic  Redmond95  Smooth 2000  H20 gtk2 Amythist  High   ContrastLargePrint  AluminumAlloy Cryogenic  HighCon    trast  AluminumAlloy Volcanic  LowContrast  LargePrint  High   ContrastLa
297. g or executing scripts are displayed in the Scripts chan   nel of the Messages tool     Scripts can optionally be designated as plugins  which allows the script to enable or  disable itself as a whole when appropriate  for example  according to project contents  or current editor file type   and allows the user to selectively enable or disable the script  in the Tools menu     More advanced scripting  including the ability to add tool panels  is also available but  generally requires running a copy of Wing IDE from source code  so that scripts can be  debugged more efficiently     157    158    17 1  Scripting Example    The scripting facility is documented in detail in the sections that follow  but in most  cases it is easiest simply to work from the examples in the scripts directory in the  Wing IDE installation  using the rest of this chapter as a reference     User scripts are usually placed inside a directory named scripts within the User Set   tings Directory  They can also be placed in scripts inside the Wing IDE installation     Try adding a very simple script now by pasting the following into a file called test  py  within one of the scripts directories     import wingapi  def test_script test_str    app   wingapi gApplication  v    Product info is      str app GetProductInfo     v      nAnd you typed   s    test_str  wingapi gApplication ShowMessageDialog  Test Message   v     Then select Reload All Scripts from the Edit menu  This is only needed the first time a  n
298. g processes  This is for advanced users and is detailed in  Attaching and Detaching     12 8  Viewing the Stack    Whenever the debug program is paused at a breakpoint or during manual stepping  the  current stack is displayed in the Call Stack tool  This shows all program stack frames  encountered between invocation of the program and the current run position  Outermost  stack frames are higher up on the list     When the debugger steps or stops at a breakpoint or exception  it selects the innermost  stack frame by default  In order to visit other stack frames further up or down the stack   select them in the Call Stack tool  You may also change stack frames using the Up  Stack and Down Stack items in the Debug menu  the up down tool bar icons  the stack  selector popup menus the other debugging tools     110    When you change stack frames  all the tools in Wing that reference the current stack  frame will be updated  and the current line of code at that stack frame is presented in  an editor window     In Wing IDE Professional  the current stack frame is also used to control evaluation  context in the Debug Probe and Watch tools     To change the type of stack display  right click on the Call Stack tool and select from  the options for the display and positioning of the code line excerpted from the debug  process     When an exception has occurred  a backtrace is also captured by the Exceptions noti   fication tool  where it can be accessed even after the debug process has
299. g the braces    Ctrl N  next line   Move to screen next line  optionally repositioning character within  line     same    to leave in same horizontal position     start    at start     end    at end  or    fnb     for first non blank char     Ctrl Next  forward page   Move cursor forward one page  Ctrl O  next window   Switch to the next window alphabetically by title  Ctrl O  open line   Open the current line by inserting a newline after the caret    Ctrl P  previous line   Move to previous screen line  optionally repositioning character    400    within line  same    to leave in same horizontal position     start    at start     end    at end  or   fnb    for first non blank char     Ctrl Page_Down  next document   Move to the next document alphabetically in  the list of documents open in the current window    Ctrl Page_Up  previous document   Move to the previous document alphabetically  in the list of documents open in the current window    Ctrl Period  redo   Redo last action    Ctrl Pointer_Button1  goto clicked symbol defn   Goto the definition of the  source symbol that was last clicked on    Ctrl Prior  backward page   Move cursor backward one page    Ctrl R  isearch backward   Action varies according to focus  Active Editor Com   mands  Initiate incremental mini search backward from the cursor position  optionally  entering the given search string   Document Viewer Commands  Initiate incremental  mini search backward from the cursor position  optionally entering the
300. g white space  and vice versa      KP_Insert  toggle overtype   Toggle status of overtyping mode    KP_Left  backward char   Action varies according to focus  Active Editor Com   mands  Move cursor backward one character   Toolbar Search Commands  Move back   ward one character    KP_Next  forward page   Move cursor forward one page  KP_Page_Down  forward page   Move cursor forward one page  KP_Page_Up  backward page   Move cursor backward one page  KP_Prior  backward page   Move cursor backward one page    KP_Right  forward char   Action varies according to focus  Active Editor Commands   Move cursor forward one character   Toolbar Search Commands  Move forward one  character    KP_Tab  tab key   Implement the tab key  the action of which is configurable by  preference    KP_Up  previous line   Move to previous screen line  optionally repositioning charac   ter within line  same    to leave in same horizontal position     start    at start  end    at end   or    fnb    for first non blank char     Left  backward char   Action varies according to focus  Active Editor Commands   Move cursor backward one character   Toolbar Search Commands  Move backward one  character    Next  forward page   Move cursor forward one page  Page_Down  forward page   Move cursor forward one page  Page_Up  backward page   Move cursor backward one page  Prior  backward page   Move cursor backward one page    Return  new line   Place a new line at the current cursor position    459    Right  forward 
301. ges     help indent      book   marks      testing      source editor os command      snippets      versioncontrol svn       versioncontrol hg      versioncontrol bzr          versioncon   trol perforce         versioncontrol cvs          Wing Personal and Pro only      Wing Pro only   show pdf document  doc    manual       Show the given document in PDF format  One of    manual        intro     or  howtos      show plugins gui      Show the plugins GUI for enabling and disabling plugins  show preferences gui  prefname None     Edit the preferences file using the preferences GUI  optionally opening to the section  that contains the given preference by name Key Bindings  OS X  Command Comma    show python donate html      Show the Python donations web page  show python for beginners html     Show the Python for Beginners web page  show python manual html      Show the HTML version of the Python users manual  show python org html      Show the python org site home page  show python org search html     Show the python org site search page  show quickstart      Show the quick start guide  show success stories html       Show the Python Success Stories page    298    show support html      Show the Wing IDE support site home page  show text registers      Show the contents of all non empty text registers in a temporary editor  show tutorial      Show the tutorial   show wingtip  section            Show the Wing Tips window   show wingware website      Show the Wingware home page  
302. gging at first line  F8  step out   Step out of the current function or method    F9  Multiple commands  first available is executed      e break set   Set a new regular breakpoint on current line    e break clear   Clear the breakpoint on the current line    Home  beginning of line text   Move to end of the leading white space  if any  on  the current line  If toggle is True  moves to the beginning of the line if already at the  end of the leading white space  and vice versa      ISO_Left_Tab  backward tab   Outdent line at current position  Insert  toggle overtype   Toggle status of overtyping mode    KP_Delete  forward delete char   Action varies according to focus  Active Editor  Commands  Delete one character in front of the cursor   Toolbar Search Commands   Delete character in front of the cursor    KP_Down  next line   Move to screen next line  optionally repositioning character  within line     same    to leave in same horizontal position     start    at start     end    at end  or   fnb    for first non blank char     458    KP_End  end of line   Action varies according to focus  Active Editor Commands   Move to end of current line  Toolbar Search Commands  Move to the end of the toolbar  search entry    KP_Enter  new line   Place a new line at the current cursor position    KP_Home  beginning of line text   Move to end of the leading white space  if any   on the current line  If toggle is True  moves to the beginning of the line if already at the  end of the leadin
303. h for this script     convert to crlf lineends  app      Convert the current editor to use CR   LF style line endings  fold python classes and defs       Fold up all Python classes  methods  and functions but leave other fold points alone Key  Bindings  Normal  Alt 8  VI VIM  Alt 3  Emacs  Alt 3  Brief  Alt 3  Visual Studio   Alt 3  OS X  Command KP_Equal    toggle toolbox separate       Toggle between moving the toolboxes to a separate window and the default single window  mode    Emacs Extensions Script    This file contains scripts that add emacs like functionality not found in Wing   s internal  emacs support layer     369    add change log entry  user_name None  email None  changelog None   changed_file None  func None  other_window False  new_entry False     Add a change log entry Key Bindings  Emacs  Ctrl X 4 A    Brief Script    Scripts that provide functionality specific to the Brief key binding   cursor home       Bring cursor to start of line  to start of visible area  or to start of document each  successive consecutive invocation of this command  Key Bindings  Brief  Home    bookmark 7     Set bookmark    7     bookmark 6     Set bookmark    6     bookmark 5     Set bookmark    5     bookmark 4     Set bookmark    4     bookmark 3     Set bookmark    3     bookmark 2     Set bookmark    2     bookmark 1     Set bookmark    1     bookmark 0     Set bookmark    0       bookmark 9       370    Set bookmark    9     bookmark 8     Set bookmark    8     toggle mark co
304. h lower major minor version back  to 2 0     For example  if c  share pi pi files is on the interfaces path and Python 2 3 is  being used  Wing will check first in c  share pi pi files  then in c  share pi pi   files 2 3  then in c  share pi pi files 2 2  and so forth     154    Example   pi files used by Wing internally to produce autocompletion information for  builtins can be seen in the directory resources builtin pi files inside your Wing  IDE installation  This also illustrates the above described version number fallback mech   anism     In cases where Wing cannot find a   pi at all  it will attempt to load the module by  name  in a separate process space  so that it can introspect its contents  The results of  this operation are stored in pi cache within the User Settings Directory and used  subsequently  This file is regenerated only if the   pyd or   so for the loaded module  changes     15 4  Analysis Disk Cache    The source code analyzer writes information about files it has recently examined into  the Cache Directory that is specified in the About box accessible from the Help menu     Cache size may be controlled with the Max Cache Size preference However  Wing does  not perform well if the space available for the cache is smaller than the space needed for  a single project   s source analysis information  If you see excessive sluggishness  either  increase the size of the cache or disable it entirely by setting its size to 0     If the cache will be used by more
305. he  delimiters to define which characters are part of a word  Gravity may be start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move forward one word    Ctrl Shift Down  next line extend   Move to next screen line  adjusting the selection    484    range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start  end    at end  or    fnb    for first non blank char     Ctrl Shift End  end of document extend   Move cursor to end of document  ad   justing the selection range to new position    Ctrl Shift F3  search sel backward   Search backward using current selection  Ctrl Shift F5  debug stop   Pause free running execution at current program counter  Ctrl Shift F6  debug all tests   Debug all the tests in testing panel     Ctrl Shift F7  debug current tests   Runs the current test or tests  if possible  The  current tests are determined by the current position in the active view     Ctrl Shift F9  Multiple commands  first available is executed      e break disable all   Disable all breakpoints  e break enable all   Enable all breakpoints    Ctrl Shift Home  start of document extend   Move cursor to start of document   adjusting the selection range to new position    Ctrl Shift I  add current file to project   Add the frontmost currently open file to  project    Ctrl Shift ISO_Left_Tab  begin visited document cycle move_back False     Star
306. he current fold point  one more level than it is now     73  e Expand Current More    Like shift clicking  this expands the current fold point  one more level than it is now     e Collapse Current Completely    Like shift ctrl clicking on an expanded node   this collapses all children recursively to maximum depth     e Expand Current Completely    Like shift ctrl clicking on a collapsed node  this  ensures that all children are expanded recursively to maximum depth     e Collapse All    Unconditionally collapse the entire file recursively    e Expand All    Unconditionally expand the entire file recursively    e Fold Python Methods    Fold up all methods in all classes in the file   e Fold Python Classes    Fold up all classes in the file     e Fold Python Classes and Defs    Fold up all classes and any top level function  definitions in the file     4 12  Brace Matching    Wing will highlight matching braces in green when the cursor is adjacent to a brace   Mismatched braces are highlighted in red     You can cause Wing to select the entire contents of the innermost brace pair from the  current cursor position with the Match Braces item in the Source menu     Parenthesis  square brackets  and curly braces are matched in all files  Angle brackets    lt  and  gt   are matched also in HTML and XML files     4 13  Support for files in  zip or  egg files    Source and other text files stored in  zip or  egg files may be loaded into the editor as  readonly files  Wing is unable to
307. he name  of the bookmark  Key Bindings  VI VIM  m    wing tips     Display interactive tip manager  write changed file and close  filename     Write current document to given location only if it contains any changes and close it   Writes to current file name if given filename is None     write file  filename  start_line None  end_line None     Write current file to a new location  optionally omitting all but the lines in the given  range  Key Bindings  Emacs  Ctrl X Ctrl W    write file and close  filename     Write current document to given location and close it  Saves to current file name if the  given filename is None  Key Bindings  VI VIM  Shift Z Shift Z invokes write file and   close filename None     Dock Window Commands    Commands for windows that contain dockable tool areas  These are available for the  currently active window  if any     enter fullscreen       Hide both the vertical and horizontal tool areas and toolbar  saving previous state so it  can be restored later with exit_fullscreen Key Binding  Shift F 2    300    exit fullscreen      Restore previous non fullscreen state of all tools and tool bar Key Binding  Shift F2  hide horizontal tools      Hide the horizontal tool area   hide toolbar      Hide toolbars in all document windows  hide vertical tools      Hide the vertical tool area  minimize horizontal tools      Minimize the horizontal tool area Key Binding  F1  minimize vertical tools      Minimize the vertical tool area Key Binding  F2  show horizo
308. he selection    Command Shift S  save as   Save active document to a new file    Command Shift T  find symbol   Allow user to visit point of definition of a source  symbol in the current editor context by typing a fragment of the name    Command Shift U  isearch backward   Action varies according to focus  Active  Editor Commands  Initiate incremental mini search backward from the cursor position   optionally entering the given search string   Document Viewer Commands  Initiate  incremental mini search backward from the cursor position  optionally entering the given  search string     Command Shift Up  start of document extend   Move cursor to start of docu   ment  adjusting the selection range to new position    Command Shift W  close   Close active document  Abandon any changes when ig   nore_changes is True  Close empty windows and quit if all document windows closed  when close_window is True     Command Shift Z  redo   Redo last action  Command T  search   Bring up the search manager in search mode     Command U  isearch forward   Action varies according to focus  Active Editor Com   mands  Initiate incremental mini search forward from the cursor position  optionally  entering the given search string   Document Viewer Commands  Initiate incremental  mini search forward from the cursor position  optionally entering the given search string     Command Up  start of document   Move cursor to start of document    Command V  paste   Action varies according to focus  Active Edi
309. he toolbar  search entry    KP_Enter  new line   Place a new line at the current cursor position    KP_Home  beginning of line text   Move to end of the leading white space  if any   on the current line  If toggle is True  moves to the beginning of the line if already at the  end of the leading white space  and vice versa      KP_Insert  toggle overtype   Toggle status of overtyping mode    KP_Left  backward char   Action varies according to focus  Active Editor Com   mands  Move cursor backward one character   Toolbar Search Commands  Move back   ward one character    KP_Next  forward page   Move cursor forward one page  KP_Page_Down  forward page   Move cursor forward one page  KP_Page_Up  backward page   Move cursor backward one page  KP_Prior  backward page   Move cursor backward one page    KP_Right  forward char   Action varies according to focus  Active Editor Commands   Move cursor forward one character   Toolbar Search Commands  Move forward one  character    KP_Tab  tab key   Implement the tab key  the action of which is configurable by  preference    KP_Up  previous line   Move to previous screen line  optionally repositioning charac   ter within line  same    to leave in same horizontal position     start    at start     end    at end   or    fnb    for first non blank char     Left  backward char   Action varies according to focus  Active Editor Commands   Move cursor backward one character   Toolbar Search Commands  Move backward one  character    Next  forward 
310. he value of the threshold preferences  but be prepared for longer  data transfer times  Note that setting these values too high will cause the debugger to  time out if the Network Timeout value isn   t also increased     An alternative available in Wing IDE Professional for viewing large data values is to  enter expressions into the Watch tool or Debug Probe to view sub parts of the data  rather than tranferring the whole top level portion of the value     Wing may encounter errors during data handling    Because Wing makes assign   ments and comparisons during packaging of debug data  and because it converts debug  data into string form  it may execute special methods such as __cmp__ and __str__ in    your code  If this code has bugs in it  the debugger may reveal those bugs at times when  you would otherwise not see them     The rare worst case scenario is crashing of the debug process if flawed C or C   exten   sion module code is invoked  In this case  the debug session is ended     More common  but still rare  are cases where Wing encounters an unexpected Python  exception while handling a debug data value  When this happens  Wing displays the  value as  lt error handling value gt      These errors are not reported as normal program errors in the Exceptions tool  However   extra output that may contain the exception being raised can be obtained by setting the  Debug Internals Log File preference     Stored Value Errors    Wing remembers errors it encounters on debug valu
311. he word   Toolbar Search  Commands  Move forward one word    Option Shift Left  backward word extend   Action varies according to focus  Ac   tive Editor Commands  Move cursor backward one word  adjusting the selection range  to new position  Optionally  provide a string that contains the delimiters to define which  characters are part of a word  Gravity may be    start    or    end    to indicate whether cursor  is placed at start or end of the word   Toolbar Search Commands  Move backward one  word  extending the selection    Option Shift Right  forward word extend   Action varies according to focus  Ac   tive Editor Commands  Move cursor forward one word  adjusting the selection range to  new position  Optionally  provide a string that contains the delimiters to define which  characters are part of a word  Gravity may be    start    or    end    to indicate whether cursor  is placed at start or end of the word   Toolbar Search Commands  Move forward one  word  extending the selection    Option Up  backward char   Action varies according to focus  Active Editor Com   mands  Move cursor backward one character   Toolbar Search Commands  Move back   ward one character    Page_Down  forward page   Move cursor forward one page  Page_Up  backward page   Move cursor backward one page  Return  new line   Place a new line at the current cursor position    Right  forward char   Action varies according to focus  Active Editor Commands   Move cursor forward one character   Toolbar Sear
312. hether cursor is placed at start or end of the word  Key Bindings  Normal  Ctrl Left   VI VIM  Ctrl Left  Emacs  Ctrl Left  Brief  Ctrl Left  Visual Studio  Ctrl Left  OS X   Option Left    backward word extend  delimiters None  gravity    start     repeat  lt numeric modi   fier  default 1 gt      Move cursor backward one word  adjusting the selection range to new position  Op   tionally  provide a string that contains the delimiters to define which characters are  part of a word  Gravity may be    start    or    end    to indicate whether cursor is placed at  start or end of the word  Key Bindings  Normal  Ctrl Shift Left  VI  VIM  Ctrl Shift   Left  Emacs  Ctrl Shift Left  Brief  Ctrl Shift Left  Visual Studio  Ctrl Shift Left  OS  X  Option Shift Left    beginning of line  toggle True     Move to beginning of current line  When toggle is True  moves to the end of the leading  white space if already at the beginning of the line  and vice versa   Key Bindings   VI VIM  0 invokes beginning of line toggle 0   Emacs  Home  Brief  Shift Home  OS  X  Command Left    beginning of line extend  toggle True     Move to beginning of current line  adjusting the selection range to the new position   When toggle is True  moves to the end of the leading white space if already at the  beginning of the line  and vice versa   Key Bindings  Emacs  Shift Home  OS X  Ctrl   Shift Left    beginning of line text  toggle True     Move to end of the leading white space  if any  on the current line
313. how to choose the  remaining displayed editor  One of     current    Show current editor   close    Close current editor before unsplitting  recent    Change to recent buffer before unsplitting  recent or close    Change to recent buffer before closing    split  or close the current buffer if there is only  one split left     NOTE  The parameters for this command are subject to change in the future     488    F5  debug continue   Continue  or start  running  to next breakpoint  F5  search   Bring up the search manager in search mode    F6  replace   Bring up the search manager in replace mode    F6  step over   Step over current execution point    F7  start kbd macro   Start definition of a keyboard macro  If register None then  the user is prompted to enter a letter a z under which to file the macro  Otherwise   register    a    is used by default     F7  step into   Step into current execution point  or start debugging at first line    F8  execute kbd macro   Execute most recently recorded keyboard macro  If register  is None then the user is asked to enter a letter a z for the register where the macro is  filed  Otherwise  register    a    is used by default     F8  step out   Step out of the current function or method    F9  Multiple commands  first available is executed      e break set   Set a new regular breakpoint on current line    e break clear   Clear the breakpoint on the current line    Home  beginning of line text   Move to end of the leading white space  if any
314. ic mac iceland  Chinese  PRC  gbk  Turk    ish mac turkish  Greek iso8859 7  Baltic Languages iso8859    13  Cyrillic Languages mac cyrillic  Greek cp869  Cen    tral and Eastern European mac latin2  Japanese iso 2022    jp 1  Central and Eastern European cp852  Japanese iso    2022 jp 2  Chinese  ROC  big5  Urdu cp1006  Hebrew iso8859    8  Celtic Languages iso8859 14  Thai cp874  Cyrillic Lan    guages cp855  Western European iso8859 15  Greek mac    greek  Ukrainian koi8 u  Hebrew cp1255  Danish  Norwe    gian cp865  Cyrillic Languages iso8859 5  Turkish cp1026  West   ern European mac roman  Western European cp1140  Chi    nese  PRC  hz  Japanese shift jisx0213  Portuguese cp860  Chi   nese  ROC  cp950  US  Canada  and Others cp037  Japanese shift   jis 2004  Turkish cp1254  Japanese iso 2022 jp 3  He    brew cp862  Western European latin 1  Japanese euc jisx0213  Uni   code  UTF 16  big endian  utf 16 be  Japanese euc jis    2004  None  Central and Eastern European cp1250  Baltic Lan   guages iso8859 4  English ascii  Japanese shift jis  Use de    fault stdin   stdout encoding  Canadian English French cp863  Rus   sian koi8 r  Japanese iso 2022 jp  Unicode  UTF 8  utf    8  Greek cp737  Nordic Languages iso8859 10  Arabic iso08859    6  Chinese  PRC  gb2312  Unicode  UTF 7  utf 7  Ara    bic cp1256  Chinese  PRC  big5hkscs  Western European cp850  Es   peranto and Maltese iso8859 3  Turkish cp857  Korean cp949  US  Aus     244    tralia  New Zealand  S  Africa cp437  Uni
315. ich the debug process  will be run  For security purposes  Wing will reject connections if the host isn   t included  here      5  Configure any firewall on the system that Wing IDE is running on to accept a  connection on the server port from the system that the debug process will run on      6  Next install Wing IDE on the machine on which you plan to run your debug program   Creating an entire Wing IDE installation is the easiest approach  Alternatives are to  copy only the debug server code out of a Wing installation on the same type of OS or to  compile the debugger core from source code  For details  see Installing the Debugger  Core      7  Next  transfer copies of all your debug code so that the source files are available on  the host where Wing IDE will be running and at least the   pyc files are available on  the debug host     During debugging  the client and server copies of your source files must match or the  debugger will either fail to stop at breakpoints or stop at the wrong place  and stepping  through code may not work properly     Since there is no mechanism in Wing IDE for transferring your code  you need to use  NFS  Samba  FTP or some other file sharing or file transfer mechanism to keep the  remote files up to date as you edit them in Wing     If files appear in different disk locations on the two machines  you will also need to set  up a file location map  as described in File Location Maps      8  On your debug host  copy wingdbstub  py into the same
316. ide of quotes is a  number or internally defined constant such as None or Ellipsis     Integers can be displayed as decimal  hexadecimal  or octal  as controlled by the Integer  Display Mode preference     Complex values  such as instances  lists  and dictionaries  will be presented with an  angle bracketed type and memory address  for example   lt dict 0x80ce388 gt   and can be  expanded by clicking on the expansion indicator in the Variable column  The memory  address uniquely identifies the construct  If you see the same address in two places  you  are looking at two object references to the same instance     If a complex value is short enough to be displayed in its entirety  the angle bracketed  form is replaced with its value  for example     a        b     for a small dictionary  These  short complex values can still be expanded in the normal way     Upon expansion of complex data  the position or name of each sub entry will be displayed  in the Variable column  and the value of each entry  possibly also complex values  will  be displayed in the Value column  Nested complex values can be expanded indefinitely   even if this results in the traversal of cycles of object references     Once you expand an entry  the debugger will continue to present that entry expanded   even after you step further or restart the debug session  Expansion state is saved for the  duration of your Wing IDE session     When the debugger encounters a long string  it will be truncated in the Valu
317. ide the read only state used initially  for editors displaying files that are read only on disk     show all whitespace     Turn on all special marks for displaying white space and end of line  show eol       Turn on special marks for displaying end of line chars    336    show indent guides      Turn on special marks for displaying indent level  show indent manager      Display the indentation manager for this editor file  show whitespace      Turn on special marks for displaying white space  start kbd macro  register    a        Start definition of a keyboard macro  If register None then the user is prompted to enter  a letter a z under which to file the macro  Otherwise  register    a    is used by default  Key  Bindings  Normal  Ctrl    VI VIM  q invokes start kbd macro register None   Emacs   Ctrl X    Brief  FT  Visual Studio  Ctrl    OS X  Command      stop kbd macro       Stop definition of a keyboard macro Key Bindings  Normal  Ctrl    VI VIM  q  Emacs   Ctrl X    Brief  Shift F7  Visual Studio  Ctrl    OS X  Command      toggle line wrapping     Toggles line wrapping preference for all editors  toggle overtype       Toggle status of overtyping mode Key Bindings  Normal  Insert  VI VIM  Insert   Emacs  Insert  Brief  Insert  Visual Studio  Insert    uncomment out region  one_level True     Uncomment out the selected region if commented out  If one_level is True then each call  removes only one level of commenting  Key Bindings  Normal  Ctrl    Emacs  Ctrl C  U  Visua
318. if they are unhandled in the code  exception stop when printed      Stop only on exceptions when they are about to be printed  exception unhandled stop      Stop only on exceptions that are not handled by the code  expand tree more      Expand whole selected variables display subtree deeper    force var reload       360    Force refetch of a value from server   frame down      Move down the current debug stack Key Binding  F12  frame show       Show the position  thread and stack frame  where the debugger originally stopped Key  Bindings  Normal  Shift F11  VI VIM  Shift F11  Emacs  Shift F11  Brief  Shift F11   Visual Studio  Shift F11    frame up      Move up the current debug stack Key Binding  F11  hide detail      Show the textual value detail area  python shell clear      Clear python shell    python shell kill      Kill python shell process    python shell restart      Restart python shell    run build command      Execute the build command defined in the project  if any  run to cursor       Run to current cursor position Key Bindings  Normal  Alt F 5  VI VIM  Alt F 5  Emacs   Alt F 5  Brief  Alt F 5  Visual Studio  Alt F5    show detail      Show the textual value detail area   step into      Step into current execution point  or start debugging at first line Key Binding  F7    step out       361    Step out of the current function or method Key Binding  F8   step over      Step over current execution point Key Binding  F6   watch  style    ref       Watch selected va
319. ification     0  1  all     Default Value     Line Threshold    Defines the character length threshold under which a value will always be shown on a  single line  even if the value is a complex type like a list or map    Internal Name   debug line threshold    Data Specification     239   lt type int gt   Default Value     65    e Exceptions    Report Exceptions    Controls how Wing reports exceptions that are raised by your debug process  By default   Wing shows exceptions at the time that the exception traceback would normally be  printed  Alternatively  Wing can try to predict which exceptions are unhandled  and  stop immediately when unhandled exceptions are raised so that any finally clauses can  be stepped through in the debugger  Wing can also stop on all exceptions  even if  handled  immediately when they are raised  or it can wait to report fatal exceptions  as the debug process terminates  In the latter case Wing makes a best effort to stop  before the debug process exits or at least to report the exception post mortem  but one  or both may fail if working with externally launched debug processes  In that case  we  recommend using When Printed exception reporting mode     Internal Name    debug  exception mode  Data Specification     unhandled  always  never  printed   Default Value    printed    Report Logged Exceptions In When Printed Mode    Controls whether to stop on exceptions logged with logging exception if the exception  mode is set to When Printed       In
320. ighlighting for PHP source  use lexer plsql      Force syntax highlighting for PL SQL files    use lexer pov       340    Force syntax highlighting for POV ray tracer scene description language  use lexer properties      Force syntax highlighting for properties files   use lexer ps      Force syntax highlighting for Postscript   use lexer python       Force syntax highlighting for Python source Key Bindings  Normal  Ctrl 7 P  Emacs   Ctrl X L P  Visual Studio  Ctrl 7 P  OS X  Command 7 P    use lexer rc      Force syntax highlighting for RC file format  use lexer ruby      Force syntax highlighting for Ruby source  use lexer scriptol      Force syntax highlighting for Scriptol  use lexer sql       Force syntax highlighting for SQL Key Bindings  Normal  Ctrl 7 S  Emacs  Ctrl X L  S  Visual Studio  Ctrl 7 S  OS X  Command 7 S    use lexer tcl      Force syntax highlighting for TCL  use lexer vb      Force syntax highlighting for Visual Basic  use lexer vxml      Force syntax highlighting for VXML  use lexer xcode      Force syntax highlighting for XCode files    use lexer xml       341    Force syntax highlighting for XML files Key Bindings  Normal  Ctrl 7 X  Visual Studio   Ctrl 7 X  OS X  Command 7 X    use lexer yaml     Force syntax highlighting for YAML  zoom in       Zoom in  increasing the text display size temporarily by one font size Key Binding   Ctrl K P_Add    zoom out       Zoom out  increasing the text display size temporarily by one font size Key Binding   Ctrl K
321. igured by altering the size and style of the toolbar icons in  the toolbar  and whether or not text is shown in addition to or instead of icons  This is  controlled with the Toolbar Icon Size and Toolbar Icon Style preferences     Alternatively  the toolbar can be hidden completely with the Show Toolbar preference   Configuring the Editor Area    The options drop down menu in the top right of the editor area allows for splitting and  joining the editor into multiple independent panels  These can be arranged horizontally   vertically  or any combination thereof  When multiple splits are shown  all the open files  within the window are available within each split  allowing work on any combination of  files and or different parts of the same file     The options drop down menu can also be used to change between tabbed editors and  editors that show a popup menu for selecting among files  the latter can be easier to  manage with large number of files  and to move editors out to a separate window or  among existing windows when multiple windows are open     Configuring Tool Boxes    Each of the tool boxes can be also be split or joined into any number of sub panels along  the long axis of the notebook by clicking on the options drop down icon in the tab area    32    of the notebooks  right clicking also works   The number of tool box splits Wing shows  by default depends on your monitor size     The options drop down menu can also be used to duplicate tools  or move them around  
322. il stop mark command is issued  Unit defines what is selected  can be one  of char  line  or block  rectangle      Ctrl A  beginning of line   Action varies according to focus  Active Editor Com   mands  Move to beginning of current line  When toggle is True  moves to the end of    395    the leading white space if already at the beginning of the line  and vice versa    Toolbar  Search Commands  Move to the beginning of the toolbar search entry    Ctrl Alt    replace string regex   Replace all occurrences of a string from the cursor  position to end of file  The search string is treated as a regular expression     Ctrl Alt B  search sel backward   Search backward using current selection    Ctrl Alt Down  goto next bookmark current_file_only True    Go to the next  bookmark  or the first one if no bookmark is selected  Stays within the file in the current  editor when current_file_only is True     Ctrl Alt F  search sel forward   Search forward using current selection    Ctrl Alt F6  debug failed tests   Re run all the previously failed tests in the debug   ger     Ctrl Alt F7  debug last tests   Debug the last group of tests that were run     Ctrl Alt Left  goto previous bookmark   Go to the previous bookmark in the book   mark list  or the last one if no bookmark is selected  Stays within the file in the current  editor when current_file_only is True     Ctrl Alt R  isearch backward regex   Action varies according to focus  Active Edi   tor Commands  Initiate incremental reg
323. ile or project wide debug properties settings  This may lead to incorrect or in   complete analysis of some source  so it is best to use only one version of Python with  each Wing IDE project file     When Wing tries to find analysis information for a particular module or file  it takes the  following steps     e The path and same directory as the referencing module are searched for an im   portable module    151    152  e If the module is Python code  Wing statically analyses the code to extract infor   mation from it    e If the module is an extension module  Wing looks for a   pi interface description  file as described later in this section    e If the module cannot be found  Wing tries to import it in a separate process space  in order to analyze its contents    15 2  Static Analysis Limitations    The following are known limitations affecting features based on source analysis   e Argument number  name  and type is not determined for functions and methods  in extension modules    e Analysis sometimes fails to identify the type of a construct because Python code  doesn   t always provide clues to determine the data type  In these cases  you may  use isinstance and or interface files to inform the analyzer  as described below     e Types of elements in lists  tuples  and dictionaries are not identified     e Analysis information may be out of date if you edit a file externally with another  editor and don   t reload it in Wing  See section Auto reloading Changed Files  for
324. ill ignore changes that alter white space only     Internal Name    diff  ignore whitespace  Data Specification     lt boolean  O or 1 gt   Default Value     False    230    Empty Session Warning    Controls whether to warn when changing white space filtering causes sessions to become  empty of changes     Internal Name    diff  empty session warning  Data Specification     lt boolean  0 or 1 gt   Default Value     True    e Printing    Print Font     Posix only  Set the font name used to print Python files  One of Courier  Helvetica  or  Times Roman     Internal Name    edit  print font  Data Specification     Times Roman  Helvetica  Courier   Default Value    Courier    Print Size   Posix only  Set the font size used to print Python files     Internal Name     231  edit  print size  Data Specification    from 0 to 120   Default Value   10    Paper     Posix only  Set the paper size for printing  One of Letter  Legal  A3  A4  A5  B4  or  B5    Internal Name    edit  print paper  Data Specification     A3  A5  Legal  Letter  A4   Default Value    Letter    Print Spool Cmd     Posix only  Sets the command used to spool output produced by Wing   s printing facility   Format is text with embedded  s to indicate where the printed output file   s name should  be inserted  Set to None to use internal defaults  If the default is not working for you  and your system does not accept PDF files for printing  try    pdf2ps  s     kprinter    stdin     To rule out problems with buggy vers
325. ime in milliseconds between showing and hiding the caret when it is flashing   use 0 to disable flashing entirely    Internal Name   edit caret flash rate  Data Specification    from 0 to 2000   Default Value     500    e Indentation    Use Indent Analysis    Select when to use indent analysis  examination of current file contents  in order to  determine tab size and indent size  Either always in all files  only in Python files  or  never     Internal Name   edit  use indent analysis    Data Specification     216     always  never  python only     Default Value     always    Default Tab Size    Set size of tabs  in spaces  used in new files  Note that in Python files that contain mixed  space and tab indentation  tab size is always forced to 8 spaces  Use the Indentation  Manager to alter indentation in existing files     Internal Name     edit tab size    Data Specification      from 0 to 80     Default Value     Default Indent Size    Sets size of an indent  in spaces  used in new files  This is overridden in non empty  files  according to the actual contents of the file  In files with tab only indentation  this  value may be modified so it is a multiple of the configured tab size  Use the Indentation  Manager to alter indentation in existing files     Internal Name     edit indent size    Data Specification      from 0 to 80     Default Value     217    Default Indent Style    Set the style of indentation used in new files  This is overridden in non empty files  ac   cordi
326. in   Zoom in  increasing the text display size temporarily by one  font size    Ctrl KP_Enter  new line   Place a new line at the current cursor position    Ctrl KP_Subtract  zoom out   Zoom out  increasing the text display size temporarily  by one font size    Ctrl Left  beginning of line   Action varies according to focus  Active Editor Com   mands  Move to beginning of current line  When toggle is True  moves to the end of  the leading white space if already at the beginning of the line  and vice versa    Toolbar  Search Commands  Move to the beginning of the toolbar search entry    Ctrl Option Delete  backward delete word   Action varies according to focus  Ac   tive Editor Commands  Delete one word behind of the cursor   Toolbar Search Com   mands  Delete word behind the cursor    Ctrl Option Down  next line extend rect   Move to next screen line  adjusting the  rectangular selection range to new position  optionally repositioning character within  line  same    to leave in same horizontal position     start    at start  end    at end  or    fnb    for  first non blank char     Ctrl Option KP_Delete  backward delete word   Action varies according to fo   cus  Active Editor Commands  Delete one word behind of the cursor   Toolbar Search  Commands  Delete word behind the cursor    470    Ctrl Option Left  backward char extend rect   Move cursor backward one char   acter  adjusting the rectangular selection range to new position    Ctrl Option Right  forward char extend rec
327. ine    None or  double  sin    gle  low  none      tuple length 2 of   ypad    None or  1      tu     198    ple length 2 of   background    None or  lt type str gt      tu    ple length 2 of   indent    None or  1      tuple length 2 of   left_margin   ple length 2 of   font_family    None or  lt type str gt      tu    ple length 2 of   xpad    None or  1      tuple length 2 of   size    None o  large  xx large  large  small  xx small  x smal1           Default Value          calltip strong          font_family        sans       C weight        bold          fore   ground         000066          danger        background         ffffdd           foot    note          weight        bold           navigation link          fore    ground         909090          style        italic          weight        bold          ci    tation          weight        bold           admonition            list    items          xpad        1          ypad        1          title 4          size        small          un   derline        single      C foreground         000066          warn    ing        background         ffffdd           caution        back    ground         ffffdd           title 3          size        small      C weight        bold      C  ground         000066          title 0          size        xx large      C weight        bold       ground         000066          title 1          size        large      C weight        bold      Ef  ground         000066          image l
328. ines  app        Delete the line or range of lines that contain the current selection  This duplicates what  the editor command delete line does  Key Bindings  Brief  Alt D    insert debug print  app       Insert a print statement to print a selected variable name and value  along with the file  and line number     under to hyphen  editor       Change underscores to hyphens  dashes  in current selection  convert to lf lineends  app       Convert the current editor to use LF style line endings  insert text  text     Insert given text at current caret location  replacing any existing selected text    368    vi fold more      Approximation of zr key binding in vim Key Bindings  VI VIM  z r  convert to cr lineends  app       Convert the current editor to use CR style line endings   title case  editor       Change current selection to capitalize first letter of each word  watch selection      Add a debug watch for the selected text in the current editor  comment block toggle       Toggle block comment  with    at start  on the selected lines in editor  This is a  different style of block commenting than Wing implements by default  the default in  Wing is intended to work better with some of the other editor functionality     toggle vertical split       If editor is split  unsplit it and show the vertical tools panel  Otherwise  hide the vertical  tools and split the editor left right Assumes default windowing policy  combined toolbox   amp  editor windows   Thanks to Jonathan Marc
329. ing commands  in addition to those documented in  Common Version Control Operations  Please see the Git documentation for infor   mation on what these commands do when executed by the command line executable     List Branches  List all branches in local repository    Switch Branch    145    Switch to a different named branch  This runs git checkout  lt branch gt   Fetch Repository Changes   Fetch changes from a remote repository  This runs git fetch  lt remote gt   Pull Branch Changes    Pull changes on a branch from a remote repository to the local repository  This runs  git pull  lt remote gt   lt branch gt     Push Branch Changes    Push changes on a branch from the local repository to a remote repository  This runs  git push  lt remote gt   lt branch gt     14 6  Mercurial    Wing   s Mercurial support requires the hg command line executable to be installed sep   arately from Wing  Please see http   mercurial selenic com for information about Mer   curial  The hg executable may either be in your path or set it with the Mercurial  executable preference in the Version Control   Mercurial preferences group     The Mercurial support defines the following commands  in addition to those documented  in Common Version Control Operations  Please see the Mercurial documentation  for information on what these commands do when executed by the command line exe   cutable     Pull    Pull changes from a remote repository to a local one and optionally update the working  directory of the
330. ing debug program can be paused with the Pause item  in the Debug menu or with the pause tool bar button  This will stop at the current  point of execution of the debug program     e At any time during a debug session  the Stop Debugging menu item or toolbar  item can be used to force termination of the debug program  This option is disabled  by default if the current process was launched outside of Wing  It may be enabled  for all local processes by using the Kill Externally Launched preference     When stopped on a given line of code  execution can be controlled as follows from the  Debug menu or tool bar     Step Over will step over a single byte code operation in Python  This may not leave  the current line if it contains something like a list comprehension or single line for loop     Step Into will attempt to step into the next executed function on the current line of  code  If there is no function or method to step into  this command acts like Step Over     Step Out will complete execution of the current function or method and stop on the  first instruction encountered after returning from the current function or method     Continue will continue execution until the next breakpoint  exception  or program  termination    Run To Cursor will run to the location of the cursor in the frontmost editor  or to the  next breakpoint  exception  or program termination     Attach and Detach  only in Wing IDE Professional  may be used to change the de   bugger between different debu
331. ing position     Whenever debugging threaded code  please note that the debugger   s actions may alter  the order and duration that threads are run  This is a result of the small added overhead   which may influence timing  and the fact that the debugger communicates with the IDE  through a TCP IP connection     Selecting Threads to Debug    120    Currently  the only way to avoid stopping all threads in the debugger is to launch your  debug process from outside Wing  import wingdbstub  and use the debugger API   s  SetDebugThreads   call to specify which threads to debug  All other threads will be  entirely ignored  This is documented in Debugging Externally Launched Code and  the API is described in Debugger API    An example of this can be seen in the file DebugHttpServer  py that ships with Wing   s  support for Zope and Plone  To see this  unpack the WingDBG archive found inside the  zope directory in your Wing installation     Note  however  that specifying a subset of threads to debug may cause problems in some  cases  For example  if a non debugged thread starts running and does not return control  to any other threads  then Wing   s debugger will cease to respond to the IDE and the  connection to the debug process will eventually be closed  This is unavoidable as there  is no way to preemptively force the debug enabled threads to run again     12 13  Managing Exceptions    By default  Wing   s debugger stops at exceptions when they would be printed by the  Python int
332. inistrator by default     18 3  Trouble shooting Failure to Debug    If you have trouble debugging with Wing IDE  select which of the following most closely  describes the problem you are seeing     e Debugging fails to start  e Debugger doesn   t stop on breakpoints  e Debugger doesn   t stop on exceptions    e Debugger reports exceptions not seen outside Wing    18 3 1  Failure to Start Debug    Wing may fail to start the debug process in certain cases  If this happens  it often helps  to try debugging a small test such as the following     174    print   test1    print   test2      Use the Start   Continue command from the Debug menu to cause Wing IDE to  attempt to run only as far as the first line of your code  This rules out possible problems  caused by specific code     Then check through the following common problems  For information on obtaining  additional information from the debug sub system  refer to the Diagnostic Output  section     1  Wing   s debugger uses a TCP IP protocol to communicate with the IDE  Make sure  that TCP IP is installed and configured on your machine  If you are running a custom   built copy of Python  verify that the socket module is available     2  If Wing says it can   t find Python or if you   ve got multiple versions of Python on your  system  make sure you   ve got your Project Properties set up to contain a valid inter   preter  see Source   Show Analysis Stats menu item to verify that the right interpreter  is being found      3  En
333. ink            calltip type          font_family        sa  poc          font_family        sans           hint          background         ffffdd           adm  title          weight        bold           tip          background         ffffdd           lit   eral      C foreground         227722          weight        bold          note            field      phasis          style        italic           calltip class symbol          font_family        s  ground         0000ff          attention          background         ddddff           calltip   def symbol          font_family        sans      C weight        bold      C fore    ground         007f7f          link      C underline        single          fore    ground        3333ff         strong      C weight      bold       C fore    ground         000066          marked list items          weight        bold      C fore   ground         ff  3333          calltip def          font_family        sans      C weight        b  ground         00007f          calltip doc          font_family        sans           de   fault            docinfo header          weight        bold           transi    tion      C justification        left           calltip arg          font_family        sans      arg current          font_family        sans          background         ff    bbbb          caption          style        italic           error        back    ground         ffdddd           title 2          size        medium        
334. ion     start    at start     end     at end  or    fnb    for first non blank char     Ctrl Left  backward word   Action varies according to focus  Active Editor Com   mands  Move cursor backward one word  Optionally  provide a string that contains  the delimiters to define which characters are part of a word  Gravity may be  start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move backward one word    Ctrl Minus  kill buffer   Close the current text file   Ctrl Next  forward page   Move cursor forward one page  Ctrl PageDown  end of document   Move cursor to end of document  Ctrl PageUp  beginning of document    Ctrl Page_Down  next document   Move to the next document alphabetically in  the list of documents open in the current window    Ctrl Page_Up  previous document   Move to the previous document alphabetically  in the list of documents open in the current window    Ctrl Pointer_Button1  goto clicked symbol defn   Goto the definition of the  source symbol that was last clicked on    Ctrl Prior  backward page   Move cursor backward one page    Ctrl R  initiate repeat 4   Enter a sequence of digits indicating number of times to  repeat the subsequent command or keystroke     Ctrl Return  new line   Place a new line at the current cursor position    Ctrl Right  forward word   Action varies according to focus  Active Editor Com   mands  Move cursor forward one word  Optionally  provide a string that contains t
335. ion    close      Emacs  Ctrl X 1  Brief   F4    Editor Replace Mode Commands    Commands available only when editor is in replace mode  used for VI bindings and  possibly others     enter browse mode  provisional False     Enter editor browse mode Key Bindings  VI VIM  Esc    Editor Split Commands    Commands for a particular editor split  available when the editor in that split has the  keyboard focus  Additional commands affecting the editor   s content are defined sepa   rately     activate file option menu       Activate the file menu for the editor  Key Bindings  Normal  Ctrl 1  VI VIM  Ctrl 1   Emacs  Ctrl 1  Brief  Ctrl 1  Visual Studio  Ctrl 1  OS X  Command 1    311    grow split horizontally      Increase width of this split   grow split vertically      Increase height of this split Key Bindings  VI VIM  Ctrl W    shrink split horizontally      Decrease width of this split   shrink split vertically      Decrease height of this split Key Bindings  VI VIM  Ctrl W    visit history next       Move forward in history to next visited editor position Key Bindings  Normal  Alt Right   VI VIM  Alt Right  Emacs  Alt Right  Brief  Alt Right  Visual Studio  Alt Right  OS  X  Ctrl      visit history previous       Move back in history to previous visited editor position Key Bindings  Normal  Alt   Left  VI  VIM  Alt Left  Emacs  Alt Left  Brief  Alt Left  Visual Studio  Alt Left  OS  X  Ctrl Comma    Editor Visual Mode Commands    Commands available only when the editor is in v
336. ion varies according to focus  Active Editor Commands  Cut  selected text   Search Manager Instance Commands  Cut selected text   Toolbar Search  Commands  Cut selection    Shift Delete  cut selection or line   Cut the current selection or current line if there  is no selection  The text is placed on the clipboard     Shift Down  next line extend   Move to next screen line  adjusting the selection  range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start  end    at end  or    fnb    for first non blank char     Shift End  end of line extend   Action varies according to focus  Active Editor Com   mands  Move to end of current line  adjusting the selection range to new position      460    Toolbar Search Commands  Move to the end of the toolbar search entry  extending the  selection    Shift F1  move focus   Move the keyboard focus forward within the Window to the  next editable area    Shift F11  frame show   Show the position  thread and stack frame  where the de   bugger originally stopped    Shift F11  step out   Step out of the current function or method    Shift F2  Multiple commands  first available is executed      e enter fullscreen   Hide both the vertical and horizontal tool areas  and toolbar  saving previous state so it can be restored later with  exit_fullscreen    e exit fullscreen   Restore previous non fullscreen state of all tools and  tool bar    Shift F3  search backward   Sear
337. ions of kprinter  try    pdf2ps  s     lpr    or  simply    lpr  s    instead     Internal Name   edit  print spool cmd    Data Specification     232    one of  None   lt type str gt    Default Value    None    Print Python as Text     Posix only  Set to true to print Python files faster but without syntax highlighting   Otherwise  the internal Python pretty printing facility is used     Internal Name    edit  print python as text  Data Specification     lt boolean  0 or 1 gt     Default Value     Text Print Cmd     Posix only  Sets the command that is issued to print non Python text files  Format is  text with embedded  s to indicate where the printed file   s name should be inserted    Internal Name    edit  text print cmd  Data Specification     lt type str gt   Default Value     enscript  E  s    233  e Advanced    Auto Brace Match  Set to true to automatically match braces next to the cursor or as they are typed     Internal Name   edit auto brace match  Data Specification    lt boolean  O or 1 gt     Default Value     Transient Threshold    Maximum number of transient  non sticky  editors to keep open at one time  in addition  to any that are visible on screen    Internal Name   gui max non sticky editors  Data Specification    lt type int gt     Default Value     Selection Policy    This is a map from actions to policy for leaving a range selected after the action  takes place  Possible actions are    indent region        outdent region        indent to match         c
338. is feature  turn off the auto completer preference Include Snippets in  Completer     Snippet Syntax    Snippets are text files that contains markers where user provided values should be in   serted  These markers are similar to Python   s   varname s string substitution syntax  but instead of containing only a variable name  the body of the marker contains richer  argument collection information in the following format  with vertical bars dividing each  value       varname typeldefault s    Type and default are optional but the vertical bars must be present if omitting type but  including a default  To write a snippet that includes Python style string formats  escape  each   by writing    instead     Each part is defined as follows     varname    The name of the variable  Since arguments are collected inline  this name  is used internally only  Future extensions may display this name to the user  by replac   ing underscores with spaces and capitalizing words  for example    user_name    would be  rendered    User Name         65    Any number of the following special characters may be prefixed to the variable name to  control how it is used     Exclamation point     indicates that the value should be included in the field list during  data collection even if a default value can be found for it  Otherwise  the default is  simply placed into the snippet and tabbing among fields will skip it     At sign     indicates that the value should be wrapped if it exceeds the configured
339. is includes line number  change  summary  and Python scope name when applicable  Selecting a change from this menu  will jump to it     The following types of difference merge sessions are available     e Compare Files    Compare two selected files     e Compare Directories    Compare two selected directories  The Diff Merge  tool  which will be shown while the multi file session is active  will display a list  of files and estimated degree of difference in each file pair  Clicking on the list will  display the first difference in the selected file pair  The selection on the list will  also update as you move through the difference list     e Compare Visible Files    Compare the two visible files  This is only available  when two editor splits are shown and two different files are open in them     e Compare Buffer with Disk    Compare the current file and its contents on disk   This is only available when the current file has unsaved edits     85    86  e Compare Recent    This provides a sub menu for quick access to recently per   formed comparisons     e Compare to Repository    When a file is in checked into one of the version  control systems that Wing IDE supports  this item can be used to compare the  working copy of the file with the corresponding revision in version control     Diff Merge Options    The Difference and Merge menu also contains two items that control the action of the  diff merge sessions     e Lock Scrolling    When this is checked  Wing keeps the scro
340. isual mode  used for VI bindings and  some others     enter browse mode     Enter editor browse mode Key Bindings  VI VIM  Esc  enter insert mode  pos    delete sel        Enter editor insert mode Key Bindings  VI VIM  A invokes enter insert   mode pos    after        enter visual mode  unit    char        Alter type of editor visual mode or exit back to browse mode  Unit should be one of     char        line     or  block        312    exit visual mode     Exit visual mode and return back to default mode Key Binding  Esc  vi command by name       Execute a VI command  implements         commands from VI  Key Bindings  VI VIM       Active Editor Commands    Commands that only apply to editors when they have the keyboard focus  These com   mands are also available for the Python Shell  Debug Probe  and Debug I O tools  which  subclass the source editor  although some of the commands are modified or disabled as  appropriate in those contexts     activate symbol option menu 1       Activate the 1st symbol menu for the editor  Key Bindings  Normal  Ctrl 2  VI  VIM   Ctrl 2  Emacs  Ctrl 2  Brief  Ctrl 2  Visual Studio  Ctrl 2  OS X  Command 2    activate symbol option menu 2       Activate the 2nd symbol menu for the editor  Key Bindings  Normal  Ctrl 3  VI VIM   Ctrl 3  Emacs  Ctrl 3  Brief  Ctrl 8  Visual Studio  Ctrl 3  OS X  Command 3    activate symbol option menu 3       Activate the 3rd symbol menu for the editor  Key Bindings  Normal  Ctrl 4  VI VIM   Ctrl 4  Emacs  Ctrl 4
341. ith the SVN  executable preference in the Version Control   SVN preferences group     The Subversion support works best if usernames and passwords are handled by another  program such as ssh agent  pageant  or another ssh agent  For details on this see  Setting up SSH     Using SSH is preferred because there is no safe way to interact with the svn executable  to pass it a username and password  The   username and   password command line  arguments can be used  but will expose the password to anyone on the system who can  list process command lines  If there is no alternative  these can be specified in the Extra  global arguments preference in the Version Control   SVN preferences group     Subversion defines the following commands  in addition to those documented in Com   mon Version Control Operations     Revert    147  This operation will dispose of any local changes and revert the local files to match the  current revision in the repository   Resolved    This is used to indicate that a conflict that arose during update has been resolved  Files  that are in conflict cannot be checked in with commit until the resolved operation is  completed     Blame Praise  This can be used to see the revision number and author for every line in a file   Last Revision Diff    This shows the differences for the changes that were most recently checked in for a files     14 9  Version Control Configuration    This section provides additional information for users that have not already started
342. ition to the  operations in the Source menu  which allow for the definition of bookmarks with names  longer than one character     Emacs  Brief  and other key bindings also support bookmarks  However  bookmark  functionality for VI  Emacs  and Brief key bindings is omitted in Wing IDE Personal     4 9  Code Snippets    Wing Professional provides support for defining and using code snippets for commonly  reused bits of code and other text  Snippets might be used for standard file skeletons   comment formats  dividers  class definitions  function definitions  HTML tables  and  much more  Variants of snippets may be defined for different contexts  for example to  include or omit self in a def depending on whether or not it is a method in a class     Wing   s snippet functionality is implemented in the Snippets tool panel and by providing  the snippets by name in the editor   s auto completer  Key bindings can be assigned to  snippets so that the snippets tool does not have to be visible in order to use a snippet     Although Wing comes with a few example snippets  in most cases users will want to  define their own  to match their coding conventions and preferences     User Interface    The Snippets tool panel provides the means for adding  editing  removing  and exe   cuting snippets  and also assigning key bindings for pasting selected snippets into the  current editor  Most of the functionality is provided by the options menu in the top  right and by right clicking on the snip
343. ixal  text x nncrontab  text postscript  text x   django  text x asn1  text x javascript  text x fortran  text x   vhdl  text x escript  text x lisp  text x makefile  text x   diff  text x ms idl  text x cpp source  text x asm  text x   ruby  text x abaqus  text x ada  text x d  text x idl  text x   nsis  text x scriptol  text x perl  text x java source  text x   docbook  text x rc  text x verilog  text x c source  text plain  text x   Spice  text x zope pt  text x lout  text x matlab  text x   inno setup  text html  text x forth  text x tcl  text x vb   source  text x pascal  text x yaml  text x conf  text x ms   makefile  text x properties  text css      Default Value           204    File Sets    Defines file sets by specifying filters to apply to file names for inclusion and exclusion  from a larger set  such as scanned disk files or all project files      Each file set is named and contains one list of inclusion patterns and one list of exclusion  patterns  The patterns can be a wildcard on the file name  wildcard on a directory name   or a mime type name     Only a single pattern needs to be matched for inclusion or exclusion  Ex   clusion patterns take precedence over inclusion patterns  so any match on  an exclusion pattern will always exclude a file from the set  File sets are  used in constraining search  adding project files  and for other operations on  collections of files     Internal Name   main file sets  Data Specification      dict  keys   lt type str gt   v
344. k char     Ctrl Shift End  end of document extend   Move cursor to end of document  ad   justing the selection range to new position    401    Ctrl Shift F3  search sel backward   Search backward using current selection  Ctrl Shift F5  debug stop   Pause free running execution at current program counter  Ctrl Shift F6  debug all tests   Debug all the tests in testing panel     Ctrl Shift F7  debug current tests   Runs the current test or tests  if possible  The  current tests are determined by the current position in the active view     Ctrl Shift F9  Multiple commands  first available is executed      e break disable all   Disable all breakpoints  e break enable all   Enable all breakpoints    Ctrl Shift Home  start of document extend   Move cursor to start of document   adjusting the selection range to new position    Ctrl Shift I  add current file to project   Add the frontmost currently open file to  project    Ctrl Shift ISO_Left_Tab  begin visited document cycle move_back False     Start moving between documents in the order they were visited  Starts modal key  interaction that ends when a key other than tab is seen or ctrl is released     Ctrl Shift KP_Down  next line extend   Move to next screen line  adjusting the  selection range to new position  optionally repositioning character within line  same    to  leave in same horizontal position     start    at start     end    at end  or    fnb    for first non blank  char     Ctrl Shift K P_End  end of document extend   
345. key equivalent is built from names listed in the Key Names  section  These names can be combined as follows     1  A single unmodified key is specified by its name alone  for example   gt Down    for the down arrow key     2  Modified keys are specified by hyphenating the key names  for ex   ample    shift Down    for the down arrow key pushed while shift is  held down  Multiple modifiers may also be specified  as in     ctr1   shift Down        3  Multi key combinations can be specified by listing multiple key  names separated by a space  For example  to define a key equiv   alent that consists of first pushing ctrl x and then pushing the a  key by itself  use    ctrl x a    as the key sequence     The command portion of the key equivalency definition may be any of the commands  listed in section Command Reference  Use None to remove the given key equivalent  entirely     36  Specifying a key binding that already exists in the default key binding simply replaces  that binding with your override   Examples  Here is an example of adding a key binding for a command  If the command already  has a default key binding  both bindings will work      Ctrl X P        debug attach     This example removes a key equivalent entirely      gt Ctr1 C Ctrl C     None    These can be combined to changes the key binding for a command without retaining its  default key binding        Ctrl C Ctrl C     None     Ctrl G         debug continue       Wing always retains only the last key binding for
346. king on it and editing it  directly on the list     e Ignores Left    The number of ignores left for a breakpoint  if a debug process  exists     e Hits    The number of times the breakpoint has been reached in the current debug  run  if any      To visit the file and line number where a breakpoint is located  double click on it in the  list or select Show Breakpoint from the context menu obtained by right clicking on the  surface of the Breakpoints tool  Additional options are also available from this context  menu     107  Keyboard Modifiers for Breakpoint Margin    Clicking on the breakpoint margin will toggle to insert a regular breakpoint or remove  an existing breakpoint  You can also shift click to insert a conditional breakpoint  and  control click to insert a breakpoint and set an ignore count for it     When a breakpoint is already found on the line  shift click will disable or enable it   control click will set its ignore count  and shift control click will set or edit the breakpoint  conditional     12 5  Starting Debug    There are several ways in which to start a debug session from within Wing     e Choose Start   Continue from the Debug menu or push the Debug icon in the  toolbar  This will run the main debug file if one has been defined  described in  Setting a Main Debug File   or otherwise the file open in the frontmost editor  window  Execution stops at the first breakpoint or exception  or upon program  completion     e Choose Step Into from the Debug menu
347. kpoints  e break enable all   Enable all breakpoints    Ctrl Shift G  search backward   Search again using the search manager   s current  settings in backward direction    453    Ctrl Shift H  batch replace   Display search and replace in files tool     Ctrl Shift Home  start of document extend   Move cursor to start of document   adjusting the selection range to new position    Ctrl Shift I  add current file to project   Add the frontmost currently open file to  project    Ctrl Shift ISO_Left_Tab  begin visited document cycle move_back False     Start moving between documents in the order they were visited  Starts modal key  interaction that ends when a key other than tab is seen or ctrl is released     Ctrl Shift KP_Down  next line extend   Move to next screen line  adjusting the  selection range to new position  optionally repositioning character within line  same    to  leave in same horizontal position     start    at start     end    at end  or    fnb    for first non blank  char     Ctrl Shift KP_End  end of document extend   Move cursor to end of document   adjusting the selection range to new position    Ctrl Shift KP_Home  start of document extend   Move cursor to start of docu   ment  adjusting the selection range to new position    Ctrl Shift K P_Left  backward word extend   Action varies according to focus  Ac   tive Editor Commands  Move cursor backward one word  adjusting the selection range  to new position  Optionally  provide a string that contains the deli
348. l Studio  Ctrl K Ctrl U  OS X  Command        uncomment out toggle  style None     Remove commenting from the selected lines  if any  This command is not available if  the lines are not commented out     use lexer ada     Force syntax highlighting Ada source    use lexer apache conf       337    Force syntax highlighting for Apache configuration file format  use lexer asm      Force syntax highlighting for Masm assembly language  use lexer ave      Force syntax highlighting for Avenue GIS language  use lexer baan      Force syntax highlighting for Baan   use lexer bash      Force syntax highlighting for bash scripts  use lexer bullant      Force syntax highlighting for Bullant  use lexer by doctype      Use syntax highlighting appropriate to the file type  use lexer cpp       Force syntax highlighting for C C   source Key Bindings  Normal  Ctrl 7 C  Emacs   Ctrl X L C  Visual Studio  Ctrl 7 C  OS X  Command 7 C    use lexer css2      Force syntax highlighting for CSS2  use lexer cython      Force syntax highlighting for Cython source  use lexer diff      Force syntax highlighting for diff cdiff files  use lexer django      Force syntax highlighting for Django template file  use lexer dos batch       Force syntax highlighting for DOS batch files    338    use lexer eiffel      Force syntax highlighting for Eiffel source  use lexer errlist      Force syntax highlighting for error list format  use lexer escript      Force syntax highlighting for EScript  use lexer fortran      F
349. l position     start    at start     end    at  end  or    fnb    for first non blank char     426    Browse    forward char wrap 0    Action varies according to focus  Active Editor  Commands  Move cursor forward one character   Toolbar Search Commands  Move  forward one character    Browse m  vi set bookmark   Set a bookmark at current location on the editor using  the next key press as the name of the bookmark     Browse n  isearch repeat   Repeat the most recent isearch  using same string and  regex text  Reverse direction when reverse is True     Browse p  paste register   Paste text from register as before or after the current  position  If the register contains only lines  then the lines are pasted before or after  current line  rather than at cursor   If the register contains fragments of lines  the text  is pasted over the current selection or either before or after the cursor  Set pos   1  to paste after  or  1 to paste before  Set indent 1 to indent the pasted text to match  current line  Set cursor  1 to place cursor before lines or cursor 1 to place it after lines  after paste completes     Browse q  Multiple commands  first available is executed      e start kbd macro register None    Start definition of a keyboard  macro  If register None then the user is prompted to enter a letter a z  under which to file the macro  Otherwise  register    a    is used by default     e stop kbd macro   Stop definition of a keyboard macro    Browse r  replace char  line_mode    
350. l whether or not the project  prefers a particular line ending style  line feed  carriage return  or carriage return   line  feed   and how to enforce that style  if at all  By default  projects do not enforce a line  ending style but rather insert new lines to match any existing line endings in the file     Preferred Indent Style and Indent Style Policy control whether or not the project  prefers a particular type of indentation style for files  spaces only  tabs only  or mixed  tabs and spaces   and how to enforce that style  if at all  By default  projects do not  enforce an indent style but rather insert new lines to match any existing indentation in    the file     53  Extensions    The Extensions tab of Project Properties is used to control revision control and other  add ons on a per project basis     Enable Revision Control and Revision Control System are used to turn on a  particular revision control integration for this project  Currently Subversion  CVS  and  Perforce are supported     Enable Zope2 Plone Support and Zope2 Instance Home are used for Zope 2 x  and Plone projects to provide the Instance Home directory used by Zope  This is needed  because Zope 2 x implements import magic that works differently from Python   s default  import and thus adding the instance home directory to PYTHONPATH is not sufficient   Wing   s source analyzer needs this extra clue to properly find and process the Zope  instance specific sources     When this option is activated  Wing 
351. lder versions of Wing and  operates completely independently     e Licensing    Licenses for Wing IDE 1 x through 3 x must be upgraded before they can be activated  for Wing IDE 4 x     Wing IDE 2 x and 3 x licenses can be upgraded in our online store  Wing IDE 1 x  licenses must be upgraded by contacting sales wingware com    e Converting Projects    Wing IDE 2 x and 3 x project files will be converted as they are opened and marked  untitled so they can be saved under a new name  You should not overwrite your old  project files as long as you still plan to use your earlier version of Wing IDE with them   Wing IDE 4 x project files cannot be read by earlier versions of Wing     When version 2 x projects are converted  Wing will automatically replace your old  project   s file list with one or more auto updating directory entries  You may wish to  prune the project   s contents after conversion  by adding and removing items  or editing  their settings by right clicking on them and selecting Directory Properties     1 11 2  Fixing a Failed Upgrade    In rare cases upgrading may fail to overwrite old files  resulting in random or bizarre  behaviors and crashing  The fix for this problem is to completely uninstall and manually  remove remaining files before installing the upgrade again     Windows    22    To uninstall on Windows  run the Add Remove Programs control panel to uninstall  Wing IDE  Then go into the directory where Wing was located and manually remove  any remaining 
352. le in the module name space before invoking Python   s exec or eval  This will  allow Wing   s debugger to map code objects to the source you   ve temporarily written to  disk      2  Running without saving will lead to incorrect display of breakpoints and run position  because the debug process runs against the on disk version of the source file  Wing will  indicate in the Messages tool and Stack Data status indicator that some files are out of  sync so this case should only occur if you ignore its warnings      3  You cannot run the debug program using the  0 or  00 optimization options for the  Python interpreter  This removes information about line numbers and source file names   making it impossible to stop at breakpoints or step through code      4  There are several cases where Wing may fail to stop at breakpoints or exceptions  or  may fail to find source files corresponding with breakpoints or exception points  All of  these are caused by storage of incorrect file names in   pyc files     e Moving   pyc files on disk after they are generated invalidates the file  name stored in the file if it is a partial relative path  This happens if  your PYTHONPATH or sys path contains partial relative path names     e A similar problem may result from use of compileall py and some  other utilities that don   t record a correct filename in the   pyc file     e If you run the same code twice using different paths to the same working  directory  as is possible on Linux Unix with sy
353. le lines    Evaluate whole lines from editor rather than the exact selection  when a selection from  the editor is sent to the Python Shell tool     Internal Name     285    debug shell eval whole lines    Data Specification      lt boolean  O or 1 gt     Default Value     debug shell pasted line threshold    The number of lines after which the Python Shell will just print a summary rather than  the actual lines of code pasted  dragged  or other transferred to the shell     Internal Name     debug shell pasted line threshold    Data Specification      lt type int gt     Default Value     10    debug show exceptions tip    Used internally to show information about exception handling to new users  Once turned  off  it is never turned on again    Internal Name     debug  show exceptions tip    Data Specification      lt boolean  O or 1 gt     286    Default Value     debug stop timeout    Number of seconds to wait before the debugger will stop in its own code after a pause  request is received and no other Python code is reached     Internal Name     debug  stop timeout    Data Specification      lt type int gt    lt type float gt     Default Value     3 0    debug use members attrib    Set this to true to have the debug server use the _members_ attribute to try to interpret  otherwise opaque data values  This is a preference because some extension modules  contain bugs that result in crashing if this attribute is accessed  Note that _members_  has been deprecated since Python v
354. le status of overtyping mode    KP_Delete  forward delete char   Action varies according to focus  Active Editor  Commands  Delete one character in front of the cursor   Toolbar Search Commands   Delete character in front of the cursor    408    KP_Down  next line   Move to screen next line  optionally repositioning character  within line     same    to leave in same horizontal position     start    at start     end    at end  or   fnb    for first non blank char     KP_End  end of line   Action varies according to focus  Active Editor Commands   Move to end of current line  Toolbar Search Commands  Move to the end of the toolbar  search entry    KP_Enter  new line   Place a new line at the current cursor position    KP_Home  beginning of line   Action varies according to focus  Active Editor Com   mands  Move to beginning of current line  When toggle is True  moves to the end of  the leading white space if already at the beginning of the line  and vice versa    Toolbar  Search Commands  Move to the beginning of the toolbar search entry    KP_Home  beginning of line text   Move to end of the leading white space  if any   on the current line  If toggle is True  moves to the beginning of the line if already at the  end of the leading white space  and vice versa      KP_Insert  toggle overtype   Toggle status of overtyping mode    KP_Left  backward char   Action varies according to focus  Active Editor Com   mands  Move cursor backward one character   Toolbar Search Commands  Mo
355. leName to define the search path and file name  used to find a wingdebugpw file for the debugger  The environment variables    126    WINGDB_PWFILEPATH and WINGDB_PWFILENAME will override these settings  The  file path should be a Python list of strings if set in wingdbstub py or a list of  directories separated by the path separator  os pathsep  when sent by environ   ment variable  The string   lt winguserprofile gt  may be used to specify Wing   s  User Settings Directory for the user that the debug process is running as  The  password file name is usually wingdebugpw but may be changed in cases where  this naming is inconvenient     e Optionally  set WINGHOME  which is the location of the Wing IDE distribution   s  home directory  This is set up during installation  but may need to be altered  if you are running Wing from source or copied the debugger binaries over from  another machine     Setting any of the above described environment variable equivalents will override the  value given in the wingdbstub  py file     13 1 3  Debugger API    A simple API can be used to control debugging more closely  once you have imported  wingdbstub py the first time  as was described in section Importing the Debugger     This is useful in cases where you want to be able to start and stop debugging on the fly  several times during a debug run  for example to avoid debug overhead except within a  small sub section of your code  It can also be useful in embedded scripting environments   p
356. lidate   django sql  appname    Run manage py sql for given app name and display the output in a scratch buffer   django show docs      Show documentation for using Wing IDE and Django together    django start project  django_admin  parent_directory  sitename  superuser  supe   ruser_email  superuser_password     Start a new Django project with given site name and superuser account  This will prompt  for the location of django admin py  the parent directory  and the site name to use  It  then runs django admin py startproject  edits settings py fields DATABASE_ENGINE  and DATABASE_NAME to use sqlite3 by default  adds django contrib admin to IN   STALLED_APPS in settings py  runs syncdb  creating superuser account if one was  given   sets up the default admin templates by copying base_site html into the project   and then offers to create a new project in Wing and run the django setup wing project  command to configure the Wing IDE project for use with the new Django project     django run tests to scratch buffer     Run manage py tests with output in a scratch buffer  django setup wing project       Sets up a Wing project to work with an existing Django project  This assumes that  you have already added files to the project so that your manage py and settings py files  are in the project  It sets up the Python Executable project property  sets    manage py  runserver   noreload 8080    as the main debug file  sets up the Wing project environment  by defining DJANGO_SITENAME a
357. line  lineno  lt numeric modifier gt      Position cursor at start of given line number Key Bindings  Normal  Ctrl L  Emacs   Alt G  Brief  Alt G  Visual Studio  Ctrl G  OS X  Command L    332    goto line select  lineno  lt numeric modifier gt    Scroll to and select the given line number  goto nth line  lineno  lt numeric modifier  default 1 gt   cursor    start        Position cursor at start of given line number  1 first   1   last   This differs from goto   line in that it never prompts for a line number but instead uses the previously entered  numeric modifier or defaults to going to line one  The cursor can be positioned at  start        end     or    fnb    for first non blank character  Key Bindings  VI VIM  g g invokes  goto nth line cursor  fnb        goto nth line default end  lineno  lt numeric modifier  default 0 gt   cursor    start        Same as goto_nth_line but defaults to end of file if no lineno is given Key Bindings   VI VIM  Shift G invokes goto nth line default end cursor  fnb        goto percent line  percent  lt numeric modifier  default 0 gt   cursor    start        Position cursor at start of line at given percent in file  This uses the previously entered  numeric modifier or defaults to going to line one  The cursor can be positioned at    start         end     or    fnb    for first non blank character  or in VI mode it will do brace matching  operation to reflect how VI overrides this command  Key Bindings  VI VIM    invokes  goto percent line c
358. links just fine      For more information  see the Debugger Limitations section     18 3 3  Failure to Stop on Exceptions    Failure to stop on exceptions is most commonly caused by the same factors that can  cause failure to stop on breakpoints  The rest of this section covers additional  possible causes of failure to stop on exceptions     By default  Wing only stops on exceptions for which a traceback is printed when the  code is run outside of the debugger  If your code runs within a catch all try except  clause written in Python  as in some GUI main loops or in an environment like Zope    Wing may not report all exceptions encountered in your debug process     In some cases  altering the Exception Reporting preference will work  In others  it  may suffice to set a breakpoint in the top level exception handler     An alternative is to recode your app to make your catch all exception handler optional  as in the following example     import os      No handler when running in Wing   s debugger  if os environ has_key    WINGDB_ACTIVE       dosomething         Handle unexpected exceptions gracefully at other times  else   try     177    dosomething     except     handler here    Note that environments such as wxPython  PyGTK  and others include catch all han   dlers for unexpected exceptions raised in the main loop  but those handlers cause the  exception traceback to be printed and thus will be reported correctly by Wing without  any modification to the handler     18 3 4  Ex
359. lit  Browse Ctrl W Browse v  split horizontally   Split current view horizontally   Browse Ctrl X  vi ctrl x    Browse Ctrl Y  scroll text up move_cursor False    Scroll text up a line w o  moving cursor   s relative position on screen  Repeat is number of lines or if  gt 0 and   lt 1 0 then percent of screen  Set move_cursor to False to leave cursor in current position  within the source  otherwise it is moved so the cursor remains on same screen line     Browse Ctrl    nth document   Move to the nth document alphabetically in the list  of documents open in the current window    420    Browse Ctrl h  backward char   Action varies according to focus  Active Editor  Commands  Move cursor backward one character   Toolbar Search Commands  Move  backward one character    Browse Esc  clear move command   Clear any pending move command action  as  for VI mode    Browse F  search char dir 1  single_line 1    Search for the given character   Searches to right if dir  gt  0 and to left if dir  lt  0  Optionally place cursor pos char   acters to left or right of the target  e g   use  1 to place one to left   If repeat  gt  1  the  Nth match is found  Set single_line 1 to search only within the current line     Browse G Browse Shift I  enter insert mode pos    sol       Enter editor insert  mode    Browse Grave  vi goto bookmark   Goto bookmark using single character name  defined by the next pressed key    Browse I  enter insert mode pos    before       Enter editor insert mode  Brows
360. lled with the Text Selection Color  preference     Changes in color preferences will often depend on the overall display theme that is  chosen  as described in the next section     33  2 2 4  Setting Overall Display Theme    Wing is based on GTK2  a cross platform user interface toolkit that provides customiz   able themes  which control the overall look and feel of the user interface  Wing   s default  theme varies by platform  a Windows emulation theme is used on Windows  and an OS  X like theme on OS X  and can be changed with the Display Theme preference     In most cases  the new theme will instantly be applied to Wing   s user interface  When  switching back to default settings  a restart may be needed in some cases  as indicated  by message dialog     Some systems with slower graphics cards may not run as well using the more colorful  3D rendered themes  In this case  using the Gtk Default theme is the best option  as  it involves no extra graphics level processing     System GTK on Linux    On Linux systems with GTK 2 6 or later installed  it is possible to run Wing with  the system wide GTK installation and system defined themes  This is controlled with  the Use System GTK preference or the   system gtk or   private gtk command  line arguments  Wing works reasonably well with most 2 6 x GTK2 releases  but there  still may be problems resulting from version differences  If you have any problems with  Wing   s stability or are seeing display glitches  you should use th
361. lling position of the  two files in the diff merge session synchronized   e Ignore Whitespace    When this is checked  Wing will ignore changes that consist  solely of white space  space  tab  line feed  or carriage return characters    It is also possible to select between side by side or top bottom orientation of the two    files shown during a difference and merge session using the Orientation preference     The color used in the highlights for differences can be configured with the Diff Merge  Color preference     Source Code Browser    The Source Browser  which is available only in Wing IDE Professional  acts as an  index to your source code  supporting inspection of collections of Python code from  either a module oriented or class oriented viewpoint        Background Source Analysis   Wing IDE s source code analyzer will run in the background from the time that  you open a project until all files have been analyzed  You may notice this overhead  immediately after opening your project  depending on the size of your source base   Until analysis is complete  the class oriented view within the browser window will  only include those classes that have been analyzed  This list is updated as more  code is analyzed              8 1  Display Choices    The source code browser offers three ways in which to browse your source code  All code  by module  all code by class  or only the current file  These are selected from the menu  at the top left of the browser     8 1 1  Browse P
362. lly to keep track of updates the user is not interested in    Internal Name     main  ignored updates    272    Data Specification      list of   lt type str gt      Default Value           main plugin overrides  Defines which plugins are enabled or disabled     Internal Name     main plugin overrides    Data Specification      dict  keys   lt type str gt   values   lt boolean  0 or 1 gt      Default Value              User Interface Preferences    gui apple keyboard    Whether an Apple keyboard is in use  Use query x11 option to attempt to determine  setting from X11 server each time Wing is run  This is an OS X only preference     Internal Name   gui apple keyboard  Data Specification      query x11  yes  no     273  Default Value   query x11    gui feedback email  Email address to use by default in the Feedback and Bug Report dialogs    Internal Name   gui feedback email  Data Specification    lt type str gt   Default Value     gui fix osx tiger key board conflict    Whether to fix the inability to use Mode_switch on Tiger  OS X 10 4   If true  Wing  will run xmodmap when it starts to remap the Mode_switch keys  option  Alt Gr  and  other composition keys on non US keyboards  from modl to mod5  The xmodmap  modifications will affect all X11 applications     Internal Name   gui fix osx tiger keyboard conflict  Data Specification    lt boolean  O or 1 gt   Default Value     True    274    gui osx key for alt    Use key for alt key in all X11 applications on OS X    typically
363. lowing preferences affect how the indentation features behave     1  The Use Indent Analysis preference is used to control whether analysis  of current file content is used to determine the type of indentation placed  during edits  It can be enabled for all files  only for Python files  or disabled   Note that disabling this preference for Python files can result in a potentially    69    broken mix of indentation in the files  In general  indent styles should not  be mixed within a single Python file     2  The Default Tab Size preference defines the position of tab stops and is  used to determine the rendering of files with tabs only  or non Python files  with mixed tab and space indentation  In Python files with mixed indents   this value is ignored and the file is always shown in the way that the Python  interpreter would see it     3  The Default Indent Size preference defines the default size of each level  of indent  in spaces  This is used in new empty files or when indent analysis  has been disabled  Wing may override this value in files that contain only  tabs in indentation  in order to make it a multiple of the configured tab size     4  The Default Indent Style preference defines the default indentation style   one of spaces only  tabs only  or mixed  This is used in new empty files  or when indent analysis has been disabled  Mixed indentation replaces each  tab size spaces with one tab character     These preferences define how indentation is handled by the edit
364. lt Value         text x python        text x c source        text x cpp source        text x   java source        text x javascript        text html        text x    mako        text x django        text xml        text x zope pt        text x   eiffel        text x lisp        text x ruby        text x cython        consoles  wrap long lines  Wrap long output lines in OS Commands tool to fit within available display area     Internal Name   consoles wrap long lines  Data Specification    lt boolean  O or 1 gt   Default Value     False    280    consoles  python prompt after execution  Drop into Python shell after executing any Python file in the OS Commands tool    Internal Name     consoles python prompt after execution    Data Specification      lt boolean  O or 1 gt     Default Value     False    edit symbol find alpha sort  Controls whether to sort Find Symbol dialog alphabetically or in natural file order    Internal Name     edit  symbol find alpha sort    Data Specification      lt boolean  O or 1 gt     Default Value     True    edit symbol find include args    Controls whether to include argument specs in the searchable text used in the Find  Symbol dialog    Internal Name     edit  symbol find include args    281  Data Specification    lt boolean  O or 1 gt   Default Value   False    edit use default foreground when printing    Use default foreground color for all text when printing  It   s to set this if foreground color  are customized for display on a dark backg
365. luated     The Watch tool will remember watch points across debug sessions  except those that  make use of an object reference  which do not survive the debug process     12 9 3  Evaluating Expressions    The debugger Watch tool can also be used to view the value of keyboard entered ex   pressions  These may be entered by clicking on any cell in the Watch manager   s display  tree and editing or entering the desired expression in the Variable column  Press enter  to complete the editing session     Only expressions that evaluate to a value may be entered  Other statements  like variable  assignments  import statements  and language constructs are rejected with an error   These may only be executed using the Debug Probe     Expressions are evaluated in the context of the current debug stack frame  so this feature  is available only when the debug program has been paused or has stopped at a breakpoint  or exception  This also means that the value of the same typed expression may change  as you move up and down the call stack in the main debugger window     In cases where evaluating an expression results in changing the value of local or global  variables  your debug program will continue in that changed context  Whenever a value  is changed as a result of expression evaluation  the updated value will be propagated  into any visible debugger variable display areas because Wing IDE refetches all displayed  data values after the evaluation of each expression  However  since you ma
366. m  The local file prefix is usually the full path of a local directory  though it  may also be a file  url     The best way to understand this is to look at the Location Map Examples     When running Wing IDE on Windows XP  UNC formatted file names such as   ma   chine path to file may be used  On other Windows systems  you must map remote  drives to a drive letter such as F   In cases where setting up a persistent drive mapping is  a problem  use a cmd exe script with a net use command to map the drive on demand     Note that making symbolic links on the client or server will not work as an alternative  to using this mapping  This is a side effect of functionality in the debugger that ensures  that debugging works right when symbolic links are present  Internally  source file names  are always resolved to their actual full path location     131  13 2 1 1  File Location Map Examples    The best way to understand location mapping is to inspect a few examples   Defaults Explained    The default value for the Location Map preference contains one entry for  127 0 0 1 where the mapping is set to None  in Python this is represented as    127 0 0 1    None    This is equivalent to the more verbose Python representation of    127 0 0 1                         It converts full paths on the debug server to the client side  URLs without altering any part of the full path     Two Linux Unix Hosts    Here is an example setting for debug  location map that would be used if running Wing  on
367. m the cursor position  using current  selection as the search string  Set persist False to do the search but end the interactive  search session immediately   Document Viewer Commands  Initiate incremental mini   search forward from the cursor position  using current selection as the search string  Set  persist False to do the search but end the interactive search session immediately     Ctrl C U  uncomment out region   Uncomment out the selected region if commented  out  If one_level is True then each call removes only one level of commenting     Ctrl C greater  indent region   Indent the selected region one level of indentation   Set sel to None to use preference to determine selection behavior  or    never select    to  unselect after indent     always select    to always select after indent  or    retain select    to  retain current selection after indent     Ctrl C less  outdent region   Outdent the selected region one level of indentation     397    Set sel to None to use preference to determine selection behavior  or    never select    to  unselect after indent     always select    to always select after indent  or    retain select    to  retain current selection after indent     Ctrl C numbersign  comment toggle   Toggle commenting out of the selected lines   The style of commenting can be controlled with the style argument     indented    uses the  default comment style indented at end of leading white space and    block    uses a block  comment in column zero  If no
368. mands  Initiate incremental regular expression mini search forward from the cursor  position  optionally entering the given search string   Document Viewer Commands   Initiate incremental regular expression mini search forward from the cursor position   optionally entering the given search string     Browse 0  beginning of line toggle 0    Action varies according to focus  Active  Editor Commands  Move to beginning of current line  When toggle is True  moves to  the end of the leading white space if already at the beginning of the line  and vice versa     Toolbar Search Commands  Move to the beginning of the toolbar search entry    Browse 1  initiate numeric modifier digit 1    VI style repeat  numeric modifier  for following command    Browse 2  initiate numeric modifier digit 2    VI style repeat  numeric modifier  for following command    Browse 3  initiate numeric modifier digit 3    VI style repeat  numeric modifier  for following command    Browse 4  initiate numeric modifier digit 4    VI style repeat numeric modifier  for following command    416  Browse 5  initiate numeric modifier digit 5    VI style repeat  numeric modifier  for following command    Browse 6  initiate numeric modifier digit 6    VI style repeat  numeric modifier  for following command    Browse 7  initiate numeric modifier digit 7    VI style repeat  numeric modifier  for following command    Browse 8  initiate numeric modifier digit 8    VI style repeat  numeric modifier  for following command    
369. mands  Paste  text from clipboard   Toolbar Search Commands  Paste from clipboard    Ctrl parenleft  batch search   Display Search in Files tool  The look_in argument  gets entered in the look in field if not None or      The current selection is put into the  search field if it doesn   t span multiple lines and either use_selection is true or there   s  nothing in the search field  The given search text is used instead  if provided    Ctrl parenright  batch replace   Display search and replace in files tool   Ctrl underscore  undo   Undo last action    Delete  forward delete char   Action varies according to focus  Active Editor Com   mands  Delete one character in front of the cursor   Toolbar Search Commands  Delete  character in front of the cursor    Down  next line   Move to screen next line  optionally repositioning character within  line     same    to leave in same horizontal position     start    at start     end    at end  or    fnb     for first non blank char     End  end of line   Action varies according to focus  Active Editor Commands  Move  to end of current line  Toolbar Search Commands  Move to the end of the toolbar search  entry    Esc X  command by name   Execute given command by name  collecting any args  as needed    F1  Multiple commands  first available is executed      e show horizontal tools   Show the horizontal tool area    407  e minimize horizontal tools   Minimize the horizontal tool area    F11  frame up   Move up the current debug stack  F12
370. mbolic links  the file    138    names left in   pyc may contain a mix of each of these paths  If the  symbolic link that was used is subsequently removed  some of the file  names become invalid     The fix for all of these problems is to remove the   pyc files and let Python regenerate  them from the corresponding   py files with the correct file name information     Hint  You can open   pyc files in most text editors to inspect the stored file names      5  For code that spends much of its time in C C   without calling Python at all  for  example as in a GUI main loop  the debugger may not reliably stop at breakpoints added  during a run session  and may not respond to Pause requests  See section Debugging  Non Python Mainloops for more information      6  You cannot use pdb or other debuggers in code that you are running within the Wing  debugger  The two debuggers conflict because they attempt to use the same debugger  hooks in the Python interpreter      7  If you override __import__ in your code  you will break the debugger   s ability  to stop at breakpoints unless you call the original __import__ as part of your code  whenever a module is actually imported  If you cannot call the original __import__  for some reason  it may be possible to instead use wingdbstub and then call wingdb   stub debugger NotifyImport  mod  from your import handler  where mod is the mod   ule that was just imported       8  If you set __ file__ in a module   s name space to a value other than
371. me for these files should end in  wpr     To share a project file with other developers  change Project Type in the Options tab  of Project Properties to Shared  Two Files   Then save your project to obtain the  two separate project files on disk  The main project file name ends in  wpr and will  contain only shareable data  All user specific data will be stored in a separate file with  name ending in  wpu     If you subsequently change from a shared project back to single user  the user specific  data will be merged back into the main project file and the file ending in  wpu will be  removed from disk     Note that both the combined single user file and two split shared files use the same  textual file format that is used for the preferences file  See section Preferences File  Format for more information on the format itself     Which project properties are stored in the main project file may be set by modifying the  main file with a text editor and setting the proj shared attribute names attribute  to the list of names to be stored in the main file     3 7  Project wide Properties    Each project has a set of top level properties that can be accessed and edited via the  Properties item in the Project menu  These can be used to configure the Python  environment used by the debugger and the source code analysis engine  which drives  Wing   s auto completion  source index  and other capabilities  Project properties are also  provided to set options for the project and to enabl
372. miters to define which  characters are part of a word  Gravity may be    start    or    end    to indicate whether cursor  is placed at start or end of the word   Toolbar Search Commands  Move backward one  word  extending the selection    Ctrl Shift KP_Next  forward page extend   Move cursor forward one page  adjust   ing the selection range to new position    Ctrl Shift K P_Page_Down  forward page extend   Move cursor forward one page   adjusting the selection range to new position    Ctrl Shift K P_Page_Up  backward page extend   Move cursor backward one page   adjusting the selection range to new position    Ctrl Shift KP_Prior  backward page extend   Move cursor backward one page   adjusting the selection range to new position    Ctrl Shift KP_Right  forward word extend   Action varies according to focus  Ac   tive Editor Commands  Move cursor forward one word  adjusting the selection range to  new position  Optionally  provide a string that contains the delimiters to define which  characters are part of a word  Gravity may be    start    or    end    to indicate whether cursor    454    is placed at start or end of the word   Toolbar Search Commands  Move forward one  word  extending the selection    Ctrl Shift KP_Up  previous line extend   Move to previous screen line  adjusting  the selection range to new position  optionally repositioning character within line  same     to leave in same horizontal position     start    at start  end    at end  or    fnb    for first 
373. mmand  style    char     select_right 0     Change between text marking and non text marking mode  Style is    char    for stream  select     block    for rectangular select  and    line    for line select  Set select_right 1 to select  the character to right of the cursor when marking is toggled on  Key Bindings  Brief   Alt M invokes toggle mark command select_right 1     goto bookmark 3     Go to bookmark 73     goto bookmark 6     Go to bookmark    6     goto bookmark 7     Go to bookmark 77     goto bookmark 4     Go to bookmark    4     goto bookmark 5     Go to bookmark 75     goto bookmark 2     Go to bookmark    2     cursor end       Bring cursor to end of line  to end of visible area  or to end of document each successive  consecutive invocation of this command  Key Bindings  Brief  End    goto bookmark 0     Go to bookmark    0     goto bookmark 1       Go to bookmark    1       371    goto bookmark 8     Go to bookmark    8     goto bookmark 9       Go to bookmark    9       372    Key Binding Reference    This chapter documents all the default key bindings found in the keyboard personal   ities provided by Wing  set by the Personality preference  Key bindings are listed  alphabetically  In some cases commands of the same name are provided by different  implementations that are selected according to keyboard focus     When multiple commands are defined for a single key binding  the first available com   mand in the list is invoked  In this way a single binding ca
374. n   blank char     Ctrl Shift Left  backward word extend   Action varies according to focus  Active  Editor Commands  Move cursor backward one word  adjusting the selection range to  new position  Optionally  provide a string that contains the delimiters to define which  characters are part of a word  Gravity may be    start    or    end    to indicate whether cursor  is placed at start or end of the word   Toolbar Search Commands  Move backward one  word  extending the selection    Ctrl Shift Next  forward page extend   Move cursor forward one page  adjusting  the selection range to new position    Ctrl Shift Page_Down  forward page extend   Move cursor forward one page  ad   justing the selection range to new position    Ctrl Shift Page_Up  backward page extend   Move cursor backward one page  ad   justing the selection range to new position    Ctrl Shift Prior  backward page extend   Move cursor backward one page  adjust   ing the selection range to new position    Ctrl Shift Right  forward word extend   Action varies according to focus  Active  Editor Commands  Move cursor forward one word  adjusting the selection range to  new position  Optionally  provide a string that contains the delimiters to define which  characters are part of a word  Gravity may be    start    or    end    to indicate whether cursor  is placed at start or end of the word   Toolbar Search Commands  Move forward one  word  extending the selection    Ctrl Shift Tab  begin visited document cycle move_
375. n  for example  show or hide  a tool panel     Additional key bindings can be added as described in keyboard bindings  All available  commands are documented in the Command Reference     21 1  Normal Personality    This section documents all the default key bindings for the Normal keyboard personality   set by the Personality preference     Alt 1  fold python methods   Fold up all Python methods  expand all classes  and  leave other fold points alone    Alt 2  fold python classes   Fold up all Python classes but leave other fold points  alone    Alt 3  fold python classes and defs   Fold up all Python classes  methods  and func   tions but leave other fold points alone    Alt BackSpace  backward delete word   Action varies according to focus  Active  Editor Commands  Delete one word behind of the cursor   Toolbar Search Commands   Delete word behind the cursor    Alt Delete  backward delete word   Action varies according to focus  Active Editor  Commands  Delete one word behind of the cursor   Toolbar Search Commands  Delete  word behind the cursor    373    374   Alt Down  fold expand more current   Expand the current fold point one more  level   Alt End  fold expand all   Expand all fold points in the current file    Alt F11  prev points of use match   Display the previous match is the active points  of use tool    Alt F12  next points of use match   Display the next match is the active points of  use tool    Alt F3  search   Bring up the search manager in search mode   Alt
376. n be used to watch a debug data value over time   as described in Watching Values     e Force Reload    This forces Wing IDE to reload the displayed value from the  debug process  This is useful in cases where Wing is showing an evaluation error  or when the debug program contains instances that implement __repr__ or sim   ilar special methods in a way that causes the value to change when subjected to  repeated evaluation     12 9 1 2  Filtering Value Display  There are a number of ways in which the variable displays can be configured     e Wing lets you prune the variable display area by omitting all values by type  and  variables or dictionary keys by name  This is done by setting the two preferences   Omit Types and Omit Names     e You can also tell Wing to avoid probing certain values by data type  This is useful  to avoid attempting expansion of data values defined in buggy extension modules   which can lead to crashing of the debug process as the debugger invokes code that  isn   t normally executed  To add values to avoid  set preference Do Not Expand     e Wing provides control over size thresholds above which values are considered too  large to move from the debug process into the variable display area  Values found  to be too large are annotated as huge in the variable display area and cannot be  expanded further  The data size thresholds are controlled with preferences Huge  List Threshold and Huge String Threshold     113    e By default Wing will display small i
377. n control tool panel for the active version control system can be shown by  selecting it from the Tools menu or as a side effect of selecting operations from any of  the version control menus     By default  the version control tool contains a Project Status view that shows the  status operation applied to the entire project  It summarizes which files have been  modified  and can also show unregistered files when the Show Unregistered option in  the right click context menu is enabled     141    142    Operations invoked for a version control system will also display a view within the  version control tool  These views display the output from the external command run  to implement the operation  any input parameters  and optionally the console output  for the external command  The menu in the top left can be used to switch between  operations or to return to the Project Status view  Clicking on the X icon closes the  view for the current operation  Operations may also be cancelled and many may be run  again using the buttons in the lower right     The Options menu can be used to access the version control preferences  documentation   or a console that displays the version control invocations     14 2  Common Version Control Operations    Some operations are similiar across different version control systems and are supported  in Wing by common commands  There are some variations among these from one version  control system to another  for example  the add operation in CVS is n
378. n one editor  split is visible     Internal Name     gui split reuse policy    213    Data Specification      current  adjacent     Default Value     current    Strip Trailing White Space  Controls whether to automatically strip trailing white space in the editor     Internal Name     main auto rstrip on save    Data Specification      tuple length 2 of   disabled  on save    lt type str gt      Default Value     disabled    Input Method    Input method used for typing characters  This is important primarily for non Western  European languages     Internal Name     edit  gtk input method    Data Specification      0     Default Value     default    214    Block Comment Style    Style of commenting to use when commenting out blocks of Python code     Internal Name     gui block comment style    Data Specification      indented  block     Default Value     indented    e Caret    Caret Width    Width of the blinking insertion caret on the editor  in pixels     value between 1 and 3     Internal Name     edit caret width    Data Specification      from 1 to 3     Default Value     Caret Line Highlight    Currently limited to a    Selects whether to highlight the line the caret is currently on  When enabled  a highlight    color and alpha  transparency  can be set     Internal Name     215  edit caret line highlight  Data Specification    None or  tuple length 2 of   tuple length 3 of   from 0 to 255    from 0 to 255      Default Value   None    Caret Flash Rate  ms     Sets the t
379. n same horizontal position     start    at start     end    at  end  or    fnb    for first non blank char     Ctrl KP_End  end of document   Move cursor to end of document  Ctrl KP_Home  start of document   Move cursor to start of document    Ctrl KP_Insert  copy   Action varies according to focus  Active Editor Commands   Copy selected text   Document Viewer Commands  Copy any selected text    Exceptions  Commands  Copy the exception traceback to the clipboard   Search Manager Instance  Commands  Copy selected text   Toolbar Search Commands  Cut selection    Ctrl KP_Left  backward word   Action varies according to focus  Active Editor  Commands  Move cursor backward one word  Optionally  provide a string that contains  the delimiters to define which characters are part of a word  Gravity may be  start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move backward one word    Ctrl KP_Next  forward page   Move cursor forward one page  Ctrl KP_Page_Down  forward page   Move cursor forward one page  Ctrl KP_Page_Up  backward page   Move cursor backward one page  Ctrl KP_Prior  backward page   Move cursor backward one page    Ctrl KP_Right  forward word   Action varies according to focus  Active Editor Com   mands  Move cursor forward one word  Optionally  provide a string that contains the  delimiters to define which characters are part of a word  Gravity may be start    or     end    to indicate whether cursor is pla
380. n_ DJE  Macedonia_GJE  Cyrillic IO  Ukrainian_IE  Ukranian_JE   Macedonia DSE  Ukrainian_I  Ukranian_I  Ukrainian_Y1I  Ukranian_YI  Cyrillic_JE   Serbian_JE  Cyrillic_LJE  Serbian_LJE  Cyrillic_NJE  Serbian_NJE  Serbian_TSHE   Macedonia_KJE  Ukrainian GHE_WITH_UPTURN  Byelorussian SHORTU  Cyril   lic_DZHE  Serbian_DZE  Cyrillic_yu  Cyrillic_a  Cyrillic_be  Cyrillic_tse  Cyrillic_de        41    Cyrillic_ie  Cyrillic_ef  Cyrillic ghe  Cyrillic_ha  Cyrillici  Cyrillic shorti  Cyrillic_ka   Cyrillic_el  Cyrillic_em  Cyrillic_en  Cyrillic_o  Cyrillic_pe  Cyrillic_ya  Cyrillic_er  Cyril   lic_es  Cyrillic_te  Cyrillic_u  Cyrillic_zhe  Cyrillic_ve  Cyrillic_softsign  Cyrillic_yeru   Cyrillic_ze  Cyrillic_sha  Cyrillic_e  Cyrillic_shcha  Cyrillic_che  Cyrillic_hardsign   Cyrillic  YU  Cyrillic_A  Cyrillic_BE  Cyrillic TSE  Cyrillic  DE  Cyrillic_IE  Cyril   lic_EF  Cyrillic_GHE  Cyrillic_HA  Cyrillic_I  Cyrillic SHORTI  Cyrillic KA  Cyril   lic_EL  Cyrillic EM  Cyrillic_EN  Cyrillic_O  Cyrillic_PE  Cyrillic_YA  Cyrillic_ER   Cyrillic_ES  Cyrillic_TE  Cyrillic_U  Cyrillic_ZHE  Cyrillic_VE  Cyrillic SOFTSIGN   Cyrillic YERU  Cyrillic_ZE  Cyrillic  SHA  Cyrillic_E  Cyrillic SHCHA  Cyrillic_CHE   Cyrillic HARDSIGN     Greek_ALPHAaccent  Greek_EPSILONaccent  Greek_ETAaccent  Greek_IOTAaccent   Greek IOTAdiaeresis  Greek_OMICRONaccent  Greek_UPSILONaccent   Greek_UPSILONdieresis  Greek_OMEG Aaccent  Greek_accentdieresis   Greek_horizbar  Greek_alphaaccent  Greek_epsilonaccent  Greek_etaac
381. nce courses  It is free to download and use for educational and personal  use     13    14    Wing IDE Professional  Wing IDE Personal  and Wing IDE 101 are independent prod   ucts and may be installed at the same time on your system without interfering with each  other     For a list of features in each product level  please refer to  http   wingware com wingide features     1 2  Licenses    Wing IDE requires a separate license for each developer working with the product  For  the full license text  see the Software License     License Activation    To run for more than 10 minutes  Wing IDE requires activation of a time limited trial  or permanent purchased license  Time limited trials last for 10 days and can be renewed  several times     An activation ties the license to the machine through a series of checks of the hardware  connected to the system  This information is never transmitted over the internet  Instead  an SHA hash of some of the values is passed back and forth so that the machine will be  identifiable without us knowing anything specific about it     The machine identity metrics used for activation are designed to be forgiving so that  replacing parts of your machine   s hardware or upgrading the machine will usually not  require another activation  By the same token  activating multiple times on the same  machine  for example if the activation file is lost  usually does not increase your activa   tion count     Licenses come with three activations by default 
382. nd DJANGO_SETTINGS_MODULE  adds the site  directory to the Python Path in the Wing project  sets TEMPLATE_DEBUG   True  in the settings py file  ensures that the Template Debugging project property is enabled   sets up the unit testing framework and file patterns in project properties     django start app  appname     365    Start a new application within the current Django project and add it to the IN   STALLED_APPS list in the project   s settings py file     django sync db      Run manage py syncdb   django run tests      Run manage py unit tests in the Testing tool  django restart shell       Show and restart the Python Shell tool  which works in the same environment as    man   age py shell     To show the tool without restarting it  use the Tools menu     Django Script    A plugin that provides Django specific functionality when a project looks like it contains  Django files     django setup wing project       Sets up a Wing project to work with an existing Django project  This assumes that  you have already added files to the project so that your manage py and settings py files  are in the project  It sets up the Python Executable project property  sets    manage py  runserver   noreload 8080    as the main debug file  sets up the Wing project environment  by defining DJANGO_SITENAME and DJANGO_SETTINGS_MODULE  adds the site  directory to the Python Path in the Wing project  sets TEMPLATE_DEBUG   True  in the settings py file  ensures that the Template Debugging projec
383. nd for debug processes that were launched from outside  of the IDE    Internal Name    debug  enable kill external  Data Specification     lt boolean  0 or 1 gt     Default Value     Common Attach Hosts    251    List of host port combinations that should be included by default in the attach re   quest list shown with Attach to Process in the Debug menu  in addition to those that  are registered at runtime  These are used primarily with externally launched debug  processes  since Wing automatically shows IDE launched processes for attach when ap   propriate  This value corresponds with kAttachPort configured in wingdbstub py or by  WINGDB_ATTACHPORT environment variable before importing wingdbstub in the  debug process     Internal Name    debug  attach defaults  Data Specification     tuple of   tuple length 2 of   lt type str gt    from 0 to 65535     Default Value        127 0 0 1     50015      e Advanced    Network Timeout    Controls the amount of time that the debug client will wait for the debug server to  respond before it gives up  This protects the IDE from freezing up if your program  running within the debug server crashes  or if the server itself becomes unavailable   It  must also be taken into account when network connections are slow or if sending large  data values  see the huge list threshold and huge string threshold preferences      Internal Name    debug  network timeout  Data Specification     lt type float gt    lt type int gt   Default Value     10   
384. ndings   VI VIM  g Shift U    center cursor       Scroll so cursor is centered on display Key Bindings  VI VIM  z    Emacs  Ctrl L  Brief   Ctrl C    clear      Clear selected text   clear move command      Clear any pending move command action  as for VI mode Key Bindings  VI VIM  Esc  complete autocompletion  append        Complete the current active autocompletion     copy       Copy selected text Key Bindings  Normal  Ctrl Insert  VI VIM  Ctrl Insert  Emacs   Ctrl Insert  Brief  Ctrl Insert  Visual Studio  Ctrl Insert  OS X  Command C    copy line     Copy the current lines s  to clipboard Key Bindings  Brief  KP_Add  copy range  start_line  end_line  target_line     Copy the given range of lines to the given target line  Copies to current line if target_line  is           317    cursor move to bottom  offset  lt numeric modifier  default 0 gt      Move cursor to bottom of display  without scrolling   optionally at an offset of given  number of lines before bottom Key Bindings  VI VIM  Shift L    cursor move to center     Move cursor to center of display  without scrolling  Key Bindings  VI VIM  Shift M  cursor move to top  offset  lt numeric modifier  default 0 gt      Move cursor to top of display  without scrolling   optionally at an offset of given number  of lines below top Key Bindings  VI VIM  Shift H    cursor to bottom      Scroll so cursor is centered at bottom of display Key Bindings  VI VIM  z    cursor to top      Scroll so cursor is centered at top of displa
385. ne  same    to leave in same horizontal position     start    at start     end     at end  or    fnb    for first non blank char     Insert Ctrl Q  start select block   Turn on auto select block mode    Insert Ctrl T  indent region   Indent the selected region one level of indentation   Set sel to None to use preference to determine selection behavior  or    never select    to    436  unselect after indent     always select    to always select after indent  or    retain select    to  retain current selection after indent     Insert Ctrl U  delete to start of line   Delete everything between the cursor and  start of line    Insert Ctrl V  vi ctrl v    Insert Ctrl W  backward delete word   Action varies according to focus  Active  Editor Commands  Delete one word behind of the cursor   Toolbar Search Commands   Delete word behind the cursor    Insert Ctrl X  vi ctrl x  Insert Ctrl    enter browse mode   Enter editor browse mode  Insert Esc  enter browse mode   Enter editor browse mode    KP_Delete  forward delete char   Action varies according to focus  Active Editor  Commands  Delete one character in front of the cursor   Toolbar Search Commands   Delete character in front of the cursor    KP_Down  next line   Move to screen next line  optionally repositioning character  within line     same    to leave in same horizontal position     start    at start     end    at end  or   fnb    for first non blank char     KP_End  end of line   Action varies according to focus  Active Edi
386. ne at the current cursor position    KP_Home  beginning of line text   Move to end of the leading white space  if any   on the current line  If toggle is True  moves to the beginning of the line if already at the  end of the leading white space  and vice versa      KP_Insert  toggle overtype   Toggle status of overtyping mode    KP_Left  backward char   Action varies according to focus  Active Editor Com   mands  Move cursor backward one character   Toolbar Search Commands  Move back   ward one character    KP_Multiply  undo   Undo last action   KP_Next  forward page   Move cursor forward one page  KP_Page_Down  forward page   Move cursor forward one page  KP_Page_Up  backward page   Move cursor backward one page  KP_Prior  backward page   Move cursor backward one page    KP_Right  forward char   Action varies according to focus  Active Editor Commands   Move cursor forward one character   Toolbar Search Commands  Move forward one  character    KP_Subtract  cut line   Cut the current line s  to clipboard     KP_Tab  tab key   Implement the tab key  the action of which is configurable by  preference    KP_Up  previous line   Move to previous screen line  optionally repositioning charac   ter within line  same    to leave in same horizontal position     start    at start     end    at end   or fnb    for first non blank char     Left  backward char   Action varies according to focus  Active Editor Commands     490   Move cursor backward one character   Toolbar Search Commands  
387. ng  shift or ctrl while dragging    Internal Name     235  edit  default drop action  Data Specification    os default  copy  move   Default Value   os default    Mini search Case Sensitivity    Whether or not mini search is case sensitive  Can be    match mode    to use the default for  the current keyboard mode     never    in vi mode or    if upper    for emacs and other modes     ifupper    to be case sensitive only if an upper case character is typed     always    to always  match case sensitively  and    never    to always match case insensitively     Internal Name    edit  minisearch case sensitive  Data Specification     always  never  if upper  match mode   Default Value     match mode    Debugger    Auto save Files    Controls whether or not all edited files are autosaved before a debug run  before starting  unit tests  or before a file or build process is executed     Internal Name     gui auto save before action    236    Data Specification      lt boolean  O or 1 gt     Default Value     Ignore Unsynchronized Files    Controls whether or not Wing ignores unsaved files before a debug run  or before a file  or build process is executed     Internal Name     gui ignore unsaved before action    Data Specification      lt boolean  O or 1 gt     Default Value     Raise Source From Tools    Controls whether the debugger raises source files to indicate exception locations encoun   tered when working in the Debug Probe  and other debugger tools     Internal Name     debug
388. ng  terminating  or restarting a com   mand  clearing the execution console  and selecting whether consoles should auto clear  each time the process is started or restarted     For Python files  it is also possible to specify that the Python interpreter should be left  active and at a prompt after the file is executed  This is done with the Python Prompt  after Execution item in the Options menu     The area below the popup menu at the top of the OS Commands tool is the console  where commands are executed  where output is shown and where input can be entered  for sending to the sub process  Use the popup menu to switch between multiple running  processes  or add multiple instances of the OS Commands tool to view them concur   rently  The console provides a context menu  right click  for controlling the process   copy pasting  and clearing or saving a copy of the output to a file     95    96    Toolbox    The OS Commands Toolbox is hidden by default but can be shown with the Show  Toolbox item in the Options menu  This contains the same items in the popup menu  at the top of the OS Commands tool  but can be convenient for editing or removing  multiple items  or quickly executing a series of commands  Right click on the list for  available actions  or middle click or double click on the list to execute items     10 1  OS Command Properties    Items added to the OS Commands tool can be configured to run within a particular  environment using the dialog shown when the item is a
389. ng IDE Professional  non evaluation  licenses only  who have completed a non disclosure agreement  Upon receipt of this  agreement  you will be provided with instructions for obtaining and working with the  product source code     1 13  Removing Wing IDE    Windows    On Windows  use the Add Remove Programs control panel  select Wing IDE 4 and  remove it     Linux Unix  To remove an RPM installation on Linux  type rpm  e wingide4 0   To remove an Debian package installation on Linux  type dpkg  r wingide4 0     To remove a tar archive installation on Linux Unix  invoke the wing uninstall script  in WINGHOME  This will automatically remove all files that appear not to have been  changed since installation  It will ask whether it should remove any files that appear to  be changed     Mac OS X    To remove Wing from Mac OS X  just drag its application folder to the trash     1 14  Command Line Usage    Whenever you run wing4 0 from the command line  you may specify a list of files to  open  These can be arbitrary text files and a project file  For example  the following will  open project file myproject wpr and also the three source files mysource py  README   and Makefile     wing4 0 mysource py README Makefile myproject wpr     on Windows  the executable is called wing  exe     Wing determines file type by extension  so position of the project file name  if any   on the command line is not important  A line number may be specified for the first    26    file on the command lin
390. ng IDE by typing its  host port into the Attach dialog text areas  If you find yourself typing a host port  value often  it is best to add that value to the Common Attach Hosts preference     See section Debugging Externally Launched Code for more information     13 3 5  Constraints    Wing supports attaching only to a single debug process at a time  Whenever you detach  from a process  it begins free running and will not stop at any breakpoints or non fatal    137    exceptions  This limits what can be done with detach attach from a single copy of Wing   If you wish to actively debug two processes at once  simultaneously controlling stepping   breakpoint activation  and execution  as in a client server network program   you must  run two copies of Wing at once     13 4  Debugger Limitations    There are certain situations that the debugger cannot handle  because of the way the  Python programming language works  If you are having problems getting the debugger  to stop at breakpoints or to display source as you step through your code  one or more  of these may apply     Always read the Trouble shooting Failure to Debug section first  If that fails to un   cover your problem  refer to the following detailed documention of debugger limitations   many of which are extremely rare and esoteric       1  Your source files must be stored on disk and accessible to the IDE  If you are trying  to debug code fragments  try writing them to disk temporarily and setting the __file__  variab
391. ng Wing produce a more complete analysis of your source code  see Source  Code Analysis and Helping Wing Analyze Code     When working in the Python Shell and Debug Probe  the source assistant will also  update while the auto completer is active  In this case  the information shown is    live     data extracted from the running environment and will cover cases that Wing   s static  analysis engine cannot     61    4 8  User defined Bookmarks    Wing IDE Professional and higher support named user defined bookmarks that can be  set and accessed from the Source menu and the key bindings shown there  and with  Toggle Bookmark in the editor context menu  Defined bookmarks are listed in the  Bookmarks tool and are shown with a background color change or underline on the  editor  The style and color of bookmark indicators can be changed with the Bookmark  Style and Bookmark Color preferences     Bookmark names are global to the project and refer to a particular position within a  selected file     e For Python files  bookmarks are defined relative to the enclosing scope  method   class  or function   so changes before the line where the bookmark is located will  not cause the bookmark   s relative position in source code to be changed  even  if those changes are made outside of Wing  Edits made outside of Wing that  affect the code between the anchoring scope and the bookmarked line will cause a  bookmark   s position to slip     e For all other types of files  bookmarks are defined
392. ng of current line  When toggle is True  moves to the end  of the leading white space if already at the beginning of the line  and vice versa    Toolbar  Search Commands  Move to the beginning of the toolbar search entry    Shift Home  beginning of line text extend   Move to end of the leading white  space  if any  on the current line  adjusting the selection range to the new position   If toggle is True  moves to the beginning of the line if already at the end of the leading  white space  and vice versa      Shift Insert  paste   Action varies according to focus  Active Editor Commands  Paste  text from clipboard   Search Manager Instance Commands  Paste text from clipboard    Toolbar Search Commands  Paste from clipboard    Shift KP_Delete  cut   Action varies according to focus  Active Editor Commands   Cut selected text   Search Manager Instance Commands  Cut selected text   Toolbar  Search Commands  Cut selection    Shift KP_Down  next line extend   Move to next screen line  adjusting the selection  range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start  end    at end  or    fnb    for first non blank char     Shift KP_End  end of line extend   Action varies according to focus  Active Editor  Commands  Move to end of current line  adjusting the selection range to new position    Toolbar Search Commands  Move to the end of the toolbar search entry  extending the  selection    Shift KP_Home
393. ng of line text   Move to end of the leading white space  if any  on  the current line  If toggle is True  moves to the beginning of the line if already at the  end of the leading white space  and vice versa      ISO_Left_Tab  backward tab   Outdent line at current position  Insert  toggle overtype   Toggle status of overtyping mode  Insert Ctrl C  vi ctrl c    Insert Ctrl D  outdent region   Outdent the selected region one level of indentation   Set sel to None to use preference to determine selection behavior  or    never select    to  unselect after indent     always select    to always select after indent  or  retain select    to  retain current selection after indent     Insert Ctrl H  backward delete char   Action varies according to focus  Active Ed   itor Commands  Delete one character behind the cursor  or the current selection if not  empty    Toolbar Search Commands  Delete character behind the cursor    Insert Ctrl J  new line   Place a new line at the current cursor position  Insert Ctrl M  new line   Place a new line at the current cursor position    Insert Ctrl N  next line   Move to screen next line  optionally repositioning character  within line     same    to leave in same horizontal position     start    at start     end    at end  or   fnb    for first non blank char     Insert Ctrl O  enter browse mode provisional True    Enter editor browse mode    Insert Ctrl P  previous line   Move to previous screen line  optionally repositioning  character within li
394. ng to the actual contents of the file  Use the Indentation Manager to alter indenta   tion in existing files  Indentation style choices are    tabs only    for tabs only     spaces only     for spaces only  or    mixed    to use a tab whenever tab size spaces have been seen    Internal Name    edit  indent style  Data Specification     mixed  spaces only  tabs only   Default Value    spaces only    Auto Indent  Controls when Wing automatically indents when return or enter is typed     Internal Name    edit  auto indent  Data Specification     0  1  blank only     Default Value     Show Indent Guides  Set to true to show indent guides by default    Internal Name     218   edit  show indent guides  Data Specification     lt boolean  0 or 1 gt     Default Value     Show Python Indent Warning Dialog    Set to show a warning dialog when opening a Python file that contains potentially prob   lematic indentation  Either inconsistent and possibly confusing indentation  a mix of  indent styles in a single file  or mixed tab and space indentation  which is not recom   mended for Python      Internal Name    edit  show python indent warnings  Data Specification     lt boolean  0 or 1 gt     Default Value     Show Override Warning Dialog    Show indent mismatch warning dialog when user selects an indent style that is incompat   ible with existing file content  This only applies to non Python files since Wing disallows  overriding the indent style in all Python files     Internal Name   e
395. ngware com   or online at http   wingware com support     Bug reports can also be sent by email to bugs at wingware com  Please include your OS  and product version number and details of the problem with each report     If you are submitting a bug report via email  see Obtaining Diagnostic Output for  more information on how to capture a log of Wing IDE and debug process internals   Whenever possible  these should be included with email based bug reports     1 6  Prerequisites for Installation    To run Wing IDE  you will need to obtain and install the following  if not already on  your system     Prerequisites for all platforms    e A downloaded copy of Wing IDE  e A supported version of Python  e A working TCP IP network configuration  for the debugger  no outside access to  the internet is required   Additional Prerequisities for Mac OS X    To run Wing IDE on OS X  you will need an X11 window server  We strongly recommend  XQuartz since the X11 provided with OS X often contains more bugs that affect key  bindings  the clipboard  and integration with Spaces     See the OS X How To for details on installing and using Wing on OS X     17    1 7  Installing    Before installing Wing IDE  be sure that you have installed the necessary prerequi   sites  If you are upgrading from a previous version  see Upgrading first     Note  On all platforms  the installation location for Wing IDE is referred to as  WINGHOME     Windows 2000 and XP    Install Wing IDE by running the downloade
396. nix and OS X  from the command line to display diagnostic output     Email this output to support at wingware com along with your system type and version   version of Wing IDE  version of Python  and any other potentially relevant details     Diagnosing Debugger Problems    To diagnose debugger problems  set preference Debug Internals Log File to a value  other than No logging and turn on preferences Use External Console and External  Console Waits on Exit  When you try again  Wing will display a debug console with  diagnostics     Alternatively  copy wingdbstub py out of your Wing IDE installation  set  WINGDB_LOGFILE environment variable to  lt stderr gt  or the name of a log file on disk   or alter kLogFile inside wingdbstub py   turn on the Enable Passive Listen pref   erence  and try launching the following script from the command line     import wingdbstub  print   testi    print   test2      This prints diagnostic output that may be easier to capture in some cases     Email this output to support at wingware com  Please include also the contents of the  file error log in your User Settings Directory   and also your system version  version  of Wing IDE  version of Python  and any other potentially relevant details     18 5  Speeding up Wing    Wing should present a responsive  snappy user interface even on relatively slow hardware   In some cases  Wing may appear sluggish     1  Try using a different Display Theme from preferences    the pixmap manipulations  in Wing   
397. non   blank char     Ctrl Shift Left  backward word extend   Action varies according to focus  Active  Editor Commands  Move cursor backward one word  adjusting the selection range to  new position  Optionally  provide a string that contains the delimiters to define which  characters are part of a word  Gravity may be    start    or    end    to indicate whether cursor  is placed at start or end of the word   Toolbar Search Commands  Move backward one  word  extending the selection    Ctrl Shift Next  forward page extend   Move cursor forward one page  adjusting  the selection range to new position    Ctrl Shift O  open from project   Open a document from the project by typing a  fragment to match file names    Ctrl Shift Page_Down  forward page extend   Move cursor forward one page  ad   justing the selection range to new position    Ctrl Shift Page_Up  backward page extend   Move cursor backward one page  ad   justing the selection range to new position    Ctrl Shift Prior  backward page extend   Move cursor backward one page  adjust   ing the selection range to new position    Ctrl Shift R  batch replace   Display search and replace in files tool     Ctrl Shift Right  forward word extend   Action varies according to focus  Active  Editor Commands  Move cursor forward one word  adjusting the selection range to  new position  Optionally  provide a string that contains the delimiters to define which  characters are part of a word  Gravity may be    start    or    end    to in
398. non blank line    Ctrl A  select all   Select all text in the editor    Ctrl Alt B  search sel backward   Search backward using current selection    376    Ctrl Alt Comma  query replace regex   Initiate incremental mini search  query replace from the cursor position  The search string is treated as a regular  expression     Ctrl Alt Down  goto next bookmark current_file_only True    Go to the next  bookmark  or the first one if no bookmark is selected  Stays within the file in the current  editor when current_file_only is True     Ctrl Alt F  search sel forward   Search forward using current selection    Ctrl Alt F6  debug failed tests   Re run all the previously failed tests in the debug   ger     Ctrl Alt F7  debug last tests   Debug the last group of tests that were run   Ctrl Alt G  goto bookmark   Goto named bookmark  Ctrl Alt K  show bookmarks   Show a list of all currently defined bookmarks    Ctrl Alt Left  goto previous bookmark   Go to the previous bookmark in the book   mark list  or the last one if no bookmark is selected  Stays within the file in the current  editor when current_file_only is True     Ctrl Alt M  set bookmark   Set a bookmark at current location on the editor  Mark  is the project wide textual name of the bookmark     Ctrl Alt Right  goto next bookmark   Go to the next bookmark  or the first one if  no bookmark is selected  Stays within the file in the current editor when current_file_only  is True     Ctrl Alt T  toggle bookmark   Set or remove a
399. ns have already been reported  so we only show error reporting dialog once for each  This is a dict from product version  to dict of exception info     Internal Name   gui reported exceptions  Data Specification      dict  keys   lt type str gt   values   dict  keys   lt type str gt   val   ues   lt boolean  0 or 1 gt       276    Default Value           gui scan for pythoncom shell extensions  Scan for pythoncom shell extensions on Windows    Internal Name     gui scan for pythoncom shell extensions    Data Specification      lt boolean  O or 1 gt     Default Value     True    gui set win32 foreground lock timeout    Controls whether or not to set the foreground lock timeout on Windows 98 ME and  2K XP  On these systems  normally Wing will be unable to bring source windows to  front whenever the debug process has windows in the foreground  When this preference is  true  the system wide value that prevents background applications from raising windows  is cleared whenever Wing is running  This means that other apps will also be able to  raise windows without these restrictions while Wing is running  Set the preference to  false to avoid this  but be prepared for windows to fail to raise in some instances  Note   If Wing is terminated abnormally or from the task manager  the changed value will    persist until the user logs out  or reboot on 98 ME      Internal Name   gui set win32 foreground lock timeout  Data Specification    lt boolean  O or 1 gt     Default Value     277   
400. nt Python instance for  each invocation  you may need to arrange that ProgramQuit is called before each instance  is destroyed and often will want to leave kEmbedded 0 in wingdbstub  In this case  you may also need to unset the environment variable WINGDB_ACTIVE before importing  wingdbstub  as this may be left in the environment by the host application and will  prevent the second or later import of wingdbstub from initiating debug     13 1 4  Debugging Embedded Python Code    When Python code is run by an interpreter embedded in a larger application  you may  need to craft special code to make debugging work properly     If the host application is simply creating a single Python instance and reusing it for all  script invocations  in most cases setting kEmbedded 1 in wingdbstub py will suffice     In certain cases where the host application is manually creating or altering the thread  state for each invocation of a script  you may need to use code as follows to reset the  debugger and connection for each script invocation     import wingdbstub   if wingdbstub debugger    None   wingdbstub  debugger   StopDebug     wingdbstub  debugger  StartDebug       In other cases where the host application uses an entirely different Python instance  for each invocation  you may need to arrange that the Debugger API function Pro   gramQuit is called before each instance is destroyed and may also want to leave kEm   bedded 0 in wingdbstub py  In this case you may also need to unset the en
401. nt selection after indent     438    Replace Ctrl U  delete to start of line   Delete everything between the cursor and  start of line    Replace Ctrl W  backward word   Action varies according to focus  Active Editor  Commands  Move cursor backward one word  Optionally  provide a string that contains  the delimiters to define which characters are part of a word  Gravity may be  start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move backward one word    Replace Ctrl    enter browse mode   Enter editor browse mode  Replace Esc  enter browse mode   Enter editor browse mode  Return  new line   Place a new line at the current cursor position    Right  forward char   Action varies according to focus  Active Editor Commands   Move cursor forward one character   Toolbar Search Commands  Move forward one  character    Right  forward char wrap 0    Action varies according to focus  Active Editor Com   mands  Move cursor forward one character   Toolbar Search Commands  Move forward  one character    Shift Alt A  diff merge a b  Shift Alt B  diff merge b a    Shift Alt Down  next line extend rect   Move to next screen line  adjusting the  rectangular selection range to new position  optionally repositioning character within  line  same    to leave in same horizontal position     start    at start     end    at end  or    fnb    for  first non blank char     Shift Alt Left  backward char extend rect   Move cursor backward 
402. nt selection after indent  Key  Bindings  Normal  Ctrl  lt   VI VIM  Ctrl D  Emacs  Ctrl C  lt   Visual Studio  Ctrl  lt    OS X  Command      page setup     Show printing page setup dialog  print view       Print active editor document Key Bindings  Normal  Ctrl P  Visual Studio  Ctrl P  OS  X  Command P    query replace  search_string  replace_string     Initiate incremental mini search query replace from the cursor position  Key Bindings   Normal  Alt comma  Emacs  Alt    Visual Studio  Alt comma  OS X  Ctrl R    query replace regex  search_string  replace_string     Initiate incremental mini search query replace from the cursor position  The search  string is treated as a regular expression  Key Bindings  Normal  Ctrl Alt Comma   Emacs  Ctrl Alt    Visual Studio  Ctrl Alt Comma    range replace  search_string  replace_string  confirm  range_limit  match_limit  regex     Initiate incremental mini search query replace within the given selection  This is similar  to query_replace but allows some additional options     confirm    True to confirm each replace  range_limit    None to replace between current selec   tion start and end of document    1 to limit operation to current selection or to cur   rent line if selection is empty     start  end  to limit operation to within given selec   tion range  or  first last    to limit operating withing given range of lines   match_limit    None to replace any num   ber of matches  or limit of number of replaces     335    When set to
403. ntal tools      Show the horizontal tool area Key Binding  F1  show toolbar      Show toolbars in all document windows  show vertical tools      Show the vertical tool area Key Binding  F2  toggle horizontal tools      Show or minimize the horizontal tool area  toggle vertical tools       Show or minimize the vertical tool area    Document Viewer Commands    Commands for the documentation viewer  These are available when the documentation  viewer has the keyboard focus     301    copy       Copy any selected text  Key Bindings  Normal  Ctrl Insert  VI VIM  Ctrl Insert   Emacs  Ctrl Insert  Brief  Ctrl Insert  Visual Studio  Ctrl Insert  OS X  Command   C    document back      Go back to prior page in the history of those that have been viewed  document contents      Go to the document contents page   document forward      Go forward to next page in the history of those that have been viewed  document next      Go to the next page in the current document   document previous      Go to the previous page in the current document   isearch backward  search_string None  repeat  lt numeric modifier  default 1 gt      Initiate incremental mini search backward from the cursor position  optionally entering  the given search string  Key Bindings  Normal  Ctrl Shift U  Emacs  Ctrl R  Visual  Studio  Ctrl Shift U  OS X  Command Shift U    isearch backward regex  search_string None  repeat  lt numeric modifier  de   fault 1 gt      Initiate incremental regular expression mini search backwa
404. nterupted because a search parameter or the set of files being searched is changed     e Open First Match    Check this to automatically open the first batch search  match  even before the result list is clicked upon     e Show Line Numbers    Check this to include line numbers in the batch result  area     e Result File Name    This is used to select the format of the result file name  shown in the batch result area     81  5 4 1  Replace in Multiple Files    For searches that operate on open files  replace always occurs in the open file editor and  can be undone or saved to disk subsequently  as with any other edit operation     When replacing text in batch mode  some of the files being searched may not currently  be open in an editor  In this case  Wing will by default open all altered files and make  changes in newly created editors that remain open until the user saves and closes them  explicitly  This is the safest way to undertake multi file global replace operations because  it clearly shows which files have been altered and makes it possible to undo changes     An alternative approach is available by selecting the Replace Operates on Disk option  from the Options popup  This will cause Wing to change files directly on disk in cases  when there is no currently open editor     Because global replace operations can be tricky to do correctly  we strongly recommend  using a revision control system or frequent backups and manually comparing file revisions  before accepting
405. o focus  Active Editor  Commands  Delete one character behind the cursor  or the current selection if not empty     Toolbar Search Commands  Delete character behind the cursor    Command 0  next document   Move to the next document alphabetically in the list  of documents open in the current window    Command 1  activate file option menu   Activate the file menu for the editor     Command 2  activate symbol option menu 1   Activate the 1st symbol menu for  the editor     Command 3  activate symbol option menu 2   Activate the 2nd symbol menu for  the editor     Command 4  activate symbol option menu 3   Activate the 3rd symbol menu for  the editor     Command 5  activate symbol option menu 4   Activate the 4th symbol menu for  the editor     Command 6  activate symbol option menu 5   Activate the 5th symbol menu for  the editor     Command 7 C  use lexer cpp   Force syntax highlighting for C C   source  Command 7 H  use lexer html   Force syntax highlighting for HTML  Command 7 M  use lexer makefile   Force syntax highlighting for make files  Command 7 N  use lexer none   Use no syntax highlighting   Command 7 P  use lexer python   Force syntax highlighting for Python source  Command 7 S  use lexer sql   Force syntax highlighting for SQL   Command 7 X  use lexer xml   Force syntax highlighting for XML files    Command 8  recent document   Switches to previous document most recently vis   ited in the current window or window set if in one window per editor windowing mode     C
406. o replace an incorrect value  wait briefly before  retrying your binding  To reset the value to blank  no key binding   select all text and  press Backspace or Delete     97    Raise OS Commands when Executed    This option causes the OS Commands tool to be  shown whenever this command is executed  When disabled  the tool will not be brought  to front     Use pseudo TTY    This option is only available on Linux and OS X  When set  Wing  runs the subprocess in a pseudo tty and tries to  minimally  emulate how the command  would work in a shell  Many of the ANSI escape sequences are not supported  but the  basics should work  For some commands  adding options can help it to work better in  the OS Commands tool  For example  bash  norc works better than bash if you have  bash using colors  and ipython  colors NoColor works better than ipython alone     Line mode    This option is only available on Linux and OS X  on Windows  all I O  will be done line by line   When it is unchecked  Wing will enter raw mode and send  every keystroke to the subprocess  rather than collecting input line by line  Often  but  not always  when a pseudo TTY is being used then line mode should be disabled  Some  experimentation may be required to determine the best settings     Environment    Initial Directory  Python Path  Environment    These values act the same as the corre   sponding values configurable in Project Properties     Test Execute    While editing command properties  the Test Execute but
407. o the end of the toolbar search entry  extending the  selection    Ctrl T  forward tab   Action varies according to focus  Active Editor Commands   Place a tab character at the current cursor position   Search Manager Instance Com   mands  Place a forward tab at the current cursor position in search or replace string    Ctrl Tab  begin visited document cycle move_back True    Start moving be   tween documents in the order they were visited  Starts modal key interaction that ends  when a key other than tab is seen or ctrl is released     Ctrl Up  backward page   Move cursor backward one page    Ctrl a  beginning of line   Action varies according to focus  Active Editor Com   mands  Move to beginning of current line  When toggle is True  moves to the end of    471    the leading white space if already at the beginning of the line  and vice versa    Toolbar  Search Commands  Move to the beginning of the toolbar search entry    Ctrl b  backward char   Action varies according to focus  Active Editor Commands   Move cursor backward one character   Toolbar Search Commands  Move backward one  character    Ctrl d  forward delete char   Action varies according to focus  Active Editor Com   mands  Delete one character in front of the cursor   Toolbar Search Commands  Delete  character in front of the cursor    Ctrl e  end of line   Action varies according to focus  Active Editor Commands  Move  to end of current line  Toolbar Search Commands  Move to the end of the toolbar search  entry
408. o write preferences files by hand  refer to the Preferences Reference for  documentation of all available preferences     39    2 4  Key Equivalents    The command a key will invoke may be modified by selecting a different key map or by  specifying a custom key binding  A custom key binding will override any binding for a  particular key found in the keymap  Custom key bindings are set via the Custom Key  Bindings preference     To add a binding  click the insert button  then press the key to be bound in the Key  field  and enter the name of the command to invoke in the Command field     Key bindings defined by default or overriden by this preference will be shown in any  menu items that implement the same command  In cases where a command is given  more than one key equivalent  only the last equivalent found will be displayed  although  both bindings will work from the keyboard      Key maps    Wing ships with several key equivalency maps found in WINGHOME  including  keymap normal  keymap emacs  keymap vi  among others  These are used as default  key maps for the corresponding editor personalities     For developing entirely new key bindings or debugging key bindings  it is possible to  create a custom key equivalency map and use it as your default map through Key Map  File preference  This is not recommended for most users  since completely replacing  the default key maps will require manual tracking of changes in commands across Wing  versions     In a key map file  each 
409. ocus  Active  Editor Commands  Move cursor forward one word  adjusting the selection range to  new position  Optionally  provide a string that contains the delimiters to define which  characters are part of a word  Gravity may be    start    or    end    to indicate whether cursor  is placed at start or end of the word   Toolbar Search Commands  Move forward one  word  extending the selection    Ctrl Shift Tab  begin visited document cycle move_back False    Start mov     403    ing between documents in the order they were visited  Starts modal key interaction that  ends when a key other than tab is seen or ctrl is released     Ctrl Shift Up  previous line extend   Move to previous screen line  adjusting the  selection range to new position  optionally repositioning character within line  same    to  leave in same horizontal position  start    at start     end    at end  or    fnb    for first non blank  char     Ctrl Slash  undo   Undo last action    Ctrl Space  set mark command   Set start of text marking for selection at current  cursor position  Subsequently  all cursor move operations will automatically extend the  text selection until stop mark command is issued  Unit defines what is selected  can be  one of char  line  or block  rectangle      Ctrl T  forward tab   Action varies according to focus  Active Editor Commands   Place a tab character at the current cursor position   Search Manager Instance Com   mands  Place a forward tab at the current cursor position in se
410. ode  or if you issue other keyboard bound com   mands that are not accepted by the auto completer  for example  save through keyboard  equivalent         Auto completion Limitations   Auto completion covers most but not all possible code analysis scenarios  See  section Source Code Analysis for more information on current capabilities and  how to help Wing determine the types of values              4 7  Source Assistant    The Source Assistant tool  in Wing IDE Personal and higher  can be used while  viewing or editing source code to display additional information about the point of  definition of source constructs located near the insertion caret   s position     The display will include links to the point of definition of a selection symbol  a guess  at the symbol   s type  when available  and a link to the type   s point of definition  and  docstrings and call signature when available     Note that the source assistant is also integrated with the auto completer  and will show  information as you scroll through the completion list  Similarly  it will updated as focus  moves into the Project and Source Browser tools     When working in the editor  auto completer  project view  or source browser  the source  assistant is fueled by Wing   s static Python source code analysis engine  Because of  Python   s dynamic nature  Wing cannot determine the types of all arguments or return  values  but presents as much information as it can glean from the source code  For hints  on helpi
411. ode via http   wingware com downloads  requires signed non disclosure agreement      Activating on Shared Drives    When Wing is installed on a shared drive  for example a USB keydrive  or on a file  server   the User Settings Directory where the license activation is stored may be  accessed from several different computers     In this case  Wing must be activated once on each computer  The resulting extra ac   tivations will be stored as license act1  license act2  and so forth  and Wing will  automatically select the appropriate activation depending on where it is running     Obtaining Additional Activations    If you run out of activations  you can use the self serve license manager or email us at    20    sales at wingware com to obtain additional activations on any legitimately purchased  license     1 10  User Settings Directory    The first time you run Wing  it will create your User Settings Directory automat   ically  This directory is used to store your license  preferences  auto save files  recent  lists  and other files used internally by Wing  If the directory cannot be created  Wing  will exit     The settings directory is created in a location appropriate to your operating system   The location is listed as your Settings Directory in the About Box accessible from  the Help menu     These are the locations used by Wing   Linux Unix       wingide4  a sub directory of your home directory     Windows    In Wing IDE 4 within the per user application data directory  
412. olbar Search  Commands  Move backward one word    Browse c  delete next move insert   Delete the text covered by the next cursor move  command and then enter insert mode  when working in a modal editor key binding     99 06    Browse colon  vi command by name   Execute a VI command  implements         com   mands from VI     Browse d  delete next move   Delete the text covered by the next cursor move com   mand     Browse e  forward word gravity    endm1       Action varies according to focus   Active Editor Commands  Move cursor forward one word  Optionally  provide a string  that contains the delimiters to define which characters are part of a word  Gravity may  be  start    or    end    to indicate whether cursor is placed at start or end of the word    Toolbar Search Commands  Move forward one word    Browse g Browse    end of screen line   Move to end of current wrapped line    424    Browse g Browse 0  beginning of screen line   Move to beginning of current  wrapped line    Browse g Browse Shift D  goto selected symbol defn   Goto the definition of the  selected source symbol    Browse g Browse Shift E  backward word delimiters     tnr     grav   ity    endm1       Action varies according to focus  Active Editor Commands  Move  cursor backward one word  Optionally  provide a string that contains the delimiters to  define which characters are part of a word  Gravity may be  start    or    end    to indicate  whether cursor is placed at start or end of the word   Toolbar 
413. omatic collection of argument values from  the user  When this is missing  all arguments are treated as strings     available    This defines whether or not the script is available  If missing  the  command is always available  If set to a constant  the truth value of that constant  defines availability of the script  If set to a callable object  it is invoked with the  same arguments as the script itself and the return value determines availability     label    The label to use when referring to the command in menus and else   where  When omitted  the label is derived from the command name by replacing  underscores with a space and capitalizing each word  cmdname replace    _           titleQ     doc    The documentation for the script  Usually  a docstring in the function  definition is used instead     contexts    The contexts in which the script will be added in the GUI  a described  in more detail below     plugin_override    Used in scripts that are designated as plugins to indicate that  a command should be enabled even if the plugin is not  It should be set to True     ArgInfo    Argument information is specified using the CArgInfo class in the Wing API   wingapi py inside bin in the Wing IDE installation  although the class is imported  from Wing IDE   s internals  and the datatype and formbuilder modules in Wing   s  wingutils package  The source code for this class and support modules is only avail   able in the source distribution  although most use cases are cove
414. ome terminal    title Wing Debug Console   x        xterm    T  Wing Debug Console   e        konsole  T  Wing Debug Console     e        rxvt  T  Wing Debug Console   e        e Data Filters    Huge List Threshold    246    Defines the length threshold over which a list  map  or other complex type will be  considered too large to show in the normal debugger  If this is set too large  the debugger  will time out  see network timeout preference     Internal Name    debug  huge list threshold  Data Specification     lt type int gt   Default Value    2000    Huge String Threshold    Defines the length over which a string is considered too large to fetch for display in  the debugger  If this is set too large  the debugger will time out  see network timeout  preference      Internal Name    debug  huge string threshold  Data Specification     lt type int gt   Default Value    64000    Omit Types  Defines types for which values are never shown by the debugger     Internal Name     debug  omit types    247    Data Specification      tuple of   lt type str gt      Default Value       function         builtin_function_or_method        class        clas   sobj        instance method        type        module        ufunc        wrap   per_descriptor        method_descriptor        member_descriptor         Omit Names  Defines variable key names for which values are never shown by the debugger     Internal Name    debug  omit names  Data Specification     tuple of   lt type str gt    De
415. ommand 9  previous document   Move to the previous document alphabetically  in the list of documents open in the current window    464    Command A  select all   Select all text in the editor    Command Apostrophe  comment out region   Comment out the selected region   The style of commenting can be controlled with the style argument     indented    uses the  default comment style indented at end of leading white space and    block    uses a block  comment in column zero  If not given  the style configured with the Editor   Block  Comment Style preference is used  Each call adds a level of commenting     Command B  brace match   Match brace at current cursor position  selecting all text  between the two and hilighting the braces    Command Backslash  indent to match   Indent the current line or selected region  to match indentation of preceding non blank line    Command Bracketleft  outdent region   Outdent the selected region one level of  indentation  Set sel to None to use preference to determine selection behavior  or    never   select    to unselect after indent     always select    to always select after indent  or    retain   select    to retain current selection after indent     Command Bracketright  indent region   Indent the selected region one level of  indentation  Set sel to None to use preference to determine selection behavior  or    never   select    to unselect after indent     always select    to always select after indent  or    retain   select    to retain
416. ommands    Commands can be referred to either by their short name or their fully qualified name     FQN      The short name of a command is the same as the function name but with underscores  optionally replaced by dashes  cmdname replace    _                   The FQN of a command always starts with  user   followed by the module name   followed by the short name     For example  if a function named xpext_doit is defined inside a module named  xpext py  then the short name of the command created will be xpext doit and the  FQN will be  user xpext xpext doit     160  Reloading Scripts    Once script files have been loaded  Wing watches the files and automatically reloads  them when they are edited inside Wing IDE and saved to disk  As a result  there is  usually no need to restart Wing when working on a script  except when a new script  file is added  In that case  Wing will not load the new script until the reload scripts  command  Reload All Scripts in the Edit menu  is issued or the IDE is restarted     For details on how reloading works  see Advanced Scripting     Overriding Internal Commands    Wing will not allow a script to override a command that Wing defines internally  those  documented in the Command Reference   If a script is named the same as a command  in Wing  it can only be invoked using its fully qualified name  This is a safeguard against  completely breaking the IDE by adding a script     One implication of this behavior is that a script may be broken if a 
417. omment out region     and    uncomment out region     Possible policies for each are     always select     which always leaves a selection     retain select    which leaves a selection  only if there was one to begin with  and    never select    which never leaves a selection     Internal Name     234  edit select policy  Data Specification      dict  keys    u   Indent Region        indent region       u   Indent To Match        ind    to match       u   Uncomment out Region        uncomment out    region       u   Outdent Region        outdent region       u   Comment out Re    gion        comment out region       values    u   Never Se    lect        never select       u   Retain Select        retain select       u   Always Se     lect        always select          Default Value          uncomment out region        retain select        outdent region        retain   select        comment out region        retain select        indent   region        retain select        indent to match        retain select        Middle Mouse Paste    Paste text into the editor from the clipboard when the middle mouse button is pressed   Disabling this is mainly useful for wheel mice with a soft wheel that causes pasting of  text before wheel scrolling starts     Internal Name    edit  middle mouse paste  Data Specification     lt boolean  0 or 1 gt   Default Value    True    Default Drag n Drop Action    Default drag n drop action  This is the default and can always be overridden by pressi
418. ompleter  Whether or not to include code snippets in the auto completer     Internal Name     edit  snippets in autocompleter    Data Specification      lt boolean  O or 1 gt     Default Value     True    Non Python Completion    Controls whether or not use the completer in non Python files  where it uses a simple  word list generated from the existing contents of the file  If enabled  the number of char   acters required before the completer is shown may be specified here This value overrides  any character threshold set above     Internal Name     228   edit  autocomplete non python option  Data Specification     always  never     Default Value     Non Python Word Size    Sets the minimum size of words to add to the completion list for non Python files  This  affects only words found in the file  and not words included because they are keywords  for that file type     Internal Name    edit  autocomplete non python word size  Data Specification     lt type int gt     Default Value     e Diff Merge    Orientation  Orientation of difference merge views  Side by side or top bottom    Internal Name   diff orientation    Data Specification     229   horizontal  vertical   Default Value   horizontal    Lock Scrolling    Controls whether scrolling of the diff merge editors is locked to synchronize the editor  scroll positions     Internal Name   diff scroll lock  Data Specification    lt boolean  O or 1 gt   Default Value   True    Ignore White Space  Controls whether differences w
419. on  Some special char   acters in the command line  if not escaped with   will be replaced as follows          Current file   s full path name       Previous file   s full path name    insert file  filename     Insert a file at current cursor position  prompting user for file selection Key Bindings   Emacs  Ctrl X I  Brief  Alt R    join lines  delim          num  lt numeric modifier  default 2 gt      Join together specified number of lines after current line  replace newlines with the given  delimiter  single space by default  Key Bindings  VI VIM  Shift J    join selection  delim             Join together all lines in given selection  replace newlines with the given delimiter  single  space by default  Key Bindings  VI VIM  Shift J    kill buffer     Close the current text file Key Bindings  Emacs  Ctrl X K  Brief  Ctrl    outdent lines  num  lt numeric modifier  default 1 gt      Outdent selected number of lines from cursor position  Set num to None to indent all the  lines in current selection  Key Bindings  VI VIM   lt  invokes outdent lines num None     334    outdent next move  num  lt numeric modifier  default 1 gt    Outdent lines spanned by next cursor move Key Bindings  VI VIM   lt   outdent region  sel None     Outdent the selected region one level of indentation  Set sel to None to use preference to  determine selection behavior  or    never select    to unselect after indent     always select  to  always select after indent  or  retain select    to retain curre
420. on  oslash  ugrave  uacute  ucircumflex  udiaeresis  yacute  thorn  ydiaeresis  Ao     40    gonek  breve  Lstroke  Lecaron  Sacute  Scaron  Scedilla  Tcaron  Zacute  Zcaron  Zabove   dot  aogonek  ogonek  Istroke  Icaron  sacute  caron  scaron  scedilla  tcaron  zacute   doubleacute  zcaron  zabovedot  Racute  Abreve  Lacute  Cacute  Ccaron  Eogonek   Ecaron  Dcaron  Dstroke  Nacute  Ncaron  Odoubleacute  Rcaron  Uring  Udoubleacute   Tcedilla  racute  abreve  lacute  cacute  ccaron  eogonek  ecaron  dcaron  dstroke  nacute   ncaron  odoubleacute  udoubleacute  rcaron  uring  tcedilla  abovedot  Hstroke  Hcir   cumflex  Iabovedot  Gbreve  Jcircumflex  hstroke  hcircumflex  idotless  gbreve  jcircum   flex  Cabovedot  Ccircumflex  Gabovedot  Gcircumflex  Ubreve  Scircumflex  cabovedot   ccircumflex  gabovedot  gcircumflex  ubreve  scircumflex  kra  kappa  Rcedilla  Itilde   Leedilla  Emacron  Gcedilla  Tslash  rcedilla  itilde  lcedilla  emacron  gcedilla  tslash   ENG  eng  Amacron  Iogonek  Eabovedot  Imacron  Ncedilla  Omacron  Kcedilla  Uo   gonek  Utilde  Umacron  amacron  iogonek  eabovedot  imacron  ncedilla  omacron   kcedilla  uogonek  utilde  umacron  OE  oe  Ydiaeresis  overline     kana_fullstop  kana_openingbracket  kana_closingbracket  kana_comma   kana_conjunctive  kana_middledot  kana_WO  kana_a  kana_i  kana_u  kana_e  kana_o   kana_ya  kana_yu  kana_yo  kana_tsu  kana_tu  prolongedsound  kana_A  kana_I  kana_U   kana_E  kana_O  kana_KA  kana_KI  kana_KU  kan
421. on Key Bindings  VI VIM  g v  start select block       Turn on auto select block mode Key Bindings  Normal  Shift Ctrl F8  VI VIM  Shift   Ctrl F8  Emacs  Shift Ctrl F8  Brief  Shift Ctrl F8  Visual Studio  Shift Ctrl F8  OS  X  Shift Command F8    start select char     Turn on auto select mode character by character Key Binding  Shift F8  start select line       Turn on auto select mode line by line Key Bindings  Normal  Ctrl F8  VI  VIM  Ctrl F8   Emacs  Ctrl F8  Brief  Ctrl F8  Visual Studio  Ctrl F8  OS X  Command F8    vi command by name     Execute a VI command  implements         commands from VI  Key Bindings  VI VIM     vi set  command     Perform vi   s  set action  The command is the portion after  set  Currently supports  ic  noic  ai  noai  number or nu  nonumber or nonu  ro  noro  sm  and nosm  Multiple  options can be specied in one call as for  set ic sm ai    309  Editor Insert Mode Commands    Commands available only when editor is in insert mode  used for VI bindings and pos   sibly others     enter browse mode  provisional False     Enter editor browse mode Key Bindings  VI VIM  Esc    Editor Non Modal Commands    Commands available only when the editor is in non modal editing mode  exit visual mode      Exit visual mode and return back to default mode Key Binding  Esc  start select block       Turn on auto select block mode Key Bindings  Normal  Shift Ctrl F8  VI VIM  Shift   Ctrl F8  Emacs  Shift Ctrl F8  Brief  Shift Ctrl F 8  Visual Studio  Shift Ctrl 
422. on fullscreen state of all tools and  tool bar    Shift F3  search backward   Search again using the search manager   s current settings  in backward direction    Shift F4  find points of use   Find points of use for a symbol  The symbol defaults  to the active selection     Shift F5  debug file   Start debugging the current file  rather than the main entry  point     Shift F6  run all tests   Runs all the tests in testing panel     Shift F7  run current tests   Runs the current test or tests  if possible  The current  tests are determined by the current position in the active view  The tests are debugged  when debug is True     Shift F8  start select char   Turn on auto select mode character by character  Shift F9  Multiple commands  first available is executed      e break enable   Enable the breakpoint on the current line    e break disable   Disable the breakpoint on current line    Shift Home  beginning of line text extend   Move to end of the leading white  space  if any  on the current line  adjusting the selection range to the new position     389    If toggle is True  moves to the beginning of the line if already at the end of the leading  white space  and vice versa      Shift Insert  paste   Action varies according to focus  Active Editor Commands  Paste  text from clipboard   Search Manager Instance Commands  Paste text from clipboard    Toolbar Search Commands  Paste from clipboard    Shift KP_Delete  cut   Action varies according to focus  Active Editor Commands
423. onds between last key press and when analysis is re enabled if analysis is  to be suspended while typing occurs  If  lt   0  analysis is not suspended     Internal Name    edit  suspend analysis timeout  Data Specification     lt type float gt    lt type int gt     Default Value     e Advanced    Interface File Path    Path to search for interface files for extension modules  If directory name is relative  it  will be interpreted as relative to the user settings directory  USER SETTINGS_DIR     Internal Name   pysource interfaces path  Data Specification      tuple of   lt type str gt      258    Default Value         pi files         Scrape Extension Modules    Set this to False to disable automatic loading of extension modules and other modules  that cannot be statically analysed  These modules are loaded in another process space  and    scraped    to obtain at least some analysis of the module   s contents     Internal Name     pysource scrape modules    Data Specification      lt boolean  O or 1 gt     Default Value     True    Scraping Helper Snippets    This is a dictionary from module name to Python code that should be executed before  attempting to load extension modules for scraping  This is needed in some cases such  as PyGTK and wxPython because the extension modules are designed to be loaded  only after some configuration magic is performed  For most extension modules  no extra  configuration should be needed     Internal Name     pysource scrape config    Data Sp
424. one character   adjusting the rectangular selection range to new position    Shift Alt N  diff next  Shift Alt P  diff previous    Shift Alt Right  forward char extend rect   Move cursor forward one character   adjusting the rectangular selection range to new position    Shift Alt Up  previous line extend rect   Move to previous screen line  adjusting  the rectangular selection range to new position  optionally repositioning character within  line  same    to leave in same horizontal position     start    at start     end    at end  or    fnb    for  first non blank char     Shift BackSpace  backward delete char   Action varies according to focus  Active    439    Editor Commands  Delete one character behind the cursor  or the current selection if  not empty    Toolbar Search Commands  Delete character behind the cursor    Shift Ctrl F8  start select block   Turn on auto select block mode    Shift Delete  cut   Action varies according to focus  Active Editor Commands  Cut  selected text   Search Manager Instance Commands  Cut selected text   Toolbar Search  Commands  Cut selection    Shift Down  forward page   Move cursor forward one page    Shift Down  next line extend   Move to next screen line  adjusting the selection  range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start     end    at end  or    fnb    for first non blank char     Shift End  end of line extend   Action varies according to
425. option prevents any output of any kind  to stdout and stderr  Used on Windows to avoid console creation     28    Customization    There are many ways to customize Wing IDE in order to adapt it to your needs or  preferences  This chapter describes the options that are available to you        These are some of the areas of customization that are available     e The editor can run with different personalities such as Vim  Emacs  Visual  Studio  and Brief emulation    e The action of the tab key can be configured   e The auto completer   s completion key s  can be altered   e The layout  look  and content of the IDE windows can be configured   e Keyboard shortcuts can be added  removed  or altered for any Wing command  e File sets can be defined to control some of the IDE features    e Many other options are available through preferences             2 1  Editor Personalities    The default editor personality for Wing implements most common keyboard equivalents  found in a simple graphical text editor  This uses primarily the graphical user interface  for interacting with the editor and limits use of complex keyboard driven command  interaction        Emulation of Other Editors   The first thing any Vim  Emacs  Visual Studio  or Brief user will want to do is  to set the editor personality to emulate their editor of choice  This is done with  the Keyboard Personality item in the Edit menu or with the Keyboard    Personality user interface preference              29    30    Under 
426. options sent to the Python  interpreter while debugging  The default of  u sets Python into unbuffered I O mode   which ensures that the debug process output  including prompts shown for keyboard  input  will appear in a timely fashion     Automatic Perspectives    When enabled  Wing will create and automatically switch  between Edit and Debug perspectives when debugging is stopped and started  See  Perspectives for details     Options    These project options are provided     Project Type    This can be used to select whether or not the project will be shared  among several developers  When shared  the project will be written to two files  one of  which can be shared with other developers  See Project Types for details     Default Encoding sets the default text encoding to use for files when the encoding  cannot be determined from the contents of the file  This applies to all files opened when  the project is open  whether or not they are part of the project  By default  this falls  back to the value set by the Default Encoding preference     Project Home Directory sets the base directory for the project  This overrides the  project file location as the directory on which to base relative paths shown in the Project  view and elsewhere  It is also used as the directory in which the Python Shell subpro   cess is launched and for the starting directory when the Default Directory Policy  preference is set to Current Project     Preferred Line Ending and Line Ending Policy contro
427. or     5  The Auto Indent preference controls whether or not each new line is auto   matically indented     6  The Show Indent Guides preference controls whether or not to show in   dentation guides as light vertical lines  This value can be overridden on a  file by file basis from Editor tab in File Properties     7  The Show Python Indent Warnings preference can be used to enable  or disable warnings for Python files that may contain confusing or damaged  indentation     8  The Show Override Warnings preference controls whether or not Wing  shows a warnings when the user enters indentation that does not match the  form already within a file  This is currently only possible in non Python files   by altering the Indent Style attribute in File Properties     4 10 3  Indentation Policy    The project manager also provides the ability to define the preferred indentation style   overriding the preference defined style  and to specify a policy for enforcing line endings   on a per project basis  This is accomplished with Preferred Line Ending and Line  Ending Policy under the Options tab in Project Properties     70  4 10 4  Auto Indent    The IDE ships with auto indent turned on  This causes leading white space to be added  to each newly created line  as return or enter are pressed  Enough white space is inserted  to match the indentation level of the previous line  possibly adding or removing a level of  indentation if this is indicated by context in the source  such as if  whil
428. or   s context menu  accessed  by right clicking on the editor     e kContextProject    Adds an item to the end of the project   s context menu  ac   cessed by right clicking on the project     e kContextNewMenu    Adds an item to a new menu in the menu bar  This is a  class whose constructor takes the localized name of the menu to add  The menu  is only added if one or more valid scripts with that menu context are successfully  loaded     e kContextScriptsMenu    Adds an item to the scripts menu  which is shown in  the menu bar if any scripts are added to it  this is currently the same as kCon   textNewMenu  Scripts   but may be moved in the future      All scripts  under both short and fully qualified name  are always listed along with all  internally defined commands in the auto completion list presented by the Command by  Name item in the Edit menu  and in the Custom Key Bindings preference     Top level Attributes    Default values for some of the Script Attributes defined above can be set at the top level  of the script file  and some additional attributes are also supported     e _arginfo    The default argument information to use when no per script arginfo  attribute is present     166    e _available    The default availability of scripts when no available attribute is  present     e contexts    The default contexts in which to add scripts when no contexts  attribute is present     e _ignore_scripts    When set to True  Wing will completely ignore this script file   
429. or  and contributors    LGPL  1     etk engines    GTK theme engines by The Rasterman  Owen Taylor  Randy Gor   don    LGPL  1     etkscintilla2    GTK wrapper for Scintilla by Dennis J Houy  Sven Herzberg  and  contributors   LGPL  1     GTK Themes    Aluminum Alloy by Robert Iszaki  roberTO   AluminumAlloy Li   cense  4   Black Background based on work by Eric R  Reitz  unspecified  5   Glider  by Link Dupont  LGPL  1   Glossy P by m5brane  unspecified  5   gnububble by  Kyle Davis  unspecified  5   H2O by Eric R  Reitz  unspecified  5   High Contrast   Low Contrast  and Large Print themes by Bill Haneman and T  Liebeck  LGPL  1    Smokey Blue by Jakub    jimmac    Steiner and Paul Hendrick  LGPL  1   Redmond  and Redmond95 by Anonymous  unspecified  5   Smooth2000 by ajgenius  unspec   ified  5   SmoothDesert by Ken Joseph  other  6   SmoothRetro by Ken Joseph   other  6   SmoothSealce by ajgenius  unspecified  5     etk wimp    GTK theme with Windows native look by Raymond Penners  Evan  Martin  Owen Taylor  Arnaud Charlet  and Dom Lachowicz    LGPL  1     libiconv    Unicode conversion library by Bruno Haible    LGPL  1     libpng    PNG image support library by Glenn Randers Pehrson  Andreas Eric  Dilger  Guy Eric Schalnat  and contributors    zlib libpng License    libXft    X windows font rendering by Keith Packard and contributors    MIT  License    503    e libXrender    X windows rendering extension by Keith Packard and contributors     MIT License    e pango    Te
430. or not the file is marked read only  on disk  Altering it will change the file   s disk protections for the owner of the file  on  Posix  group world permissions are never altered      Editor    These properties define how the file is displayed in the editor     Show Whitespace    This allows overriding the Show White Space preference on a  per file basis     Show EOL    This allows overriding the Show EOL preference on a per file basis     Show Indent Guides    This allows overriding the Show Indent Guides preference  on a petr file basis     Ignore Indent Errors    Wing normally reports potentially serious indentation incon   sistency in Python files  This property can be used to disable this check on a per file  basis  it is also available in the warning dialog      Ignore EOL Errors    When the project   s Line Ending Policy is set to warn about  line ending mismatches  this property can be used to disable warnings for a particular  file     56  Environment    These properties are the same as for the Python Settings defined in Project Wide  Properties  Values defined per file override the corresponding project wide property     For the Environment attribute  note that the option menu area contains some additional  choices  Use Add to Project Values to apply the values specified here to the runtime  environment specified by the project  or Add to System Environment to bypass the  project wide values and apply the per file values directly to the environment set by the  oper
431. or to end of document  Alt less  start of document   Move cursor to start of document    Alt percent  query replace   Initiate incremental mini search query replace from the  cursor position     Alt percent  query replace   Initiate incremental mini search query replace from the  cursor position     BackSpace  backward delete char   Action varies according to focus  Active Editor  Commands  Delete one character behind the cursor  or the current selection if not empty     Toolbar Search Commands  Delete character behind the cursor    Ctrl 0  replace   Bring up the search manager in replace mode   Ctrl 1  activate file option menu   Activate the file menu for the editor     Ctrl 2  activate symbol option menu 1   Activate the lst symbol menu for the  editor     Ctrl 3  activate symbol option menu 2   Activate the 2nd symbol menu for the  editor     Ctrl 4  activate symbol option menu 3   Activate the 3rd symbol menu for the  editor     Ctrl 5  activate symbol option menu 4   Activate the 4th symbol menu for the  editor     Ctrl 6  activate symbol option menu 5   Activate the 5th symbol menu for the  editor     Ctrl 9  search   Bring up the search manager in search mode     Ctrl    indent to match   Indent the current line or selected region to match inden   tation of preceding non blank line    Ctrl    set mark command   Set start of text marking for selection at current cursor  position  Subsequently  all cursor move operations will automatically extend the text  selection unt
432. orce syntax highlighting for Fortran  use lexer html       Force syntax highlighting for HTML Key Bindings  Normal  Ctrl 7 H  Emacs  Ctrl X  L H  Visual Studio  Ctrl 7 H  OS X  Command 7 H    use lexer idl       Force syntax highlighting for XP IDL  use lexer java      Force syntax highlighting for Java source  use lexer javascript      Force syntax highlighting for Javascript  use lexer latex      Force syntax highlighting for LaTeX  use lexer lisp      Force syntax highlighting for Lisp source  use lexer lout      Force syntax highlighting for LOUT typesetting language  use lexer lua      Force syntax highlighting for Lua    use lexer makefile       339  Force syntax highlighting for make files Key Bindings  Normal  Ctrl 7 M  Emacs  Ctrl X  L M  Visual Studio  Ctrl 7 M  OS X  Command 7 M  use lexer mako     Force syntax highlighting for Mako template file  use lexer matlab     Force syntax highlighting for Matlab  use lexer mmixal     Force syntax highlighting for MMIX assembly language  use lexer msidl     Force syntax highlighting for MS IDL  use lexer nncrontab     Force syntax highlighting for NNCrontab files  use lexer none       Use no syntax highlighting Key Bindings  Normal  Ctril 7 N  Emacs  Ctrl X L N  Visual  Studio  Ctrl 7 N  OS X  Command 7 N    use lexer nsis      Force syntax highlighting for NSIS  use lexer pascal      Force syntax highlighting for Pascal source  use lexer perl      Force syntax highlighting for Perl source  use lexer php      Force syntax h
433. ory  hg update  locs  lt selected files gt      Update working directory from repository    Perforce Commands    Perforce revision control system commands  perforce add  locs  lt selected files gt     Add the files to perforce   perforce blame  locs  lt selected files gt     Show blame   praise   annotate for selected files     perforce commit  locs  lt selected files gt      355    Commit the selected files to the Perforce repository  perforce commit project      Commit files in project   perforce diff  locs  lt selected files gt      Show the differences between working version of given files and the corresponding revision  in the Perforce repository    perforce edit  locs  lt selected files gt     Copy the selected files from the Perforce repository  perforce log  locs  lt selected files gt     Show the revision log for the selected files in the Perforce repository  perforce project status      Run status for entire project    perforce remove  locs  lt selected files gt     Remove the selected files   perforce resolved  locs  lt selected files gt     Indicate that any conflicts are resolved  perforce revert  locs  lt selected files gt     Revert the selected files   perforce status  locs  lt selected files gt     View the Perforce repository status for the selected files  perforce sync  locs  lt selected files gt     Copy the selected files from the Perforce repository  perforce sync project       Update files in project    306  Version Control Command Map    Base class fo
434. ory in the user settings directory  The  first time the Snippets tool is used  this directory is populated by making a copy of  the default set of snippets that ship with Wing  these can be found in snippets within  your Wing IDE installation      File Types    This directory is organized by the file type to which they apply  Snippets stored at the  top level of this directory can be used with any file in the editor and are shown in the    tab in the Snippets tool  Those stored in sub directories are used only for files of a  particular type  The name of the sub directories is the file extension for that file type   for example py for Python   This is converted to a mime type so that the snippets are  available for all files of that type  regardless of their naming  The name of the file type    67    directory also provides the file extension to use for new untitled files when a snippet is  pasted into a new file     Contexts    When snippets are defined for a particular context within a file  they are stored in a  sub directory named context ctx where context is replaced with the context name   see above   When a snippet is defined as the default  or without a particular context   it is stored in the top level of the file type directory     Configuration    Wing also stores a configuration file in the user   s snippets directory  This file is named   config and is used for internal book keeping  It should not be altered or removed  as  this may cause the loss of your snippet
435. ositioning character within line  same    to leave in same horizontal position  start    at  start     end    at end  or    fnb    for first non blank char  Key Binding  Shift Up    previous line extend rect  cursor    same     repeat  lt numeric modifier  default 1 gt      Move to previous screen line  adjusting the rectangular selection range to new position   optionally repositioning character within line  same    to leave in same horizontal position   start    at start     end    at end  or    fnb    for first non blank char  Key Bindings  Normal   Shift Alt Up  VI VIM  Shift Alt Up  Emacs  Shift Alt Up  Brief  Shift Alt Up  Visual  Studio  Shift Alt Up  OS X  Ctrl Option Up    previous line in file  cursor    start     repeat  lt numeric modifier  default 1 gt      Move to previous line in file  repositioning character within line     start    at start     end    at  end  or    fnb    for first non blank char  Key Bindings  VI VIM    invokes previous line   in file cursor    fnb        325    profile editor start      Turn on profiling for the current source editor  profile editor stop      Stop profiling and print stats to stdout  reanalyze file      Rescan file for code analysis    redo       Redo last action Key Bindings  Normal  Ctrl Y  VI  VIM  Ctrl R  Emacs  Ctrl    Brief   Ctrl U  Visual Studio  Ctrl Y  OS X  Command Shift Z    repeat command  repeat  lt numeric modifier  default 1 gt    Repeat the last editor command Key Bindings  VI VIM     repeat search char  o
436. ot recursive   but  there are more similarities than differences and the operations should perform as they  do on the command line     Commit    The commit operation copies changes in the local file system to the version control  repository that the files are associated with  The repository might be entirely local in  distributed systems such as git or bzr or it may be on a server in centralized systems  such as Subversion or CVS     The tool shown for a commit operation has a several tabs that contain the commit  message  the diffs for this commit  the list of files eligible for the commit  and the results  once the commit is run  The Files tab may be used to select files for the commit by  un checking files that should not be committed     The common operation Commit Project can be used to run the commit operation  against all the files in the project     Diff    The diff operation displays a tool with the differences between files on the local file  system and files in the repository  The diff appears in the tool itself and the right click  context menu may be used to copy the diff text  goto the source for a particular section  of the diff  or run the diff command again     Status    The status operation displays a tool with the status of files in the scope of the command     143    The files are displayed as a tree by default  but may also be displayed as a flat list by  right clicking and selecting View as List  To the left of the file name  there is an icon  to indicat
437. oto line   Position cursor at start of given line number    Command Left  beginning of line   Action varies according to focus  Active Editor  Commands  Move to beginning of current line  When toggle is True  moves to the end of  the leading white space if already at the beginning of the line  and vice versa    Toolbar  Search Commands  Move to the beginning of the toolbar search entry    Command M  execute kbd macro   Execute most recently recorded keyboard  macro  If register is None then the user is asked to enter a letter a z for the regis   ter where the macro is filed  Otherwise  register    a    is used by default     Command N  new file   Create a new file    Command O  open gui   Open a file from disk  prompting with file selection dialog if  necessary    Command Option F6  debug failed tests   Re run all the previously failed tests in  the debugger     Command Option F7  debug last tests   Debug the last group of tests that were  run     Command P  print view   Print active editor document    Command Pointer_Button1  goto clicked symbol defn   Goto the definition of  the source symbol that was last clicked on    Command Q  quit   Quit the application   Command Question  show document   Show the given documentation section    Command Quotedbl  uncomment out region   Uncomment out the selected re   gion if commented out  If one_level is True then each call removes only one level of  commenting     Command R  replace   Bring up the search manager in replace mode   Comm
438. ous screen line  adjusting the selection  range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start  end    at end  or    fnb    for first non blank char     Tab  tab key   Implement the tab key  the action of which is configurable by preference    Up  previous line   Move to previous screen line  optionally repositioning character  within line  same    to leave in same horizontal position     start    at start     end    at end  or   fnb    for first non blank char     Visual Esc  exit visual mode   Exit visual mode and return back to default mode    License Information    Wing IDE is a commercial product that is based on a number of open source technologies   Although the product source code is available for Wing IDE Professional users  with  signed non disclosure agreement  the product is not itself open source     The following sections describe the licensing of the product as a whole  the End User  License Agreement  and provide required legal statements for the incorporated open  source components     22 1  Wing IDE Software License    This End User License Agreement  EULA  is a CONTRACT between you  either an  individual or a single entity  and Wingware  which covers your use of    Wing IDE Pro   fessional    and related software components  All such software is referred to herein as  the    Software Product     A software license and a license key or serial number     Soft   ware Product 
439. ove on Windows  Pressing the  Control key after starting the drag toggles between moving or copying the text     e On Linux  select text anywhere on the display and then click with the middle  mouse button to insert it at the point of click     e In emacs mode  ctrl k  kill line  will cut one line at a time into the private  emacs clipboard  This is kept separate from the system wide clipboard and is  pasted using ctrl y  yank line   On Windows and Mac OS X  ctrl y will paste  the contents of the system wide clipboard only if the emacs clipboard is empty     e In VI mode  named text registers are supported     e On Windows and Mac OS X  click with the middle mouse button to insert the  current emacs private clipboard  if in emacs mode and the buffer is non empty   or the contents of the system wide clipboard  in all other cases   On Mac OS X   the middle mouse button is emulated by command or other key configured in the  X11 Server   s preferences  This behavior may be disabled via the Middle Mouse  Paste preference    75    It is important to note which actions use the system wide clipboard  which use the emacs  private clipboard or VI registers  and which use the X windows selection  X Windows  only   Otherwise  these commands are interchangeable in their effects     4 16  Auto reloading Changed Files    Wing   s editor detects when files have been changed outside of the IDE and can reload  files automatically  or after prompting for permission  This is useful when working 
440. ows host and the debug process on a Linux Unix host  with IP address 192 168 1 1  the following would be used instead for the same file  locations     debug  location map       gt 127 0 0 1    None    192 168 1 1          home myuser src        e  src             Again  note the use of forward slashes in the URL even though the file is on a Windows  machine     In the Preferences GUI  you would add 192 168 1 1 as a new Remote IP Address and  a single local remote mapping pair containing  home myuser src and e  src     Two Windows Hosts    If running Wing IDE on Windows and the debug process on another Windows machine  with IP address 192 168 1 1  the following would be used     debug  location map      gt 127 0 0 1    None    192 168 1 1      r   c  sre        e  sre             In this case  the host where Wing is running has mapped the entire remote  debug  process  host   s c  drive to e      In the Preferences GUI  you would add 192 168 1 1 as a new Remote IP Address and  a single local remote mapping pair containing c  sre and e  src     Two Windows Hosts using UNC Share    A UNC style path name can be used on Windows XP as follows     debug  location map      127 0 0 1    None     192 168 1 1      r   c  sre          server share dir             133  In this case  c src on the remote host  where the debug process is running  can be accessed  as  serversharedir on the machine where Wing IDE is running     In the Preferences GUI  you would add 192 168 1 1 as a new Remote 
441. owse Minus  shrink split vertically   Decrease height of this  split    Browse Ctrl W Browse Up  move editor focus dir  1  wrap False    Move  focus to next or previous editor split  optionally wrapping when the end is reached     Browse Ctrl W Browse W  move editor focus dir  1    Move focus to next or  previous editor split  optionally wrapping when the end is reached     Browse Ctrl W Browse b  move editor focus last   Move focus to last editor split    Browse Ctrl W Browse c  unsplit  action    recent or close       Unsplit all editors  so there   s only one  Action specifies how to choose the remaining displayed editor  One  of     current    Show current editor   close    Close current editor before unsplitting  recent    Change to recent buffer before unsplitting  recent or close    Change to recent buffer before closing    split  or close the current buffer if there is only  one split left   NOTE  The parameters for this command are subject to change in the future     Browse Ctrl W Browse j  move editor focus wrap False    Move focus to next  or previous editor split  optionally wrapping when the end is reached     Browse Ctrl W Browse k  move editor focus dir  1  wrap False    Move fo   cus to next or previous editor split  optionally wrapping when the end is reached     Browse Ctrl W Browse n  split vertically new 1    Split current view vertically   Create new editor in new view when new  1     Browse Ctrl W Browse o  unsplit   Unsplit all editors so there   s only
442. p you get started and  serves as a reference for the entire feature set of this product     The manual is organized by major functional area of Wing IDE  including source code  editor  project manager  source browser  Wing IDE Professional only   and debugger   Several appendices document the entire command set  provide pointers to resources and  tips for Wing and Python users  and list the full software license     The rest of this chapter describes how to install and start using Wing IDE  If you hate  reading manuals  you should be able to get started by reading this chapter only  or try  the quick start guide or tutorial        Key Concepts  Throughout this manual  key concepts  important notes  and non obvious features  are highlighted in the same way as this paragraph  If you are skimming only  look  for these marks              1 1  Product Levels    This manual is for the Wing IDE Professional product level of the Wing IDE product  line  which currently includes Wing IDE Professional  Wing IDE Personal  and Wing  IDE 101     Wing IDE Professional is the full featured Wing IDE product  and may be licensed for  commercial or non commercial uses  Wing IDE Personal is for non commercial use only  and contains a subset of the features found in Wing IDE Professional  Both products  are commercial products for sale from our website  Wing IDE Personal is not a free  download     Wing IDE 101 is a heavily scaled back IDE that was designed for teaching entry level  computer scie
443. page   Move cursor forward one page    387    Page_Down  forward page   Move cursor forward one page  Page_Up  backward page   Move cursor backward one page  Prior  backward page   Move cursor backward one page  Return  new line   Place a new line at the current cursor position    Right  forward char   Action varies according to focus  Active Editor Commands   Move cursor forward one character   Toolbar Search Commands  Move forward one  character    Shift Alt A  diff merge a b  Shift Alt B  diff merge b a    Shift Alt Down  next line extend rect   Move to next screen line  adjusting the  rectangular selection range to new position  optionally repositioning character within  line  same    to leave in same horizontal position     start    at start  end    at end  or    fnb    for  first non blank char     Shift Alt Left  backward char extend rect   Move cursor backward one character   adjusting the rectangular selection range to new position    Shift Alt N  diff next  Shift Alt P  diff previous    Shift Alt Right  forward char extend rect   Move cursor forward one character   adjusting the rectangular selection range to new position    Shift Alt Up  previous line extend rect   Move to previous screen line  adjusting  the rectangular selection range to new position  optionally repositioning character within  line  same    to leave in same horizontal position     start    at start  end    at end  or    fnb    for  first non blank char     Shift BackSpace  backward delete char   
444. page  adjusting  the selection range to new position    Shift Return  new line   Place a new line at the current cursor position    Shift Right  forward char extend   Action varies according to focus  Active Edi   tor Commands  Move cursor forward one character  adjusting the selection range to  new position   Toolbar Search Commands  Move forward one character  extending the  selection    Shift Tab  backward tab   Outdent line at current position    Shift Up  previous line extend   Move to previous screen line  adjusting the selection  range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start  end    at end  or    fnb    for first non blank char     Tab  tab key   Implement the tab key  the action of which is configurable by preference    Up  previous line   Move to previous screen line  optionally repositioning character  within line  same    to leave in same horizontal position     start    at start     end    at end  or   fnb    for first non blank char     Visual Esc  exit visual mode   Exit visual mode and return back to default mode    21 6  Brief Personality    This section documents all the default key bindings for the Brief keyboard personality   set by the Personality preference     A477  Alt 0  set bookmark mark    0       Set a bookmark at current location on the editor   Mark is the project wide textual name of the bookmark     Alt 1  fold python methods   Fold up all Python methods
445. pet list  Note that some of the operations  those  followed by     in the menus  will prompt for input at the bottom of Wing IDE   s  window     The option menu in the top right of the Snippets tool  also accessible by right clicking  on the notebook tab area  provides items for adding  removing  and renaming file types  into which to organize snippets  The name of the file type is the file extension that Wing  should use by default when creating a new file based on a snippet  It is also used to  look up the mime type of the file  so that the snippet can be made available within any  file of that type  regardless of its actual name  The   file type  which is always present   allows defining snippets that can be applied to all file types     To add  edit  renamed  copy  and remove snippets  use the items in the context menu  that appears when you right click on the surface of the snippet list in the Snippets tool   This menu also provides items for inserting the snippet into the current file or a new file     63  Contexts    It is possible to specify the context within the file for which a snippet is appropriate   This allows  for example  the definition of a snippet def that varies to include or omit  self depending on whether or not it is within a class  When available  this is done with  items in the snippet list context menu  The snippet defined for context all will be used  when no specific context match is made  The default set of snippets that ship with Wing  illustrate
446. ples for most simple scripts  can be found in editor extensions py in the scripts directory inside the Wing IDE    159    installation  This shows how to access and alter text in the current editor  among other  things     For more advanced scripting  where more complete debugging support is needed  you  will need to obtain a copy of the Wing IDE source code distribution and run Wing from  source code so that the scripts  and all of Wing  can be debugged with another copy of  Wing  usually your binary installation of Wing   This is done by signing and submitting  a non disclosure agreement     17 2  Getting Started    Scripts are Python modules or packages containing one or more Python functions  When  Wing starts up  it will search all directories in the configured Script Search Path for  modules    py files  and packages   directories with an __init__ py file and any number  of other   py files or sub packages      Wing will load scripts defined in each file and add them to the command set that is  defined internally  The script directories are traversed in the order they are given in the  preference and files are loaded in alphabetical order  When multiple scripts with the  same name are found  the script that is loaded last overrides any loaded earlier under  that name     Functions in scripts are exposed as commands in Wing unless their names start with an  underscore  Commands may be bound to keys  added to menus or run via Command by  Name on the Edit menu     Naming C
447. ported only after the fact  This means that activity  in the Debug Probe has no effect on the debug run position or stack  even though an  exception location in source code may in some cases be displayed     12 11 2  Debug Probe Options  The Options menu in the Debug Probe provides the following choices     e Clear    Clear previous text from the shell   e Save a Copy    Save a copy of the shell to a disk file     e Wrap Lines    Toggle whether or not long lines are wrapped in the display     Preference Raise Source from Tools can be used to determine whether source code  windows will be raised when exceptions occur in the Debug Probe     12 12  Debugging Multi threaded Code    Wing   s debugger can debug multi threaded code  as well as single threaded code  By  default  Wing will debug all threads and will stop all threads if a single thread stops   If multiple threads are present in the debug process  the Stack Data tool  and in Wing  Pro the Debug Probe and Watch tools  will add a thread selector popup to the stack  selector     Even though Wing tries to stop all threads  some may continue running if they do not  enter any Python code  In that case  the thread selector will list the thread as running   It also indicates which thread was the first one to stop     When moving among threads in a multi threaded program  the Show Position icon shown  in the toolbar during debugging  between the up down frame icons  is a convenient way  to return to the original thread and stopp
448. pposite 0  repeat  lt numeric modifier  default 1 gt      Repeat the last search_char operation  optionally in the opposite direction  Key Bind   ings  VI VIM       rstrip each line     Strip trailing whitespace from each line   scroll text down  repeat  lt numeric modifier  default 1 gt   move_cursor True     Scroll text down a line w o moving cursor   s relative position on screen  Repeat  is  number of lines or if  gt 0 and  lt 1 0 then percent of screen  Set move_cursor to False to  leave cursor in current position within the source  otherwise it is moved so the cursor  remains on same screen line  Key Bindings  Normal  Ctrl Down  VI  VIM  Ctrl Down   Emacs  Ctrl Down  Brief  Ctrl Down  Visual Studio  Ctrl Down    scroll text left  repeat  lt numeric modifier  default 1 gt      Scroll text left a column w o moving cursor   s relative position on screen  Repeat is  number of columns or if  gt 0 and  lt 1 0 then percent of screen  Key Bindings  VI VIM   zl    scroll text page down  repeat  lt numeric modifier  default 1 gt   move_cursor True     Scroll text down a page w o moving cursor   s relative position on screen  Repeat is  number of pages or if  gt 0 and  lt 1 0 then percent of screen  Set move_cursor to False to    326   leave cursor in current position within the source  otherwise it is moved so the cursor  remains on same screen line    scroll text page up  repeat  lt numeric modifier  default 1 gt   move_cursor True     Scroll text up a page w o moving cursor   s
449. r     Shift BackSpace  backward delete char   Action varies according to focus  Active  Editor Commands  Delete one character behind the cursor  or the current selection if  not empty    Toolbar Search Commands  Delete character behind the cursor    Shift Ctrl F8  start select block   Turn on auto select block mode    Shift Delete  cut   Action varies according to focus  Active Editor Commands  Cut    491    selected text   Search Manager Instance Commands  Cut selected text   Toolbar Search  Commands  Cut selection    Shift Down  next line extend   Move to next screen line  adjusting the selection  range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start  end    at end  or    fnb    for first non blank char     Shift End  end of line   Action varies according to focus  Active Editor Commands   Move to end of current line  Toolbar Search Commands  Move to the end of the toolbar  search entry    Shift End  end of line extend   Action varies according to focus  Active Editor Com   mands  Move to end of current line  adjusting the selection range to new position    Toolbar Search Commands  Move to the end of the toolbar search entry  extending the  selection    Shift F1  move focus   Move the keyboard focus forward within the Window to the  next editable area    Shift F11  frame show   Show the position  thread and stack frame  where the de   bugger originally stopped    Shift F2  Multiple commands
450. r backward one word  adjusting the selection range to  new position  Optionally  provide a string that contains the delimiters to define which  characters are part of a word  Gravity may be    start    or    end    to indicate whether cursor  is placed at start or end of the word   Toolbar Search Commands  Move backward one  word  extending the selection    Ctrl Shift Next  forward page extend   Move cursor forward one page  adjusting  the selection range to new position    Ctrl Shift O  open from project   Open a document from the project by typing a  fragment to match file names    Ctrl Shift Page_Down  forward page extend   Move cursor forward one page  ad   justing the selection range to new position    Ctrl Shift Page_Up  backward page extend   Move cursor backward one page  ad   justing the selection range to new position    Ctrl Shift Prior  backward page extend   Move cursor backward one page  adjust   ing the selection range to new position    Ctrl Shift R  batch replace   Display search and replace in files tool     Ctrl Shift Right  forward word extend   Action varies according to focus  Active  Editor Commands  Move cursor forward one word  adjusting the selection range to  new position  Optionally  provide a string that contains the delimiters to define which  characters are part of a word  Gravity may be    start    or    end    to indicate whether cursor  is placed at start or end of the word   Toolbar Search Commands  Move forward one  word  extending the sele
451. r dir 1  single_line 1     select all       Select all text in the editor Key Bindings  Normal  Ctrl A  Visual Studio  Ctrl A  OS  X  Command A    select lines     Select the current line or lines  set mark command  unit    char        Set start of text marking for selection at current cursor position  Subsequently  all cursor  move operations will automatically extend the text selection until stop mark command    327  is issued  Unit defines what is selected  can be one of char  line  or block  rectangle    Key Bindings  Emacs  Ctrl Space  set register       Set the register to use for subsequent cut  copy paste operations Key Bindings  VI VIM            show autocompleter       Show the auto completer for current cursor position Key Bindings  Normal  Ctrl space   Emacs  Alt Tab  Visual Studio  Ctrl J  OS X  Ctrl space    show selection     Turn on display of the current text selection  start of document       Move cursor to start of document Key Bindings  Normal  Ctrl Home  VI VIM  Ctrl   Home  Emacs  Ctrl Home  Brief  Ctrl Home  Visual Studio  Ctrl Home  OS X   Command Up    start of document extend       Move cursor to start of document  adjusting the selection range to new position Key  Bindings  Normal  Ctrl Shift Home  VI VIM  Ctrl Shift Home  Emacs  Ctrl Shift   Home  Brief  Ctrl Shift Home  Visual Studio  Ctrl Shift Home  OS X  Command Shift   Up    stop mark command  deselect True     Stop text marking for selection at current cursor position  leaving the selection 
452. r if register is None    delete to end of line  repeat  lt numeric modifier  default 1 gt   post_offset 0     Delete everything between the cursor and end of line Key Bindings  VI VIM  Shift D  invokes delete to end of line post_offset  1     delete to end of line insert  repeat  lt numeric modifier  default 1 gt      Delete everything between the cursor and end of line and enter insert move  when work   ing in a modal editor key binding  Key Bindings  VI VIM  Shift C    delete to start of line     Delete everything between the cursor and start of line Key Bindings  VI VIM  Ctrl U  duplicate line  pos    below        Duplicate the current line or lines  Places the duplicate on the line following the selection  if pos is below    or before the selection if it is    above     Key Bindings  Normal  Ctrl Shift   V    end of document       Move cursor to end of document Key Bindings  Normal  Ctri End  VI VIM  Ctrl End   Emacs  Ctrl End  Brief  Ctrl End  Visual Studio  Ctrl End  OS X  Command Down    end of document extend       Move cursor to end of document  adjusting the selection range to new position Key  Bindings  Normal  Ctrl Shift End  VI VIM  Ctrl Shift End  Emacs  Ctrl Shift End   Brief  Ctrl Shift End  Visual Studio  Ctrl Shift End  OS X  Command Shift Down    end of line  count  lt numeric modifier  default 1 gt      Move to end of current line Key Bindings  Normal  End  VI VIM  End  Emacs  End   Brief  End  Visual Studio  End  OS X  Ctrl Right    end of line extend  co
453. r in the environment  specified by BROWSER  environment variable or by searching the path for common browsers   On Windows and  OS X  the system wide configured default web browser is used instead so this preference  is ignored     Internal Name   gui url display cmds  Data Specification      dict  keys   lt type str gt   values   list of   lt type str gt       211  Default Value           Editor    Error Indicators    Controls whether Wing will show error and or warning indicators on the editor as red  and yellow underlines  When shown  hovering the mouse over the indicator shows the  error or warning detail in a tooltip     Internal Name    edit  error display  Data Specification     show errors  show none  show all   Default Value    show all    Show Line Numbers  Shows or hides line numbers on the editor     Internal Name   edit show line numbers  Data Specification    lt boolean  O or 1 gt     Default Value     212    Show Whitespace  Set to true to show whitespace with visible characters by default    Internal Name     edit  show whitespace    Data Specification      lt boolean  O or 1 gt     Default Value     Show EOL  Set to true to show end of line with visible characters by default    Internal Name     edit show eol    Data Specification      lt boolean  O or 1 gt     Default Value     Split Reuse Policy    Policy for reusing splits in editors when new files are opened  Either open in current  split or open in an adjacent split  This only has an effect when more tha
454. r version control command map classes  This provides the common  shared   commands for version control by creating them dynamically at runtime  The common  commands are as follows     add    Add a file or files to the repository    remove    Remove from the repository   commit    Commit changes for selected files to the repository  commit project    Commit all changes in the project   diff      Display differences in the local copy of a file or files  status    Display version control status of a file or files  project status    Display status for all files in the project  revert    Revert local changes to a file or files    Each of these will be renamed at runtime according to which version control system is  active by prepending the code name of the version control system  for example     diff     becomes    svn diff      The prepended names for all supported version control systems are     svn    Subversion  cvs    CVS   bzr    Bazaar   hg    Mercurial   git    Git   perforce    Perforce    20 7  Debugger Commands    Debugger Commands    Commands that control the debugger and current debug process  if any   break clear      Clear the breakpoint on the current line Key Binding  F9  break clear all       Clear all breakpoints Key Bindings  Normal  Ctrl F9  VI VIM  Ctrl F9  Emacs  Ctrl   F9  Brief  Ctrl F9  Visual Studio  Ctrl F9  OS X  Command F9    357    break clear clicked      Clear the breakpoint at current click location   break disable      Disable the breakpoint on c
455. range to the new position  If  toggle is True  moves to the beginning of the line if already at the end of the leading  white space  and vice versa      Shift KP_Insert  paste   Action varies according to focus  Active Editor Commands   Paste text from clipboard   Search Manager Instance Commands  Paste text from clip   board   Toolbar Search Commands  Paste from clipboard    Shift KP_Left  backward char extend   Action varies according to focus  Active  Editor Commands  Move cursor backward one character  adjusting the selection range  to new position   Toolbar Search Commands  Move backward one character  extending  the selection    441    Shift KP_Next  forward page extend   Move cursor forward one page  adjusting  the selection range to new position    Shift KP_Page_Down  forward page extend   Move cursor forward one page  ad   justing the selection range to new position    Shift KP_Page_Up  backward page extend   Move cursor backward one page  ad   justing the selection range to new position    Shift KP_Prior  backward page extend   Move cursor backward one page  adjust   ing the selection range to new position    Shift KP_Right  forward char extend   Action varies according to focus  Active  Editor Commands  Move cursor forward one character  adjusting the selection range to  new position   Toolbar Search Commands  Move forward one character  extending the  selection    Shift KP_Up  previous line extend   Move to previous screen line  adjusting the  selection range to n
456. ranges will be ignored unless the Case Sensitive option is turned on     Refactoring    Wing IDE includes support for refactoring  which is the process of modifying code to  improve its structure and organization without changing its behavior  For example   refactoring can be used to rename a symbol wherever it is referenced or to move a block  of code into a function  replacing it with an invocation of the new function  Wing IDE   s  refactoring support provides very high level editing operations that are informed by its  understanding of Python source code     6 1  Rename Symbol    The rename symbol operation renames a variable  function  class  or module and updates  the locations where it is used  To start a rename operation  click on the symbol in the  editor and then select Rename Symbol from the Refactor menu or from the Refactor  sub menu of the editor context menu  right click   Wing will begin searching for all of the  locations where the symbol is used and list them in the Refactoring tool  To complete  the operation  enter the new symbol name and press the Rename Checked button     Note that each found match for the symbol is displayed with a check box that can be  deselected to omit that match from the rename operation  Please refer to Find Points  of Use for more information on how Wing finds symbols for refactoring operations     After it completes  the rename operation can be undone with the Revert button in the  Refactoring tool     6 2  Move Symbol    The mo
457. rary by Jean loup Gailly and Mark Adler    zlib libpng  License  Notes     1  The LGPL requires us to redistribute the source code for all libraries linked into  Wing IDE  All of these modules are readily available on the internet  In some cases we  may have modifications that have not yet been incorporated into the official versions  if    504    you wish to obtain a copy of our version of the sources of any of these modules  please  email us at info at wingware com      2  Docutils contains a few parts under other licenses  BSD  Python 2 1  Python 2 2   Python 2 3  and GPL   See the COPYING  txt file in the source distribution for details      3  The Python Software Foundation License version 2 is an OSI Approved Open Source  license  It consists of a stack of licenses that also include other licenses that apply to  older parts of the Python code base  All of these are included in the OSI Approved  license  PSF License  BeOpen Python License  CNRI Python License  and CWI Python  License  The intellectual property rights for Python are managed by the Python Software  Foundation      4  Not OSI Approved  Wingware has obtained explicit permission from the author to  redistribute these themes      5  Not OSI Approved  These GTK themes are widely distributed works that are im   plicitely in the public domain  but without stated license or copyright  They may be  removed from Wing IDE without altering the product   s base functionality by removing  the correspondingly named direc
458. rch and replace features are available in this facility     e Forward and Backward    These display a search string entry area at the bottom  of the IDE window and interactively search forward or backward in the current  source editor  starting from the current cursor position  The search takes place as  you type and can be aborted with Esc or Ctr1 G  which returns the editor to its  original cursor location and scroll position     Searching is case insensitive unless you enter a capital letter as part of your search  string  To search repeatedly  press Ctrl U  or Ctrl S in emacs keyboard mode   to search forward and       Ctrl Shift U  or Ctrl R in emacs mode  to search  in reverse  The search direction can be changed any number of times and searching  will wrap whenever the top or bottom of the file is reached  You can also enter  Ctrl U  or Ctr1 S in emacs mode  or Ctrl Shift U  or Ctrl R in emacs mode   again initially while the search string is still blank in order to call up the most  recently used search string and begin searching forward or backward with it     Once the mini search entry area is visible  Ctr1 W will add the current word in the  editor to the search string  Pressing Ctrl W more than once while the mini search  entry is visible adds additional words from the editor to the search string     e Selection Forward and Selection Backward    These work like the above but  start with the selection in the current source editor     e Regex Forward and Regex Backw
459. rd from the cursor position   optionally entering the given search string  Key Bindings  VI VIM     Emacs  Ctrl   Alt R    isearch forward  search_string None  repeat  lt numeric modifier  default 1 gt      Initiate incremental mini search forward from the cursor position  optionally entering  the given search string  Key Bindings  Normal  Ctrl U  Emacs  Ctrl S  Visual Studio   Ctrl I  OS X  Command U    isearch forward regex  search_string None  repeat  lt numeric modifier  default 1 gt      Initiate incremental regular expression mini search forward from the cursor position     302   optionally entering the given search string  Key Bindings  VI VIM     Emacs  Ctrl   Alt S   isearch repeat  reverse False  repeat  lt numeric modifier  default 1 gt      Repeat the most recent isearch  using same string and regex text  Reverse direction  when reverse is True  Key Bindings  VI  VIM  n    isearch sel backward  persist True  repeat  lt numeric modifier  default 1 gt      Initiate incremental mini search backward from the cursor position  using current se   lection as the search string  Set persist False to do the search but end the interactive  search session immediately  Key Bindings  Normal  Ctrl Shift B  VI VIM    invokes  isearch sel backward persist 0  whole_ word 1   Emacs  Ctrl C R  Visual Studio  Ctrl   Shift B    isearch sel forward  persist True  repeat  lt numeric modifier  default 1 gt      Initiate incremental mini search forward from the cursor position  using curren
460. rd from the cursor position   optionally entering the given search string Key Bindings  VI VIM     Emacs  Ctrl Alt R    isearch forward  search_string None  repeat  lt numeric modifier  default 1 gt      Initiate incremental mini search forward from the cursor position  optionally entering  the given search string Key Bindings  Normal  Ctrl U  Emacs  Ctrl S  Visual Studio   Ctrl I  OS X  Command U    isearch forward regex  search_string None  repeat  lt numeric modifier  default 1 gt      Initiate incremental regular expression mini search forward from the cursor position   optionally entering the given search string Key Bindings  VI VIM     Emacs  Ctrl Alt   S    isearch repeat  reverse False  repeat  lt numeric modifier  default 1 gt      Repeat the most recent isearch  using same string and regex text  Reverse direction  when reverse is True  Key Bindings  VI  VIM  n    isearch sel backward  persist True  whole_word False  repeat  lt numeric modifier   default 1 gt      Initiate incremental mini search backward from the cursor position  using current se   lection as the search string  Set persist False to do the search but end the interactive  search session immediately  Key Bindings  Normal  Ctrl Shift B  VI VIM    invokes  isearch sel backward persist 0  whole_ word 1   Emacs  Ctrl C R  Visual Studio  Ctrl   Shift B    isearch sel forward  persist True  whole_word False  repeat  lt numeric modifier  de   fault 1 gt      Initiate incremental mini search forward from the c
461. re de   bugged when debug is True     Alt F7  run last tests   Run again the last group of tests that were run  The tests  are debugged when debug is True     Alt F7  view project properties   View or change project wide properties  Alt Home  fold collapse all   Collapse all fold points in the current file    Alt Left  visit history previous   Move back in history to previous visited editor  position    Alt Page_Down  fold expand all current   Expand the current fold point com   pletely    Alt Page_Up  fold collapse all current   Collapse the current fold point completely  Alt Return  new line   Place a new line at the current cursor position   Alt Right  visit history next   Move forward in history to next visited editor position  Alt Slash  fold toggle   Toggle the current fold point   Alt Up  fold collapse more current   Collapse the current fold point one more level    Alt comma  query replace   Initiate incremental mini search query replace from the  cursor position     446  Alt period  replace string   Replace all occurrences of a string from the cursor posi   tion to end of file     BackSpace  backward delete char   Action varies according to focus  Active Editor  Commands  Delete one character behind the cursor  or the current selection if not empty     Toolbar Search Commands  Delete character behind the cursor    Ctrl 0  next document   Move to the next document alphabetically in the list of  documents open in the current window    Ctrl 1  activate file option menu 
462. re shown in the Options menu in the top right of the source browser   Note that the base icons are modified in color and with arrows depending on whether  they are imported or inherited  and whether they are public  semi private  or private   This is described in more detail later     8 1 2  Browsing Project Classes    When browsing by class  the browser shows a list of all classes found in the project   Within each class  in addition to a list of derived classes  the methods and attributes for  the class are shown     Navigation to super classes is possible by right clicking on classes in the display     8 1 3  Viewing Current Module    The browser can also be asked to restrict the display to only those symbols defined in  the current module  This view shows all types of symbols at the top level and allows  expansion to visit symbols defined in nested scopes  In this mode  the browser can be  used as an index into the current editor file     89    8 2  Display Filters    A number of options are available for filtering the constructs that are presented by the  source code browser  These filters are available from the Options popup menu at the  top right of the browser  They are organized into two major groups   1  construct scope  and source  and  2  construct type     8 2 1  Filtering Scope and Source    The following distinctions of scope and source are made among the symbols that are  shown in the source browser  Constructs in each category can be shown or hidden as a  gro
463. red by the following     CArgInfo   s contructor takes the following arguments     e doc    The documentation string for the argument    e type    The data type  using one of the classes descended from    wingutils datatype CTypeDef  see below for the most commonly used ones     e formlet    The GUI formlet to use to collect the argument from the user when    needed  This is one of the classes descended wingutils formbuilder CDataGui  see  below for the most commonly used ones      162    e label    The label to use for the argument when collected from the user  This  argument may be omitted  in which case Wing builds the label as for the label  function attribute described above     Commonly Used Types    The following classes in wingutils datatype py cover most cases needed for scripting     e CBoolean    A boolean value  Constructor takes no arguments     e CType    A value of type matching one of the parameters sent to the constructor   For example  CType     for a string  CType 1  for an integer  and CType 1 0   1  for a float  or an integer     e CValue    One of the values passed to the constructor  For example  CValue  one    two    three   to allow a value to be either  one    two    or  three      e CRange    A value between the first and second argument passed to the con   structor  For example  CRange 1 0  10 0  for a value between 1 0 and 10 0   inclusive     Additional types are defined in wingutils datatype py  but these are not usually  needed in describing sc
464. red host port pairs given  with the Common Attach Hosts preference  combined with known processes that  were previously attached to Wing IDE     Wing updates the list of available processes as debug sessions are terminated from the  IDE  as they are seen to exit from the outside while attached to Wing  or when the  process cannot be contacted by Wing     To attach to a process  select it from the list and push the Attach button  You may  also type in a host  port value manually if your choice is not on the list  see Identifying  Foreign Processes      Once you are attached to a process  it continues running until it reaches a breakpoint   unhandled exception  or you Pause it     13 3 4  Identifying Foreign Processes    When debugging externally launched code  as described in Debugging Externally  Launched Code   you may use the kAttachPort constant in wingdbstub py to set  the port on which the debug process will listen for attach requests from Wing IDE  This  is useful when spawning multiple processes concurrently  or in other cases where the  debug process may not be able to attached to Wing IDE as it starts up     It is important to set unique values for the kAttachPort value for each concurrent   externally launched process  If the set port is in use  a random port number will be used  instead and it may be difficult to determine this number if the process cannot initially  contact Wing IDE to register itself     Once this is done  the debug process can be reached from Wi
465. rent location on the editor   Mark is the project wide textual name of the bookmark        Alt A  toggle mark command select_right 2    Change between text marking and  non text marking mode  Style is    char    for stream select  block    for rectangular select   and    line    for line select  Set select_right 1 to select the character to right of the cursor  when marking is toggled on     Alt BackSpace  backward delete word   Action varies according to focus  Active  Editor Commands  Delete one word behind of the cursor   Toolbar Search Commands   Delete word behind the cursor    478    Alt C  toggle mark command style    block       Change between text marking and  non text marking mode  Style is    char    for stream select   block for rectangular select   and    line    for line select  Set select_right 1 to select the character to right of the cursor  when marking is toggled on     Alt D  delete selected lines   Delete the line or range of lines that contain the current  selection  This duplicates what the editor command delete line does     Alt D  kill line   Kill rest of line from cursor to end of line  and place it into the  clipboard with any other contiguously removed lines  End of line is removed only if  there is nothing between the cursor and the end of the line     Alt Delete  backward delete word   Action varies according to focus  Active Editor  Commands  Delete one word behind of the cursor   Toolbar Search Commands  Delete  word behind the cursor    Alt Do
466. restrict       Replace num characters with given  character  Set line_mode to multiline to allow replacing across lines  extend to replace  on current line and then extend the line length  and restrict to replace only if enough  characters exist on current line after cursor position     Browse s  forward delete char insert   Delete one char in front of the cursor and  enter insert mode  when working in modal key bindings     Browse u  undo   Undo last action  Browse v  start select char   Turn on auto select mode character by character    Browse w  forward word   Action varies according to focus  Active Editor Com   mands  Move cursor forward one word  Optionally  provide a string that contains the  delimiters to define which characters are part of a word  Gravity may be start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move forward one word    Browse x  forward delete char within line   Delete one character in front of the  cursor unless at end of line  in which case delete backward  Do nothing if the line is  empty  This is VI style    x    in browser mode     427  Browse y  move to register next move   Move the text spanned by the next cursor  motion to a register  Browse z Browse    center cursor   Scroll so cursor is centered on display    Browse z Browse Minus  cursor to bottom   Scroll so cursor is centered at bottom  of display    Browse z Browse Plus  cursor to top   Scroll so cursor is centered at top
467. rgePrintInverse  AluminumAlloy Smog  HighCon   trastInverse  Smokey Blue  Glider  Smooth Sea Ice  De    fault  Glossy P  Redmond  None  Smooth Retro  Smooth     181    182    Desert  H20 gtk2 Ruby  LowContrastLargePrint  Black   Background  GnuBubble     Default Value   None    Display Language    The language to use for the user interface  Either the default for this system  or set to  a specific supported language     Internal Name    main display language  Data Specification     None  de  en  fr   Default Value    None    Display Font  Size  The base font and size to use for the user interface   s menus and labels    Internal Name   gui default font  Data Specification    None or  lt type str gt    Default Value     None    183    Source Code Font  Size    The base font and size to use for the source code editor  Python Shell  Debug Probe   Source Assistant  and other tools that display source code     Internal Name    edit  default font  Data Specification     None or  lt type str gt    Default Value    None    Use System Gtk    Use the system wide gtk library  requires gtk 2 2 or later   Wing comes with its own  private copy of the gtk libraries for which it is built and tested  Use the system gtk  option to better integrate with the gnome or other desktop environment  however on  some systems this may result in random crashing or other bugs resulting from binary  incompatibilities in library versions  This preference may be overridden on the command  line with the   sys
468. riable using a direct object reference to track it  watch expression  expr None    Add a new expression to the watch list   watch module ref      Watch selected value relative to a module looked up by name in sys modules  watch parent ref       Watch selected variable using a reference to the value   s parent and the key slot for the  value    watch ref     Watch selected variable using a direct object reference to track it  watch symbolic       Watch selected value using the symbolic path to it    Debugger Watch Commands    Commands for the debugger   s Watch tool  Wing IDE Professional only   These are  available only when the watch tool has key board focus     watch clear all     Clear all entries from the watch list  watch clear selected       Clear selected entry from the watch list    362  Call Stack View Commands    Commands available on a specific instance of the call stack tool  callstack copy to clipboard      Copy the call stack to the clipboard  as text  callstack set codeline mode  mode    Set the code line display mode for this call stack  callstack show docs       Show documentation for the call stack manager    Exceptions Commands    Commands available when the debugger   s Exceptions tool has the keyboard focus   clear     Clear the exception currently shown on the display    copy       Copy the exception traceback to the clipboard Key Bindings  Normal  Ctrl Insert   VI VIM  Ctrl Insert  Emacs  Ctrl Insert  Brief  Ctrl Insert  Visual Studio  Ctrl Insert   OS 
469. ribed in the Scripting chapter     4 3  Navigating Source    The set of menus at the top of the editor can be used to navigate through your source  code  Each menu indicates the scope of the current cursor selection in the file and may  be used to navigate within the top level scope  or within sub scopes when they exist     When editor tabs are hidden by clicking on the options drop down in the top right of  the editor area  the left most of these menus lists the currently open files by name     You can also use the Goto Definition menu item in the editor context menu to click  on a construct in your source and zoom to its point of definition  Alternatively  place  the cursor or selection on a symbol and use the Goto Selected Symbol Defn item in  the Source menu  or its keyboard equivalent     When moving around source  the history buttons in the top left of the editor area can  be used to move forward and backward through visited files and locations within a file  in a manner similar to the forward and back buttons in a web browser     Other commonly used ways to select among files that are open include the Window menu   which lists all open files  and the Recent sub menu in the File menu     Additionally  the Open From Keyboard command in the File menu can be a convenient  way to find files quickly  This operates in a temporary input area at the bottom of the  IDE window and offers auto completion of file names as you type     4 4  File status and read only files    The edi
470. ries later in the list will override scripts  of the same name found earlier  except that scripts can never override commands that  are defined internally in Wing itself  these are documented in the Command Reference  in the users manual   See the Scripting and Extending chapter of the manual for more  information on writing and using extension scripts  Note that WINGHOME scripts is  always appended to the given path since it contains scripts that ship with Wing     Internal Name   main script path  Data Specification      list of   lt type str gt      261  Default Value    u    USER_SETTINGS_DIR scripts         Auto Reload Scripts on Save    When enabled  Wing will automatically reload scripts that extend the IDE when they  are edited and saved from the IDE  This makes developing extension scripts for the  IDE very fast  and should work in most cases  Disable this when working on extension  scripts that do not reload properly  such as those that reach through the scripting API  extensively     Internal Name   main auto reload scripts  Data Specification    lt boolean  O or 1 gt   Default Value     True    Version Control    Enable built in version control  Enable the integrated version control system     Internal Name   versioncontrol enable non script  Data Specification    lt boolean  O or 1 gt     Default Value     262    True    Save files without prompting  Save without prompting before running version control commands     Internal Name     versioncontrol save without p
471. ring  dead_doubleacute  dead_caron   dead_cedilla  dead_ogonek  dead_iota  dead_voiced_sound  dead_semivoiced_sound   dead_belowdot     First_Virtual_Screen  Prev_Virtual_Screen  Next_Virtual_Screen  Last_Virtual_Screen   Terminate_Server  AccessX_Enable  AccessX_Feedback_Enable  RepeatKeys_Enable   SlowKeys_Enable  BounceKeys_Enable  StickyKeys_Enable    MouseKeys_Enable   MouseKeys_Accel_Enable  Overlayl_Enable  Overlay2_Enable  AudibleBell Enable   Pointer_Left  Pointer_Right  Pointer_Up     _3270_Duplicate  _3270_FieldMark   _3270_Right2  3270_Left2  _3270_Back   Tab  _3270_EraseEOF  _3270_EraseInput  3270_Reset  _3270_Quit  _3270_PA1    3270_PA2  _3270_PA3  _3270_Test  3270_Attn  _3270_CursorBlink  __3270_AltCur   sor  _3270_KeyClick  3270_Jump  _3270_Ident  _3270_Rule     3270_Copy  _3270_Play   _3270_Setup  3270_Record  _3270_ChangeScreen     3270_DeleteWord  _3270_ExSelect   3270_CursorSelect  _3270_PrintScreen  __3270_Enter              Agrave  Aacute  Acircumflex  Atilde  Adiaeresis  Aring  AE  Ccedilla  Egrave  Ea   cute  Ecircumflex  Ediaeresis  Igrave  Iacute  Icircumflex  Idiaeresis  ETH  Eth  Ntilde   Ograve  Oacute  Ocircumflex  Otilde  Odiaeresis  multiply  Ooblique  Ugrave  Uacute   Ucircumflex  Udiaeresis  Yacute  THORN  Thorn  ssharp  agrave  aacute  acircumflex   atilde  adiaeresis  aring  ae  ccedilla  egrave  eacute  ecircumflex  ediaeresis  igrave  ia   cute  icircumflex  idiaeresis  eth  ntilde  ograve  oacute  ocircumflex  otilde  odiaeresis   divisi
472. ripting arguments     Commonly Used Formlets    The following classes in guiutils formbuilder py cover most of the data collection  formlets needed for scripting     CSmallTextGui    A short text string entry area with optional history  auto   completion  and other options  The constructor takes the following keyword arguments   all of which are optional     max_chars    Maximum allowed text length     1 any  default 80   history    List of strings for history  most recent 1st  or   a callable that will return the his   tory  default None     163    choices   gt   List of strings with all choices  or a callable   that will take a fragment and re   turn all possible   matches  default None   partial_complete     True to only complete as far as unique match when   the tab key is pressed  Default True     stopchars   gt    List of chars to always stop partial completion   Default          allow_only aia    List of chars allowed for input  all others are  not processed   Set to None to al   low all  Default None  auto_select_choice     True to automatically select all of the entry text  when browsing on the autocom   pleter  so it gets erased  when any typing happens   Default False   default    The default value to use  Default         select_on_focus     True to select range on focus click  false to retain  pre focus selection  Default False  editable    True to allow editing this field  De   fault True     CLargeTextGui    A longer text string  The constructor takes no argumen
473. rl G  goto line   Position cursor at start of given line number  Ctrl H  replace   Bring up the search manager in replace mode   Ctrl Home  start of document   Move cursor to start of document    Ctrl I  isearch forward   Action varies according to focus  Active Editor Commands   Initiate incremental mini search forward from the cursor position  optionally entering  the given search string   Document Viewer Commands  Initiate incremental mini search  forward from the cursor position  optionally entering the given search string     Ctrl I  replace and search   Replace current selection and search again     Ctrl Insert  copy   Action varies according to focus  Active Editor Commands  Copy  selected text   Document Viewer Commands  Copy any selected text    Exceptions  Commands  Copy the exception traceback to the clipboard   Search Manager Instance  Commands  Copy selected text   Toolbar Search Commands  Cut selection    Ctrl J  show autocompleter   Show the auto completer for current cursor position    Ctrl K Ctrl C  comment out region   Comment out the selected region  The style  of commenting can be controlled with the style argument     indented    uses the default  comment style indented at end of leading white space and    block    uses a block comment  in column zero  If not given  the style configured with the Editor   Block Comment  Style preference is used  Each call adds a level of commenting     Ctrl K Ctrl F  fill paragraph   Attempt to auto justify the paragraph a
474. rmenian_verjaket   Armenian_parenright  Armenian_parenleft  Armenian_guillemotright  Arme   nian_guillemotleft  Armenian_em_dash  Armenian_dot  Armenian_mijaket  Arme   nian_separation_mark  Armenian_but  Armenian_comma  Armenian_en_dash  Ar   menian_hyphen  Armenian_yentamna  Armenian_ellipsis  Armenian_exclam  Ar   menian_amanak  Armenian_accent  Armenian_shesht  Armenian_question  Arme   nian_paruyk  Armenian AYB  Armenian_ayb  Armenian  BEN  Armenian_ben  Ar   menian_GIM  Armenian_gim  Armenian  DA  Armenian_da  Armenian YECH  Ar     43    menian_yech  Armenian_ZA  Armenian_za  Armenian_E  Armenian_e  Armenian_AT   Armenian_at  Armenian_TO  Armenian_to  Armenian_ZHE  Armenian_zhe  Arme   nian_INI  Armenian_ini  Armenian_LYUN  Armenian_lyun  Armenian KHE  Arme   nian_khe  Armenian_TSA  Armenian_tsa  Armenian KEN  Armenian_ken  Arme   nian_HO  Armenian_ho  Armenian  DZA  Armenian_dza  Armenian  GHAT  Arme   nian_ghat  Armenian  TCHE  Armenian_tche  Armenian  MEN  Armenian_men  Arme   nian_HI  Armenian_hi  Armenian   NU  Armenian_nu  Armenian SHA  Armenian sha   Armenian  VO  Armenian_vo  Armenian  CHA  Armenian_cha  Armenian PE  Arme   nian_pe  Armenian  JE  Armenian_je  Armenian RA  Armenian_ra  Armenian_SE   Armenian_se  Armenian  VEV  Armenian_vev  Armenian TYUN  Armenian_tyun   Armenian  RE  Armenian_re  Armenian  TSO  Armenian_tso  Armenian VYUN  Ar   menian vyun  Armenian  PYUR  Armenian_pyur  Armenian   KE  Armenian_ke  Ar   menian_O  Armenian_o  Armenian  FE  Armeni
475. rocess   Execute the given command line in the OS Commands tool  using default run directory and environment as defined in project properties  or the  values set in an existing command with the same command line in the OS Commands  tool     Alt 0  initiate repeat 0   Enter a sequence of digits indicating number of times to  repeat the subsequent command or keystroke     Alt 1  fold python methods   Fold up all Python methods  expand all classes  and  leave other fold points alone    Alt 1  initiate repeat 1   Enter a sequence of digits indicating number of times to  repeat the subsequent command or keystroke     Alt 2  fold python classes   Fold up all Python classes but leave other fold points  alone    Alt 2  initiate repeat 2   Enter a sequence of digits indicating number of times to  repeat the subsequent command or keystroke     Alt 3  fold python classes and defs   Fold up all Python classes  methods  and func   tions but leave other fold points alone    Alt 3  initiate repeat 3   Enter a sequence of digits indicating number of times to  repeat the subsequent command or keystroke     Alt 4  initiate repeat 4   Enter a sequence of digits indicating number of times to  repeat the subsequent command or keystroke     Alt 5  initiate repeat 5   Enter a sequence of digits indicating number of times to  repeat the subsequent command or keystroke     Alt 6  initiate repeat 6   Enter a sequence of digits indicating number of times to  repeat the subsequent command or keystroke  
476. rofile_start command  The profile can be  found in the error log file or submitted to Wingware as part of the error log included  with a bug report from the Help menu     new blank file  filename    Create a new blank file on disk  open it in an editor  and add it to the current project   new directory  filename    Create a new directory on disk and add it to the current project   new document window       Create a new document window with same documents and panels as in the current  document window  if any  otherwise empty with default panels  Key Bindings  Emacs   Ctrl X 5 2  OS X  Shift F4    new file  ext     py        Create a new file Key Bindings  Normal  Ctrl N  Visual Studio  Ctrl N  OS X   Command N    new panel window  panel_type None   Create a new panel window of given type  next document       Move to the next document alphabetically in the list of documents open in the cur   rent window Key Bindings  Normal  Ctrl Page Down  VI VIM  Ctrl Page_Down   Emacs  Ctrl Page Down  Brief  Ctrl Page Down  Visual Studio  Ctrl Page Down  OS  X  Command 0    next window       Switch to the next window alphabetically by title Key Bindings  Normal  Ctrl Comma   Emacs  Ctrl O  Visual Studio  Ctrl Comma    nth document  n  lt numeric modifier  default 0 gt      Move to the nth document alphabetically in the list of documents open in the current  window Key Bindings  VI VIM  Ctrl      open  filename     Open a file from disk using keyboard driven selection of the file    294    op
477. roject Modules    When browsing project modules  the source browser shows in alphabetical order all  Python modules and packages that you have placed into your project and all modules  and packages reachable by traversing the directory structure that contains your project  files  including all sub directories   The following types of items are present in this  display mode  each of which is displayed with its own icon     e Packages  which are directories that contain a number of files and a special file  __init__ py  This file optionally contains a special variable __all__ that lists    87    88    the file level modules Python should automatically import when the package as a  whole is imported  See the Python documentation for additional information on  creating packages     e Directories found in your project that do not contain the necessary __init__ py  file are shown as directories rather than packages     e Python files found at any level are shown as modules   Within each top level package  directory  or module  the browser will display all sub   modules  sub directories  modules  and any Python constructs  These are all labeled by  generic type  including the following types    e class    an object class found in Python source   e method    a class method    e attribute    a class or instance attribute    function    a function defined at the top level of a Python module    e variable    a variable defined at the top level of a Python module    The icons for these a
478. rompting    Data Specification      lt boolean  O or 1 gt     Default Value     True    Track changes made in project tool    Track file add  remove  and rename operations made with Wing   s Project view into the  version control repository     Internal Name     versioncontrol track disk operations    Data Specification      lt boolean  O or 1 gt     Default Value     False    Automatically update project status    Watch disk for version control changes and update the Project view and Project Status  accordingly     Internal Name     versioncontrol watch disk    Data Specification      lt boolean  O or 1 gt     Default Value     True    e SVN    Active  When Subversion version control support is active    Internal Name      versioncontrol svn active    Data Specification       u   Always Active        always active       u   Not active        not   active       u   Active if used by project directories        active     if project dir         Default Value     active if project dir    SVN Executable  Executable command to run Subversion    Internal Name      versioncontrol svn executable    Data Specification     263    264     lt type str gt     Default Value     svn    SVN Admin Executable  Executable command to run svn    Internal Name     versioncontrol svn svnadmin executable    Data Specification      lt type str gt     Default Value     svnadmin    Extra global arguments  Extra arguments to pass to every command     Internal Name     versioncontrol svn extra global arg
479. round  The background color when printing  is assumed to be white     Internal Name    edit  use default foreground when printing  Data Specification     lt boolean  O or 1 gt   Default Value     False    Project Manager Preferences    proj follow editor    Controls whether or not the IDE will follow the current editor by expanding the project  tree to show the file open in the editor     Internal Name   proj  follow editor    Data Specification     282   lt boolean  O or 1 gt     Default Value     proj follow selection    Controls whether or not the IDE will follow the current project manager selection by  opening the corresponding source file in a non sticky  auto closing  editor  In either  case  the project manager will always open a file in sticky mode when an item is double  clicked or the Goto Source context menu item is used     Internal Name   proj follow selection  Data Specification    lt boolean  0 or 1 gt     Default Value     Debugger Preferences    debug auto clear debug io  Set to automatically clear the debug I O text each time a new debug session is started    Internal Name   debug  auto clear debug io  Data Specification      lt boolean  O or 1 gt     283    Default Value     debug default python exec    Sets the default Python Executable to use for debugging and source code analysis  This  can be overridden on a project by project basis in Project Properties     Internal Name    debug  default python exec  Data Specification     None or  lt type str gt    
480. round the  current start of selection    Ctrl K Ctrl K  toggle bookmark   Set or remove a bookmark at current location on  the editor  When set  the name of the bookmark is set to an auto generated default     Ctrl K Ctrl N  goto next bookmark   Go to the next bookmark  or the first one if  no bookmark is selected  Stays within the file in the current editor when current_file_only  is    True     Ctrl K Ctrl O  open from keyboard   Open a file from disk using keyboard driven  selection of the file    Ctrl K Ctrl P  goto previous bookmark   Go to the previous bookmark in the  bookmark list  or the last one if no bookmark is selected  Stays within the file in the  current editor when current_file_only is True     450    Ctrl K Ctrl S  switch document   Switches to named document  Name may either  be the complete name or the last path component of a path name     Ctrl K Ctrl T  comment toggle   Toggle commenting out of the selected lines  The  style of commenting can be controlled with the style argument     indented    uses the  default comment style indented at end of leading white space and    block    uses a block  comment in column zero  If not given  the style configured with the Editor   Block  Comment Style preference is used     Ctrl K Ctrl U  uncomment out region   Uncomment out the selected region if com   mented out  If one_level is True then each call removes only one level of commenting     Ctrl KP_Add  zoom in   Zoom in  increasing the text display size temporaril
481. rrent window or window set  if in one window per editor windowing mode  Key Bindings  Normal  Ctrl 8  Emacs   Ctrl X D  Visual Studio  Ctrl 8  OS X  Command 8    reload scripts       Force reload of all scripts  from all configured script directories  This is usually only  needed when adding a new script file  Existing scripts are automatically reloaded when  they change on disk     remove bookmark  mark    Remove the given named bookmark  rename current file  filename    Rename current file  moving the file on disk if it exists   restart wing      Restart the application   restore default tools      Hide remove all tools and restore to original default state  save  close False  force False     Save active document  Also close it if close is True  Key Bindings  Normal  Ctrl S   VI VIM  Ctrl S  Emacs  Ctrl X Ctrl S  Brief  Alt W  Visual Studio  Ctrl S  OS X   Command S    save all  close_window False     Save all unsaved items  Will prompt the user only for choosing names for new items  that don   t have a set filename Key Bindings  Visual Studio  Ctrl Shift S    save as       Save active document to a new file Key Bindings  Normal  Ctrl Shift S  OS X   Command Shift S    scratch document  title    Scratch     mime_type    text  plain        Create a new scratch buffer with given title and mime type  The buffer is never marked  as changed but can be saved w  save as     296    set bookmark  mark     Set a bookmark at current location on the editor  Mark is the project wide tex
482. rs       19  CONTACT INFORMATION    If you have any questions about this EULA  or if you want to contact Wingware for any  reason  please direct all correspondence to  Wingware  P O  Box 400527  Cambridge   MA 02140 0006  United States of America or send email to info at wingware com     22 2  Open Source License Information    Wing IDE incorporates the following open source technologies  most of which are under  OSI Certified Open Source licenses except as indicated in the footnotes     e atk    GUI accessibility toolkit by BillHaneman  Marc Mulcahy  and  Padraig Obriain    LGPL  1     e Crystal Clear    An icon set by Everaldo    LGPL  1     502    docutils    reStructuredText markup processing by David Goodger and  contributors   Public Domain  2     expat    XML parsing library by the Thai Open Source Software Center Ltd  Clark  Cooper  and contributors    MIT License    fontconfig    Font configuration detection and support by Keith Packard    MIT  License    freetype    High quality text rendering library by Werner Lemberg  David Turner   and contributors    FreeType License    glib    Object development support library by Hans Breuer  Matthias Clasen  Tor  Lillqvist  Tim Janik  Havoc Pennington  Ron Steinke  Owen Taylor  Sebastian  Wilhelmi  and contributors    LGPL  1     gtk     Cross platform GUI library by Jonathan Blandford  Hans Breuer  Matthias  Clasen  Tim Janik  Tor Lillqvist  Federico Mena Quintero  Kristian Rietveld  S  ren  Sandmann  Manish Singh  Owen Tayl
483. rtial path names and os chdir    is called after wingdbstub debugger SuspendDebug   and before  wingdbstub debugger  ResumeDebug       e When modules are loaded with partial path names and removed from  sys modules before the debugger is started or while debugging is sus   pended     e When code objects are created on the fly using compile    the C API   or the new module  a relative filename or an incorrect filename are used  for the filename argument  and os chdir   is called before the code is  executed      11  Wing tries to identify when source code in the IDE matches or does not match the  code that is running in the debug process  There are certain very rare cases where this  will fail  which may lead to failure to stop on breakpoints and other problems even when  files are identified by the IDE as being synchronized     Using execfile    eval    or exec with a globals dict that contains __file__ will  cause Wing to incorrectly assert that the specified file has been reloaded  In practice   this scenario usually occurs when execfile   is called from the top level of a module   in which case the module is in fact being loaded or reloaded  so no mis identification of  module load status occurs   However  in cases where a module load takes a long time  or involves a long running loop at the top level  the execfile    eval    or exec may  occur after edits to the module have been made and saved  In this case  Wing will  mis identify the module as having been reloaded with 
484. rward one page  Ctrl KP_Page_Down  forward page   Move cursor forward one page  Ctrl KP_Page_Up  backward page   Move cursor backward one page  Ctrl KP_Prior  backward page   Move cursor backward one page    Ctrl KP_Right  forward word   Action varies according to focus  Active Editor Com   mands  Move cursor forward one word  Optionally  provide a string that contains the  delimiters to define which characters are part of a word  Gravity may be    start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move forward one word    Ctrl KP_Subtract  zoom out   Zoom out  increasing the text display size temporarily  by one font size    Ctrl KP_Up  previous line   Move to previous screen line  optionally repositioning  character within line  same    to leave in same horizontal position     start    at start     end     at end  or    fnb    for first non blank char     Ctrl L  center cursor   Scroll so cursor is centered on display    Ctrl Left  backward word   Action varies according to focus  Active Editor Com   mands  Move cursor backward one word  Optionally  provide a string that contains  the delimiters to define which characters are part of a word  Gravity may be    start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move backward one word    Ctrl M  brace match   Match brace at current cursor position  selecting all text be   tween the two and hilightin
485. s    Data Specification      lt type str gt     Default Value     e Git    Active  When Git version control support is active    Internal Name      versioncontrol git active    Data Specification       u   Always Active        always active       u   Not active        not   active       u   Active if used by project directories        active     if project dir         Default Value     active if project dir    Git Executable  Executable command to run Git    Internal Name      versioncontrol git executable    Data Specification      lt type str gt     Default Value     git    e BZR    Active  When Bazaar version control support is active    Internal Name     265    266     versioncontrol bzr active    Data Specification       u   Always Active        always active       u   Not active        not   active       u   Active if used by project directories        active   if project dir         Default Value     active if project dir    Bazaar Executable  Executable command to run Bazaar    Internal Name      versioncontrol bzr executable    Data Specification      lt type str gt     Default Value     bzr    e Mercurial    Active  When Mercurial version control support is active    Internal Name      versioncontrol hg active    Data Specification       u   Always Active        always active       u   Not active        not   active       u   Active if used by project directories        active     if project dir         Default Value     active if project dir    Mercurial Executable
486. s    after       Enter editor insert mode  Visual Shift I  enter insert mode pos    before       Enter editor insert mode    Visual Shift J  join selection   Join together all lines in given selection  replace new   lines with the given delimiter  single space by default     Visual Shift O  exchange point and mark   When currently marking text  this ex   changes the current position and mark ends of the current selection    Visual Shift R  enter insert mode pos    delete lines       Enter editor insert mode  Visual Shift V  enter browse mode   Enter editor browse mode    Visual Shift Y  move to register unit    line       Cut or copy a specified number of  characters or lines  or the current selection  Set cut 1 to remove the range of text from  the editor after moving to register  otherwise it is just copied   Unit should be one of     char    or    line    or    sel    for current selection     Visual c  enter insert mode pos     delete sel       Enter editor insert mode    9906    Visual colon  vi command by name   Execute a VI command  implements         com   mands from VI     Visual d  move to register unit    sel     cut 1    Cut or copy a specified number  of characters or lines  or the current selection  Set cut 1 to remove the range of text  from the editor after moving to register  otherwise it is just copied   Unit should be one  of    char    or    line    or    sel    for current selection     444    Visual g Visual Shift J  join selection delim         Join tog
487. s   Place a tab character at the current cursor position   Search Manager Instance Com   mands  Place a forward tab at the current cursor position in search or replace string    Ctrl Tab  begin visited document cycle move_back True    Start moving be   tween documents in the order they were visited  Starts modal key interaction that ends  when a key other than tab is seen or ctrl is released     Ctrl U  redo   Redo last action    Ctrl Up  scroll text up   Scroll text up a line w o moving cursor   s relative position  on screen  Repeat is number of lines or if  gt 0 and  lt 1 0 then percent of screen  Set  move_cursor to False to leave cursor in current position within the source  otherwise it  is moved so the cursor remains on same screen line     Ctrl V  paste   Action varies according to focus  Active Editor Commands  Paste  text from clipboard   Search Manager Instance Commands  Paste text from clipboard    Toolbar Search Commands  Paste from clipboard    Ctrl X  cut   Action varies according to focus  Active Editor Commands  Cut se   lected text   Search Manager Instance Commands  Cut selected text   Toolbar Search  Commands  Cut selection    Ctrl Z  undo   Undo last action    Delete  forward delete char   Action varies according to focus  Active Editor Com   mands  Delete one character in front of the cursor   Toolbar Search Commands  Delete  character in front of the cursor    Down  next line   Move to screen next line  optionally repositioning character within  line   
488. s Always so that the last application state is al   ways restored when returning to the perspective  Disabling auto save can be useful  for perspectives that should always start with a previously stored fixed state     Auto Perspectives    Auto perspectives can be used to automatically switch between the built in perspectives  edit and debug when debugging is started and stopped  When this is enabled  Wing  by default will show fewer tools when editing and most of the debugging tools only  while debugging  If the user alters which tools are shown from the defaults  this will be  remembered the next time debug is started or stopped     Auto perspectives are off by default and can be turned on with the Automatic Per   spectives attribute under the Debug tab in Project Properties     Once this is enabled  Wing will save the unnamed pre existing perspective as user and  will display the appropriate perspective edit or debug with its default tool set  Note  that the perspectives edit and debug are not created until the first time debugging is  started  After that  they appear in the Goto Perspective sub menu in the Tools menu  and in the perspective manager     Restoring Default Toolset    In Wing IDE Pro  the Tools menu item Restore Default Toolset will restore the  tools appropriate for the current perspective  If this is any of the built in perspectives  edit  debug  or diff and the Automatic Perspectives preference is turned on  then  the tool set will differ from that which i
489. s according to focus  Active  Editor Commands  Delete one word behind of the cursor   Toolbar Search Commands   Delete word behind the cursor    Ctrl C Bar  evaluate sel in shell   Evaluate the current selection from the editor  within the Python Shell tool  optionally restarting the shell first  When whole_lines is  set  the selection is rounded to whole lines before evaluation  When unspecified  set to  None   the setting from the Shell   s Option menu is used instead     Ctrl C C  comment out region   Comment out the selected region  The style of  commenting can be controlled with the style argument     indented    uses the default com   ment style indented at end of leading white space and    block    uses a block comment in  column zero  If not given  the style configured with the Editor   Block Comment Style  preference is used  Each call adds a level of commenting     Ctrl C Ctrl C  debug continue   Continue  or start  running  to next breakpoint  Ctrl C Ctrl K  debug kill   Stop debugging   Ctrl C Ctrl S  debug stop   Pause free running execution at current program counter  Ctrl C M  isearch sel    Ctrl C R  isearch sel backward   Initiate incremental mini search backward from the  cursor position  using current selection as the search string  Set persist False to do the  search but end the interactive search session immediately     Ctrl C S  isearch sel forward   Action varies according to focus  Active Editor Com   mands  Initiate incremental mini search forward fro
490. s been made     All transfers of a license to another individual are subject to the recipient   s acceptance  of the terms of the EULA and are null and void in the event that the prior user continues  to use the license or otherwise fails to relinquish their rights to the Software Product     5  INDEMNIFICATION    498    You hereby agree to indemnify Wingware against and hold harmless Wingware from  any claims  lawsuits or other losses that arise out of your breach of any provision of this  EULA     6  THIRD PARTY RIGHTS    Any software provided along with the Software Product that is associated with a separate  license agreement is licensed to you under the terms of that license agreement  This  license does not apply to those portions of the Software Product  Copies of these third  party licenses are included in all copies of the Software Product     7  SUPPORT SERVICES    Wingware may provide you with support services related to the Software Product  Use  of any such support services is governed by Wingware policies and programs described  in online documentation and or other Wingware provided materials     As part of these support services  Wingware may make available bug lists  planned  feature lists  and other supplemental informational materials  WINGWARE MAKES  NO WARRANTY OF ANY KIND FOR THESE MATERIALS AND ASSUMES NO  LIABILITY WHATSOEVER FOR DAMAGES RESULTING FROM ANY USE OF  THESE MATERIALS  FURTHERMORE  YOU MAY NOT USE ANY MATERIALS  PROVIDED IN THIS WAY TO SUPPO
491. s default themes sometimes fail to be accelerated on certain display hardware   Oddly  this seems worse on faster hardware than on slower hardware     2  If you have nVidia desktop manager  disable it for Wing     3  The first time you set up a project file  Wing analyzes all source files for the source  code browser and auto completion facilities  During this time  the browser   s class   oriented views will display only the source constructs from files of which analysis in   formation has already been obtained  The user interface may also appear to be sluggish  and Wing will consume substantial amounts of CPU time     179    To limit this effect in subsequent sessions  Wing stores its source analysis information  to disk in a cache within your User Settings Directory     However  with large projects even reading this cache and checking files for updates may  take a while when Wing is first started  This process happens in the background after  launch and takes 7 15 seconds per 100 000 lines of code on a Celeron 400 processor and  should be almost unnoticable on any modern hardware     In all cases  Wing will eventually complete this process and should at that time consume  almost no CPU during normal editing and debugging     4  In wxPython and other code that uses from xxx import   style imports  the auto   completer may initially be slow to appear if it needs to process many hundreds of symbols   This should only happen the first time it appears  however     5  On Windows
492. s in Debugging  Embedded Python Code     4  Make sure the Wing IDE preference Enable Passive Listen is turned on   to allow connection from external processes     5  Set any required breakpoints in your Python source code     6  Initiate the debug program from outside Wing IDE  for example with a page  load in your web browser  if the program is a web app  You should see the  status indicator in the lower left of the main Wing IDE window to yellow   red  or green  as described in Debugger Status  Make sure that you are  running the Python interpreter without the  0 option  The debugger will  not work when optimization is turned on     7  The debugger should stop at the first breakpoint or exception found  If no  breakpoint or exception is reached  the program will run to completion  or  you can use the Pause command in the Debug menu        Enabling Process Termination  In some cases  you may wish to enable termination of debug processes that were  launched from outside of Wing IDE  By default  Wing recognizes externally launched  processes and disables process termination in these cases unless the Kill Externally  Launched preference is enabled              If you have problems making this work  try setting kLogFile variable in wingdbstub  py  for log additional diagnostic information        Behavior on Failure to Attach to IDE   Whenever the debugger cannot contact Wing IDE  for example  if the IDE is not  running or is listening on a different port   the debug program will
493. s is True  Close empty window and quit if all document windows  closed when close_window is True     close window       Close the current window and all documents and panels in it Key Bindings  Normal   Alt F4  VI  VIM  Alt F4  Emacs  Alt F4  Brief  Alt F4  Visual Studio  Alt F4  OS X   Option F 4    command by name  command_name     Execute given command by name  collecting any args as needed Key Bindings  Normal   Ctrl F12  VI VIM  Ctrl F12  Emacs  Ctrl F12  Brief  Ctrl F12  Visual Studio  Ctrl   F12  OS X  Command F12    copy tutorial       Prompt user and copy the tutorial directory from the Wing IDE installation to the  directory selected by the user    edit file sets      Show the File Sets preference editor   edit preferences file      Edit the preferences as a text file   execute file  loc None    Execute the file at the given location or use the active view if loc is None   execute os command  title    Execute one of the stored commands in the OS Commands tool  selecting it by its title    execute os command by id  id  raise_panel True     291  Execute one of the stored commands in the OS Commands tool  selecting it by its  internal ID  execute process  cmd_line     Execute the given command line in the OS Commands tool using default run directory  and environment as defined in project properties  or the values set in an existing com   mand with the same command line in the OS Commands tool  Key Bindings  Emacs   Alt      goto bookmark  mark     Goto named bookmark K
494. s used for user defined perspectives or when  automatic perspectives are disabled     2 6  File Sets    Wing provides a way to define sets of files that can be used in various ways within the  IDE  such as for searching particular batches of files and adding only certain kinds of  files to a project     46  To view or alter the defined file sets  use the File Sets    item in the File menu  This  will display a file set editor within the Preferences manager     When adding or editing a file set  the following information may be entered     e Name    The name of the file set    e Includes    A list of inclusion criteria  each of which contains a type and a spec   ification  A file will be included in the file set if any one of these include criteria  matches it     e Excludes    A list of exclusion criteria  any of which can match to cause a file to  be excluded from the file set even if one or more include matches were also found     The following types of include and exclude criteria are supported     e Wildcard on Filename    The specification in this case is a wildcard that must  match the file name  The wildcards supported are those provided by Python   s  fnmatch module     e Wildcard on Directory Name    The specification in this case is a wildcard  that must match the directory name     e Mime Type    The specification in this case names a MIME type supported by  Wing IDE  If additional file extensions need to be mapped to a MIME type  use  the Extra File Types preferen
495. same color  The within   difference change indicators are drawn transparently with the color set in the Text Se   lection Color preference     Internal Name    edit  merged diff color  Data Specification     tuple length 3 of   from 0 to 255    from 0 to 255    from 0 to 255    Default Value      212  177  177     e Keyboard    190    Personality  Selects editor personality    Internal Name    edit personality  Data Specification     vi  visualstudio  emacs  brief  normal   Default Value    normal    Tab Key Action    Defines the action that the tab key has in files by type when it is bound to the tab  key command  Possible actions are    Indent To Match    to indent the current line or  selected lines to match the computed indent level for this context     Indent Region    to  increase the indentation of the selected line s  one level     Move to Next Tab Stop    to  enter indentation so the caret reaches the next tab stop  or    Insert Tab Character    to  insert a Tab character  chr 9       Internal Name   edit  tab key action  Data Specification    dict  keys   lt type str gt   values   lt type str gt    Default Value             default          text x python          default          Custom Key Bindings    Override key bindings in the keymap  To enter the key  place focus on the entry area  and type the key combination desired  The command is one of those documented in    191    the user manual   s Command Reference  or the name of any user scripts that have been  loade
496. saved whenever you close the project  start  a debug session  or exit Wing     You can also save a copy of your project to another location or name with Save Project  As    in the Project menu        Moving Project Files   When moving a project file on disk  doing so in a file browser or from the command  line may partially break the project if it is moved relative to the position of files that  it includes  Using Save Project As    in Wing instead will properly update the  relative paths that the project manager uses to locate files in the project              3 4  Sorting the View    The project can be set to show your files in one of several modes  using the Options  menu in the top right of the project view     49    e View As Tree    This displays the project files in true tree form  The tree  structure is based on the partial relative path from the project file     e View As Flattened Tree    This view  the default  shows files organized accord   ing to their location on disk  Each directory is shown at the top level with path  names shown as partial relative paths based on the location of the project file  If  you alter the location of the project file with Save Project As     these paths  will be updated accordingly     e View By Mime Type    This view organizes your files by MIME type     3 5  Navigating to Files    Files can be opened from the project manager window by double clicking or middle  clicking on the file name  or right clicking and using the Open in Wing
497. selection range to new position    Shift KP_Page_Down  forward page extend   Move cursor forward one page  ad   justing the selection range to new position    Shift KP_Page_Up  backward page extend   Move cursor backward one page  ad   justing the selection range to new position    Shift KP_Prior  backward page extend   Move cursor backward one page  adjust   ing the selection range to new position    Shift KP_Right  forward char extend   Action varies according to focus  Active    462    Editor Commands  Move cursor forward one character  adjusting the selection range to  new position   Toolbar Search Commands  Move forward one character  extending the  selection    Shift KP_Up  previous line extend   Move to previous screen line  adjusting the  selection range to new position  optionally repositioning character within line  same    to  leave in same horizontal position     start    at start     end    at end  or    fnb    for first non blank  char     Shift Left  backward char extend   Action varies according to focus  Active Editor  Commands  Move cursor backward one character  adjusting the selection range to new  position   Toolbar Search Commands  Move backward one character  extending the  selection    Shift Next  forward page extend   Move cursor forward one page  adjusting the  selection range to new position    Shift Page_Down  forward page extend   Move cursor forward one page  adjusting  the selection range to new position    Shift Page_Up  backward page extend   
498. set as  is  Subsequent cursor move operations will deselect the range and set selection to cursor  position  Deselect immediately when deselect is True  Key Bindings  Emacs  Ctrl G    swap lines       Swap the line at start of current selection with the line that follows it Key Bindings   Normal  Ctrl Shift L  Emacs  Ctrl X Ctrl T    tab key       Implement the tab key  the action of which is configurable by preference Key Bindings   Normal  KP_Tab  VI VIM  KP_Tab  Emacs  KP_Tab  Brief  KP_Tab  Visual Studio   KP_Tab  OS X  Tab    undo       328    Undo last action Key Bindings  Normal  Ctrl Z  VI VIM  u  Emacs  Ctrl    Brief   Alt U  Visual Studio  Ctrl Z  OS X  Command Z    yank line       Yank contents of kill buffer created with kill line into the edit buffer Key Bindings   Emacs  Ctrl Y    General Editor Commands    Editor commands that act on the current  most recently active  source editor  whether  or not it currently has the keyboard focus     check indent consistency     Check whether indents consistently use spaces or tabs throughout the file   comment out region  style None     Comment out the selected region  The style of commenting can be controlled with the  style argument     indented    uses the default comment style indented at end of leading  white space and    block    uses a block comment in column zero  If not given  the style  configured with the Editor   Block Comment Style preference is used  Each call adds a  level of commenting  Key Bindings  Normal
499. set of wild cards in the Test file patterns project attribute     11 2  Running Tests    Tests can be run and debugged from Wing in a variety of ways  The options are     e Run all tests in the testing tool  This is done with the Run All Tests item in the  Testing menu or by selecting no tests  or all tests  in the list and pressing the Run  Tests button     e Run only the tests in current file open in the source editor  This is done with the  Run Tests in Current File item in the Testing menu     e Run a subset of test s  by location of the cursor or selection in the source editor   This is done with the Run Tests at Cursor item in the Testing menu     e Run tests that failed the last time tests were run  This is done with the Run  Failed Tests item in the Testing menu     e Run all tests that were run the last time tests were run  This is done with the Run  Tests Again item in the Testing menu     Test files and or individual tests may also be selected in the Testing tool and run with  the Run Tests button or using the items in the context menu  right click  on the Testing  tool     101    For each of these run options  there is an equivalent debug option that will run the tests  in the debugger  These are in the Debug group of the Testing menu     To stop running tests  use the Abort Running Tests item in the Testing menu or the  Abort Tests item on the Testing tool     To clear the previous test results from the Testing tool  use the Clear Results item in  the right click
500. sion module and introspecting its contents  which yields only a limited amount of  information and cannot determine argument number  name  or types      To inform the code analysis facility of the contents of an extension module  it is pos   sible to create a   pi  Python interface  file  For example  for a module imported as  mymodule  the interface file is called mymodule pi  This file is simply a Python skeleton  with the appropriate structure and call signature to match the functions  attributes   classes  and methods defined in an extension module  In many cases  these files can be  auto generated from interface files     Wing will search for   pi files first in the same directory as it finds the extension  module  or its source code if it has not yet been compiled and the source code   s di   rectory is on your configured Python Path   If not found  Wing will look in the di   rectory path set with the Interfaces Path preference  Next  Wing will look in the  resources builtin pi files directory within your Wing IDE installation  Finally   Wing will look in resources packages pi files  which is used to ship some    pi files  for commonly used third party packages     When searching on the interfaces path or in the resources directories  the top level  of the directory is checked first for a matching   pi file  Then  Wing tries looking in  a sub directory     named according to the major and minor version of Python being  used with your source base  and subsequently in eac
501. snippet add file type  file_extension     Add a file type to the snippet manager  The file type is the file extension  It is added  to the last directory on the snippet path     snippet assign key binding      Assign reassign unassign the key binding associated with the given snippet by name   snippet clear key binding      Clear the key binding associated with the given snippet   snippet reload all       Reload all the snippet files  The snippet manager does this automatically most of the  time  but reload can be useful to cause the snippet panel display to update when snippets  are added or removed from outside of Wing     snippet remove file type       343  Remove a file type from the snippet manager  including any snippets defined for it  This  operates only on the last directory on the snippet path   snippet rename file type  new_file_extension     Rename a file type to the snippet manager  The file type is the file extension  This  operates on the last directory on the snippet path     snippet selected copy  new_name    Copy the selected snippet to a new name in the same context  snippet selected edit      Edit the selected snippet   snippet selected new file      Paste the currently selected snippet into a new editor  snippet selected paste      Paste the currently selected snippet into the current editor  snippet selected remove      Remove the selected snippet   snippet selected rename  new_name    Rename the selected snippet   snippet show docs      Show the Wing ID
502. sses will present a popup menu that includes any super classes   allowing quick traversal up the class hierarchy     91    8 5  Browser Keyboard Navigation    Once it has the focus  the browser tree view is navigable with the keyboard  using the  up down arrow keys  page up and page down  home end  and by using the right arrow  key on a parent to expand it  or the left arrow key to collapse a parent     Whenever a tree row is selected  pressing enter or return will open the source view for  the selected symbol in a separate window  indicating the point of definition for that  symbol     92    Interactive Python Shell    Wing provides an integrated Python Shell for execution of commands and experimental  evaluation of expressions  The version of Python used in the Python Shell  and the  environment it runs with  is configured in your project using Project Properties     This shell runs a separate Python process that is independent of the IDE and functions  without regard to the state of any running debug process  In Wing Professional  the  Debug Probe can be used to interact in a similar way with your debug process  For  details see Interactive Debug Probe     Convenient ways to run parts of your source code in the shell include     Copy Paste part of a file    Wing will automatically adjust leading indentation so the  code can be executed in the shell     Drag and Drop part of a file    This works like Copy Paste     Evaluate File in Python Shell    This command in the Source
503. sue cvs login once from  the command line before starting Wing     Source Code Analysis    Wing   s auto completer  source index menu  goto definition capability  some of the source  reformatting features  and in Wing IDE Professional the source code browser and source  assistant all rely on a central engine that reads and analyzes your source code in the  background as you add files to your project or alter your code in the source code editor     15 1  How Analysis Works    In analysing your source  Wing will use the Python interpreter and PYTHONPATH that you  have specified in your Project Properties  If you have indicated a main debug file for  your project  the values from that file   s properties are used  otherwise the project wide  values are used  Whenever any of these values changes  Wing will completely re analyze  your source code from scratch     You can view the Python interpreter and PYTHONPATH that are being used by the source  code analysis engine  by selecting the Show Analysis Stats item in the Source menu   The values shown in the resulting dialog window are read only but may be changed by  pushing the Settings button  See Project wide Properties for details on changing  these values     Be aware that if you use multiple versions of the Python interpreter or different PYTHON   PATH values for different source files in your project  Wing will analyse all files in the  project using the one interpreter version and PYTHONPATH it finds through the main  debug f
504. t   Move cursor forward one character   adjusting the rectangular selection range to new position    Ctrl Option Up  previous line extend rect   Move to previous screen line  adjust   ing the rectangular selection range to new position  optionally repositioning character  within line  same    to leave in same horizontal position     start    at start     end    at end  or   fnb    for first non blank char     Ctrl Period  visit history next   Move forward in history to next visited editor po   sition    Ctrl R  query replace   Initiate incremental mini search query replace from the cursor  position     Ctrl Return  new line   Place a new line at the current cursor position    Ctrl Right  end of line   Action varies according to focus  Active Editor Commands   Move to end of current line  Toolbar Search Commands  Move to the end of the toolbar  search entry    Ctrl Shift Left  beginning of line extend   Action varies according to focus  Active  Editor Commands  Move to beginning of current line  adjusting the selection range to  the new position  When toggle is True  moves to the end of the leading white space if  already at the beginning of the line  and vice versa    Toolbar Search Commands  Move  to the beginning of the toolbar search entry  extending the selection    Ctrl Shift Right  end of line extend   Action varies according to focus  Active Edi   tor Commands  Move to end of current line  adjusting the selection range to new position    Toolbar Search Commands  Move t
505. t can be used to control access  This is important because an unsecured debug server  provides the client  Wing IDE  full control of the host machine via the Debug Probe tool   Any Python command can be executed in this way  including programs that compromise  the security of your machine and network     Because Wing sets up an access control password during installation  attach and detach  will work out of the box as long as your debug processes are launched from Wing IDE   by you from the command line  or in the context of some service or program that is  running under your user name on a machine that has access to your User Settings  Directory     If you plan to debug remotely  you will also need to copy the file wingdebugpw from your  User Settings Directory into the same directory as wingdbstub  py     13 3 2  Detaching    The Detach from Process item in the Debug menu is used to detach from an active  debug process     Whenever a process is detached  it continues running as if outside of the debugger   without stopping at any breakpoints or exceptions  Even if a process is paused within  the debugger at time of detaching from the IDE  the process will start running actively  immediately after the IDE disconnects     136  13 3 3  Attaching    The Attach to Process item in the Debug menu is available whenever no other debug  process is attached to the IDE  This brings up a dialog box that includes a list of  available processes to attach to  The list is built from hard wi
506. t copyright notice and this permission notice ap   pear in   supporting documentation     NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS  SOFTWARE  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY  AND FITNESS  IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY  SPECIAL  INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES  WHATSOEVER RESULTING FROM LOSS OF USE  DATA OR PROFITS   WHETHER IN AN ACTION OF CONTRACT  NEGLIGENCE OR OTHER  TORTIOUS ACTION  ARISING OUT OF OR IN CONNECTION WITH THE USE  OR PERFORMANCE OF THIS SOFTWARE     Fontconfig Copyright    We are required by the license terms for Fontconfig to include the following copyright  notice in this documentation     Copyright    2001 2003 Keith Packard    Permission to use  copy  modify  dis    tribute  and sell this software and its   documentation for any purpose is hereby granted with    out fee  provided that   the above copyright notice ap    pear in all copies and that both that   copyright notice and this permission notice appear in support   ing   documentation  and that the name of Keith Packard not be used in  advertising or publicity pertaining to distribu    tion of the software without   specific  written prior permission  Keith Packard makes no  representations about the suitability of this soft    ware for any purpose  It   is provided  as is  without express or implied warranty     KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH RE   GARD TO THIS SOFTWARE     506    INCLUDING ALL IMPLIED WARRANTIES 
507. t given  the style configured with the Editor   Block  Comment Style preference is used     Ctrl D  forward delete char   Action varies according to focus  Active Editor Com   mands  Delete one character in front of the cursor   Toolbar Search Commands  Delete  character in front of the cursor    Ctrl Delete  forward delete word   Action varies according to focus  Active Editor  Commands  Delete one word in front of the cursor   Toolbar Search Commands  Delete  word in front of the cursor    Ctrl Down  scroll text down   Scroll text down a line w o moving cursor   s relative  position on screen  Repeat is number of lines or if  gt 0 and  lt 1 0 then percent of screen   Set move_cursor to False to leave cursor in current position within the source  otherwise  it is moved so the cursor remains on same screen line     Ctrl E  end of line   Action varies according to focus  Active Editor Commands  Move  to end of current line  Toolbar Search Commands  Move to the end of the toolbar search  entry    Ctrl End  end of document   Move cursor to end of document    Ctrl F  forward char   Action varies according to focus  Active Editor Commands   Move cursor forward one character   Toolbar Search Commands  Move forward one  character    Ctrl F12  command by name   Execute given command by name  collecting any args  as needed    Ctrl F3  search sel forward   Search forward using current selection    Ctrl F4  close   Close active document  Abandon any changes when ignore_changes is  True 
508. t menu with additional breakpoint operations and options   In Wing IDE Professional  the Breakpoints tool in the Tools menu can be used to view   modify  or remove defined breakpoints  Alternatively  the Debug menu or the toolbar   s  breakpoint icons can be used to set or clear breakpoints at the current line of source   where the insertion cursor or selection is located      Breakpoint Types  In Wing IDE Professional  the following types of breakpoints are available     e Regular    A regular breakpoint will always cause the debugger to stop on a given  line of code  whenever that code is reached     e Conditional    A conditional breakpoint contains an expression that is evaluated  each time the breakpoint is reached  The debugger will stop only if the condi   tional evaluates to True  any non zero  non empty  non None value  as defined by  Python   You may edit the condition of any existing breakpoint with the Edit  Breakpoint Condition    item in the Breakpoint Options group of the Debug  menu  by right clicking on the breakpoint  or in the Breakpoints tool     e Temporary    A temporary breakpoint will be removed automatically after the  first time it is encountered  No record of the breakpoint is retained for future  debug runs     Breakpoint Attributes    Once breakpoints have been defined  you can operate on them in a number of ways to  alter their behavior  These operations are available as menu items in the Debug menu   in the breakpoint margin   s context menu  an
509. t moving between documents in the order they were visited  Starts modal key  interaction that ends when a key other than tab is seen or ctrl is released     Ctrl Shift KP_Down  next line extend   Move to next screen line  adjusting the  selection range to new position  optionally repositioning character within line  same    to  leave in same horizontal position     start    at start     end    at end  or    fnb    for first non blank  char     Ctrl Shift KP_End  end of document extend   Move cursor to end of document   adjusting the selection range to new position    Ctrl Shift KP_Home  start of document extend   Move cursor to start of docu   ment  adjusting the selection range to new position    Ctrl Shift KP_Left  backward word extend   Action varies according to focus  Ac   tive Editor Commands  Move cursor backward one word  adjusting the selection range  to new position  Optionally  provide a string that contains the delimiters to define which  characters are part of a word  Gravity may be    start    or    end    to indicate whether cursor  is placed at start or end of the word   Toolbar Search Commands  Move backward one  word  extending the selection    485    Ctrl Shift KP_Next  forward page extend   Move cursor forward one page  adjust   ing the selection range to new position    Ctrl Shift K P_Page_ Down  forward page extend   Move cursor forward one page   adjusting the selection range to new position    Ctrl Shift K P_Page_Up  backward page extend   Move cursor 
510. t property is enabled   sets up the unit testing framework and file patterns in project properties     django start project  django_admin  parent_directory  sitename  superuser  supe   ruser_email  superuser_password     Start a new Django project with given site name and superuser account  This will prompt  for the location of django admin py  the parent directory  and the site name to use  It  then runs django admin py startproject  edits settings py fields DATABASE_ENGINE  and DATABASE_NAME to use sqlite3 by default  adds django contrib admin to IN   STALLED_APPS in settings py  runs syncdb  creating superuser account if one was  given   sets up the default admin templates by copying base_site html into the project   and then offers to create a new project in Wing and run the django setup wing project  command to configure the Wing IDE project for use with the new Django project     366  Editor Extensions Script    Editor extensions that also serve as examples for scripting Wing IDE   fold python methods       Fold up all Python methods  expand all classes  and leave other fold points alone Key  Bindings  Normal  Alt 1  VI VIM  Alt 1  Emacs  Alt 1  Brief  Alt 1  Visual Studio   Alt 1  OS X  Command Ctrl K P_Subtract    word list completion  word    Provide simple word list driven auto completion on the current editor  kill line with eol  ed       Variant of emacs style kill line command that always kills the eol characters  upper case  editor       Change current selection
511. t selection  as the search string  Set persist False to do the search but end the interactive search  session immediately  Key Bindings  Normal  Ctrl B  VI VIM    invokes isearch sel   forward persist 0  whole_word 1   Emacs  Ctrl C S  Visual Studio  Ctrl B    repeat search char  opposite 0  repeat  lt numeric modifier  default 1 gt      Repeat the last search_char operation  optionally in the opposite direction  Key Bind   ings  VI VIM       search char  dir 1  pos 0  repeat  lt numeric modifier  default 1 gt   single_line 0     Search for the given character  Searches to right if dir  gt  0 and to left if dir  lt  0   Optionally place cursor pos characters to left or right of the target  e g   use  1 to place  one to left   If repeat  gt  1  the Nth match is found  Set single_line 1 to search only within  the current line  Key Bindings  VI VIM  F invokes search char dir 1  single_line 1     Global Documentation Commands    Commands for the documentation viewer  These are available when the documentation  viewer has the keyboard focus     document search  txt None     Search all documentation     303  Window Commands    Commands for windows in general  These are available for the currently active window   if any     focus current editor     Move focus back to the current editor  out of any tool  if there is an active editor   move editor focus  dir 1  wrap True     Move focus to next or previous editor split  optionally wrapping when the end is reached   Key Bindings  VI VIM
512. t start or  end of the word   Toolbar Search Commands  Move backward one word    Browse g Browse g  goto nth line cursor    fnb        Position cursor at start of given  line number  1 first   1   last   This differs from goto line in that it never prompts for a  line number but instead uses the previously entered numeric modifier or defaults to going  to line one  The cursor can be positioned at    start        end     or    fnb    for first non blank  character     Browse g Browse j  next line   Move to screen next line  optionally repositioning    425    character within line     same    to leave in same horizontal position     start    at start     end     at end  or    fnb    for first non blank char     Browse g Browse k  previous line   Move to previous screen line  optionally reposi   tioning character within line  same    to leave in same horizontal position     start    at start   end    at end  or    fnb    for first non blank char     Browse g Browse m  middle of screen line   Move to middle of current wrapped  line    Browse g Browse p  paste register cursor 1    Paste text from register as before  or after the current position  If the register contains only lines  then the lines are pasted  before or after current line  rather than at cursor   If the register contains fragments of  lines  the text is pasted over the current selection or either before or after the cursor   Set pos   1 to paste after  or  1 to paste before  Set indent 1 to indent the pasted text  
513. t type of indentation is  used in that file  If the file contains some indentation  this may override the tab size   indent size  and indent style values given in preferences and the file will be indented in  a way that matches its existing content rather than with your configured defaults  If  mixed forms of indentation are found  the most common form is used     For non Python files  you can change indentation style on the fly using the Indent Style  property in the File Properties dialog  accessed by right clicking on the editor   This  allows creating files that intentionally mix indentation forms in different parts of the file   To ask Wing to return to the form of indentation it determines as most prominent in  the file  select Match Existing Indents     For Python files  the Indent Style cannot be altered without converting the whole file   s  indent style using the Indentation Manager  which can be accessed from the button  next to the Indent Style property and from the Tools menu        Tab Size   Tab size is automatically forced to 8 characters for all Python source files that  contain some spaces in indentation  This is done because the Python interpreter  defines tabs as 8 characters in size when used together with spaces  This version  of Wing does not recognize vi style tab size comments  but it does apply the Tab  Size preference when a file contains only tabs in indentation  or if it is a non Python  file              4 10 2  Indentation Preferences    The fol
514. tance Commands  Cut selected text   Toolbar  Search Commands  Cut selection    Shift KP_Down  next line extend   Move to next screen line  adjusting the selection  range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start     end    at end  or    fnb    for first non blank char     Shift KP_End  end of line extend   Action varies according to focus  Active Editor  Commands  Move to end of current line  adjusting the selection range to new position    Toolbar Search Commands  Move to the end of the toolbar search entry  extending the  selection    Shift KP_Home  beginning of line text extend   Move to end of the leading white  space  if any  on the current line  adjusting the selection range to the new position  If  toggle is True  moves to the beginning of the line if already at the end of the leading  white space  and vice versa      Shift KP_Insert  paste   Action varies according to focus  Active Editor Commands   Paste text from clipboard   Search Manager Instance Commands  Paste text from clip   board   Toolbar Search Commands  Paste from clipboard    Shift KP_Left  backward char extend   Action varies according to focus  Active  Editor Commands  Move cursor backward one character  adjusting the selection range  to new position   Toolbar Search Commands  Move backward one character  extending  the selection    Shift KP_Next  forward page extend   Move cursor forward one page  adjusting  the 
515. tandard Python Interpreters   If you are attempting to run your debug process against a non standard ver   sion of Python  for example one that has been compiled with altered values for  Py_TRACE_REFS or WITH_CYCLE_GC  or that has been altered in other ways  you  may need to recompile the debugger core module  This is only possible with Wing  IDE Professional  as it requires access to the source code  Please contact us for  details              12 6  Debugger Status    The debugger status indicator in the lower left of editor Windows is used to display  the state of the debugger  Mousing over the bug icon shows expanded debugger status  information in a tool tip  The color of the bug icon summarizes the status of the debug  process  as follows     White    There is no debug process  but Wing is listening for a connection from  an externally launched process     e Gray    There is no debug process and Wing is not allowing any external process  to attach     Green    The debug process is running   e Yellow    The debug process is paused or stopped at a breakpoint     Red    The debug process is stopped at an exception     The current debugger status is also appended to the Debugger status group in the IDE   s  Messages tool     12 7  Flow Control    Once the debugger is running  the following commands are available for controlling  further execution of the debug program from Wing  These are accessible from the tool  bar and the Debug menu     109    e At any time  a freely runn
516. te opera   tions    Browse    isearch sel backward persist 0  whole_word 1    Initiate incremen   tal mini search backward from the cursor position  using current selection as the search    415    string  Set persist False to do the search but end the interactive search session imme   diately     Browse    end of line   Action varies according to focus  Active Editor Commands   Move to end of current line  Toolbar Search Commands  Move to the end of the toolbar  search entry    Browse    goto percent line cursor    fnb       Position cursor at start of line at  given percent in file  This uses the previously entered numeric modifier or defaults to  going to line one  The cursor can be positioned at    start        end     or    fnb    for first non   blank character  or in VI mode it will do brace matching operation to reflect how VI  overrides this command     Browse  amp   repeat replace   Repeat the last query replace or range replace operation  on the current line  The first match is replaced without confirmation     Browse    next line in file cursor    fnb       Move to next line in file  repositioning  character within line     start    at start  end    at end  or    fnb    for first non blank char     Browse    repeat search char opposite 1    Repeat the last search_char operation   optionally in the opposite direction     Browse    repeat command   Repeat the last editor command    Browse    isearch forward regex   Action varies according to focus  Active Editor  Com
517. te repeat 2       Enter a sequence of digits indicating number of times to repeat the subsequent command  or keystroke  Key Bindings  Emacs  Alt 2    initiate repeat 3       Enter a sequence of digits indicating number of times to repeat the subsequent command  or keystroke  Key Bindings  Emacs  Alt 3    initiate repeat 4       Enter a sequence of digits indicating number of times to repeat the subsequent command  or keystroke  Key Bindings  Emacs  Alt 4  Brief  Ctrl R    initiate repeat 5       Enter a sequence of digits indicating number of times to repeat the subsequent command  or keystroke  Key Bindings  Emacs  Alt 5    initiate repeat 6       Enter a sequence of digits indicating number of times to repeat the subsequent command  or keystroke  Key Bindings  Emacs  Alt 6    initiate repeat 7       Enter a sequence of digits indicating number of times to repeat the subsequent command  or keystroke  Key Bindings  Emacs  Alt 7    initiate repeat 8       Enter a sequence of digits indicating number of times to repeat the subsequent command  or keystroke  Key Bindings  Emacs  Alt 8    initiate repeat 9       Enter a sequence of digits indicating number of times to repeat the subsequent command  or keystroke  Key Bindings  Emacs  Alt 9    internal profile start       Start internal profiling  Profile information is collected for Wing IDE   s internals until  internal_profile_stop is executed     293    internal profile stop       Stop internal profiling after earlier internal_p
518. ted  libraries       private gtk     Posiz only  This option causes Wing to use its private copy of GTK2  and related libraries  regardless of any preference settings  Use of private GTK may result  in Wing not matching the system wide theme  but also will avoid incompatibilities with  the system wide GTK library       verbose     Posix only  This option causes Wing to print verbose error reporting  output to stderr  On Windows  run console_wing exe instead for the same result       display     Posix only  Sets the X Windows display for Wing to run with  The display  specification should follow this argument  in standard format  e g  myhost 0 0       use sqlite dotfile locking     Posiz only  Use sqlite dotfile locking when opening  databases which are located under the    cache directory or in the  XDG_CACHE_DIR       use winghome     For developers only  This option sets WINGHOME to be used  during this run  It is used internally and by developers contributing to Wing IDE  The  directory to use follows this argument       use src     For developers only  This option is used to force Wing to run from Python  source files even if compiled files are present in the bin directory  as is the case after a  distribution has been built     27      orig python path     For developers only  This option is used internally to indicate  the original Python path in use by the user before Wing was launched  The path follows  this argument       squelch output     For developers only  This 
519. tem gtk and   private gtk command line options     Internal Name   gui use system gtk  Data Specification    lt boolean  O or 1 gt   Default Value     False    e Layout    184    Windowing Policy    Policy to use for window creation  combined window mode places toolboxes into editor  windows  separate toolbox window mode creates separate tool box windows  and one   window per editor mode also creates a new window for each editor     Internal Name   gui windowing policy  Data Specification      combined window  one window per editor  separate toolbox   window     Default Value   combined window    Show Editor Notebook Tabs    Controls whether or not Wing shows notebook tabs for switching between editors  When  false  a popup menu is used instead     Internal Name   gui use notebook editors  Data Specification    lt boolean  0 or 1 gt     Default Value     Enable Tooltips    Controls whether or not tooltips containing help are shown when the mouse hovers over  areas of the user interface     Internal Name     gui enable tooltips    Data Specification      lt boolean  O or 1 gt     Default Value     e Toolbars    Show Toolbar  Whether toolbar is shown in any window     Internal Name     gui show toolbar    Data Specification      lt boolean  O or 1 gt     Default Value     Toolbar Size    9 06     185    Sets size of the toolbar icons  One of    small        medium        large        xlarge     or use    default       to select the system wide settings     Internal Name     gui
520. tems on a single line in the variable display  areas  even if they are complex types like lists and maps  The size threshold used  for this is controlled with preference Line Threshold  If you want all values to  be shown uniformly  this preference should be set to 0     12 9 2  Watching Values    Wing can watch debug data values using a variety of techniques for tracking the value  over time  In most cases  watching a value is initiated by right clicking a value within a  Stack Data view and selecting one of the Watch menu items  The value is then added  to the list in the Watch tool and tracked by one of the following methods     e By Symbolic Path   The debugger looks at the symbolic path from locals    or globals   for the currently selected stack frame  and tries to re evaluate that  path whenever the value may have changed  For example  if you define a dictionary  variable called testdict in a function and set a value testdict 1       test     the  watched value for testdict 1  would show any value for that slot of testdict   even if you delete testdict and recreate it  In other words  value tracking is  independent of the life of any object instances in the data path     e By Direct Object Reference   The debugger uses the object reference to the  selected value to track it  If you use this mode with testdict as a whole  it would  track the contents of that dictionary as long as it exists  If you were to reassign the  variable testdict to another value  your zoomed out
521. ter any necessary PYTHONPATH for your debug process in Project Properties if not  already defined in the environment     4  If you set PYTHONHOME or PYTHONPATH environment variables  these may cause the  debug process to fail if they do not match the particular Python interpreter that Wing  is launching  You can either change the interpreter used so it matches  or unset or alter  these environment values from the outside or via Project Properties from the Project  menu     PYTHONHOME is a problem in all cases when it doesn   t match the Python interpreter  reported in the Source menu   s Show Analysis Stats dialog     PYTHONPATH is only a problem if it contains directories that are part of a Python in   stallation  When this doesn   t match the interpreter version  this leads to import errors  because Python tries to import incompatible modules     5  On Windows  check that you don   t have Hummingbird Socks Client installed on your  machine  Some versions and configurations of this product are known to incorrectly  route network packets in such a way that slows down the Wing IDE debugger enough  to make it time out during initialization     6  All forms of the Python binary distribution  TAR  RPM  and Windows installer  are  known to have problems when a newer version of Python is installed directly over an  older one on disk     175    In this case  most Python programs will appear to work fine outside of Wing IDE but  will not work within the Wing IDE debugger  This occurs
522. ter is shown immediately     Internal Name    edit  autocomplete delay  Data Specification     lt type int gt    lt type float gt   Default Value    0 0    Auto complete Timeout    Timeout in seconds from last key press after which the auto completer is automatically  hidden  If 0 0  the auto completer does not time out     Internal Name   edit  autocomplete timeout  Data Specification      lt type int gt    lt type float gt     226    Default Value     Completion Keys    Controls which keys will enter selected completion value into the editor  Shift or Ctrl  click to select multiple items     Internal Name   edit  autocomplete keys  Data Specification      tuple of   f1    3  return  space  period  bracketleft  tab    12    10  paren  left      Default Value     tab         Completion Mode    Selects how completion is done in the editor  Either insert the completion at the cursor   replace any symbols that match the leading part of the completion  and insert in other  cases   or replace any existing symbol with the new symbol     Internal Name    edit  autocomplete mode  Data Specification     replace matching  insert  replace   Default Value     insert    227    Case Insensitive Matching    Controls whether matching in the completer is case sensitive or not  The correct case is  always used when a completion is chosen     Internal Name     edit  autocomplete case insensitive    Data Specification      lt boolean  O or 1 gt     Default Value     True    Include Snippets in C
523. ter the current cursor position  Pressing  Enter will search for each subsequent match  wrapping the search when the end of the  file is reached     Text matching during toolbar quick search is case insensitive unless you enter a capital  letter as part of your search string     If focus is off the toolbar search area and it already contains a search string  clicking on  it will immediately start searching in the current source editor for the next match  If  you wish to search for another string instead  delete the text and type the desired search  string  As you delete  the match position in the editor will proceed backward until it  reaches your original search start position  so that after typing your new search string  you will be presented with the first match after the original source editor cursor position     5 2  Keyboard driven Mini Search Replace    The Edit menu contains a Mini Search sub menu that enumerates the available  keyboard driven search options  These are normally initiated with the keyboard com   mand sequences shown in the menu and can be controlled entirely by using the keyboard   All interaction with the mini search manager occurs using data entry areas displayed on  demand at the bottom of the IDE window     The implementation of the mini search manager is very close to the most commonly    TT    78    used search and replace features found in Emacs  but it is available whether or not the  Emacs editor personality is being used     The following sea
524. ternal Name     debug  stop on logged exception    240  Data Specification    lt boolean  O or 1 gt   Default Value   True    Never Report    Names of builtin exceptions to never report  even if the exception is not handled  This  list takes precedence over the always report list and the default reporting mode  but is  not used if the exception reporting mode is set to always     Internal Name    debug  never stop exceptions  Data Specification     tuple of   lt type str gt    Default Value        SystemExit        GeneratorExit        Always Report    Names of builtin exceptions to  nearly  always report  These exceptions are not reported  only if they explicitly caught by the specific subclass in the frame they are raised in     Internal Name    debug  always stop exceptions  Data Specification     tuple of   lt type str gt      Default Value     241            AssertionError         e I O    Use External Console    Selects whether to use the integrated I O panel for debug process input output or an  external terminal window  Use an external window if your debug process depends on  details of the command prompt environment for cursor movement  color text  etc     Internal Name   debug external console  Data Specification    lt boolean  O or 1 gt     Default Value     External Console Waits on Exit    Set to true to leave up the console after normal program exit  or false to close the  console right away in all cases  This is only relevant when running with an external  nati
525. the Vim and Emacs personalities  key strokes can be used to control most of the  editor   s functionality  using a textual interaction    mini buffer    at the bottom of the editor  window where the current line number and other informational messages are normally  displayed     Related preferences that alter keyboard behaviors include Tab Key Action and Com   pletion Keys for the auto completer     It is also possible to add  alter  or remove individual keyboard command mappings within  each of these personalities  See Key Equivalents for details     2 2  User Interface Options    Wing provides many options for customizing the user interface to your needs  Preferences  can be set to control the number and style of windows used when working with the IDE   the layout of tools within windows  display text font  size  and color  the style and  content of the toolbar  and the overall look or    theme     including white on black and  many others      2 2 1  Windowing Policies    Wing IDE can run in a variety of windowing modes  This is controlled by the Win   dowing Policy preference  which provides the following options     e Combined Tool Box and Editor Windows    This is the default  in which  Wing opens a single window that combines the editor area with two tool box  panels     e Separate Tool Box Windows    In this mode  Wing IDE moves all the tools  out to a separate shared window     e One Window Per Editor    In this mode  Wing IDE creates one top level win   dow for each
526. the new edits     This problem can also be triggered if a globals with __file__ is explicitly passed to  execfile    eval    or exec  However  it will only occur in this case when the code  object file name is    and locals and globals dictionaries are the same  as they are by  default for these calls      12  In very rare cases  when using the wingdbstub py  if you set sys exitfunc after  debugging has been started  the IDE will time out on a broken network connection  after the debug program exits on an exception  This only happens in some exception  handling modes with exceptions that look like they will be handled because a try except  block is present that might handle the exception  but where the exception is not in the  end handled and the debug program exits without calling StopDebug    Work arounds    140    include setting sys exitfunc before importing wingdbstub py or adding a top level  try except clause that always calls StopDebug   before exiting the debug program      13  Naming a file  lt string gt  will prevent the debugger from debugging that file because  it is confused with the default file name used in Python for code that is not located in  a file      14  The debugger may fail to step or start after stopping at a breakpoint if the floating  point mode is set to single precision  24 bit  on Intel x86 and potentially other processors   This is sometimes done by graphics libraries such as DirectX or by other code that  optimizes floating point calculations
527. the previously failed tests  The tests are debugged when debug is True  Key  Bindings  Normal  Alt F6  VI VIM  Alt F6  Emacs  Alt F6  Brief  Alt F6  Visual  Studio  Alt F6  OS X  Option F6    run last tests  debug False     Run again the last group of tests that were run  The tests are debugged when debug is  True  Key Bindings  Normal  Alt F7  VI  VIM  Alt F7  Emacs  Alt F 7  Brief  Alt F 7   Visual Studio  Alt F7  OS X  Option F7    run selected tests  debug False     Run the tests currently selected in the testing panel  The tests are debugged when debug  is    True     run test files  locs None  debug False     Run or debug the tests in the current editor or in the given file or files if locs is not    351  None  The locations list may be a list of locations or filenames or a single location or  filename  The tests are debugged if debug True   scan for unittests  doc None     Scan or re scan the current editor file for unittests    20 6  Version Control Commands    Subversion Commands    Subversion revision control system commands  svn blame  locs  lt selected files gt     Show blame   praise   annotate for selected files   svn checkout       Start the initial checkout from svn repository  Repository and working directory must  be entered before the checkout     svn diff recent  locs  lt selected files gt     Show diffs for most recent checkin   svn log  locs  lt selected files gt     Show the revision log for the selected files in the Subversion repository  svn resolved 
528. there is nothing between the cursor and the end of the line     Alt L  toggle mark command style    line       Change between text marking and  non text marking mode  Style is    char    for stream select     block    for rectangular select   and    line    for line select  Set select_right 1 to select the character to right of the cursor  when marking is toggled on     Alt Left  visit history previous   Move back in history to previous visited editor  position    Alt M  toggle mark command select_right 1    Change between text marking  and non text marking mode  Style is char    for stream select     block    for rectangu   lar select  and    line    for line select  Set select_right 1 to select the character to right of  the cursor when marking is toggled on     Alt Minus  previous document   Move to the previous document alphabetically in  the list of documents open in the current window    Alt N  next document   Move to the next document alphabetically in the list of  documents open in the current window    Alt Page_Down  fold expand all current   Expand the current fold point com   pletely    Alt Page_Up  fold collapse all current   Collapse the current fold point completely    Alt R  insert file   Insert a file at current cursor position  prompting user for file  selection    Alt Return  new line   Place a new line at the current cursor position   Alt Right  visit history next   Move forward in history to next visited editor position  Alt S  search   Bring up the search
529. thon versions    Wing supports CPython 2 0 through 3 1  Stackless Python 2 4 through 3 1  and cygwin  Python 2 2 through 2 5  Wing can also be used with IronPython and Jython  but the  debugger will not work with these implementations of Python     Wing   s debugger is pre built for each of these versions of Python with and without     with pydebug  Both 32 bit and 64 bit compilation are supported on Windows and  Linux  CPython   with framework builds are also supported on OS X  If necessary  it  is possible for customers to compile Wing   s debugger against other custom versions of  Python     Before installing Wing  you may need to download Python and install it if you do not  already have it on your machine     On Windows  Python must be installed using one of the installers from the python org   or by building from source if desired      On Linux  most distributions come with Python  Installing Python is usually only  necessary on SUSE or a custom built Linux installation     16  On SUSE Linux  you can install the gmp and python packages that come with your  distribution  or install from the materials available through the links given above     On Mac OS X  Wing IDE only supports Python 2 2 and later     1 5  Technical Support  If you have problems installing or using Wing IDE  please submit a bug report or feedback  using the Submit Bug Report or Submit Feedback items in Wing IDE   s Help menu     Wingware Technical Support can also be contacted by email at support at wi
530. ting file to the project   browse selected from project      Browse file currently selected in the project manager  clear project main debug file       Clear main debug file to nothing  so that debugging runs the frontmost window by  default    close project     Close currently open project file    debug selected from project       305    Start debugging the file currently selected in the project manager  execute selected from project      Execute the file currently selected in the project manager  new project      Create a new project    open ext selected from project      Open file currently selected in the project manager  open project  filename None    Open the given project file  or prompt the user to select a file if the filename is not given   open selected from project      Open files currently selected in the project manager  remove directory from project  loc None  gui True   Remove directory from project   remove selection from project      Remove currently selected file or package from the project  rescan project directories  dirs None  recursive True     Scan project directories for changes  If list of directories is not specified  currently  selected directories are used     save project     Save project file   save project as  filename None     Save project file under the given name  or prompt user for a name if the filename is not  given     set current as main debug file     Set current frontmost file as the main debug file for this project    set selected as
531. tion    Ctrl Alt Comma  query replace regex   Initiate incremental mini search  query replace from the cursor position  The search string is treated as a regular  expression     Ctrl Alt Down  goto next bookmark current_file_only True    Go to the next  bookmark  or the first one if no bookmark is selected  Stays within the file in the current  editor when current_file_only is True     Ctrl Alt F  search sel forward   Search forward using current selection    Ctrl Alt F6  debug failed tests   Re run all the previously failed tests in the debug   ger     Ctrl Alt F7  debug last tests   Debug the last group of tests that were run   Ctrl Alt G  goto bookmark   Goto named bookmark  Ctrl Alt K  show bookmarks   Show a list of all currently defined bookmarks    Ctrl Alt Left  goto previous bookmark   Go to the previous bookmark in the book   mark list  or the last one if no bookmark is selected  Stays within the file in the current  editor when current_file_only is True     Ctrl Alt M  set bookmark   Set a bookmark at current location on the editor  Mark  is the project wide textual name of the bookmark     Ctrl Alt Right  goto next bookmark   Go to the next bookmark  or the first one if  no bookmark is selected  Stays within the file in the current editor when current_file_only  is True     Ctrl Alt T  toggle bookmark   Set or remove a bookmark at current location on the  editor  When set  the name of the bookmark is set to an auto generated default     Ctrl Alt Up  goto previous 
532. tions initiated by  dragging items around on the Project view     Internal Name   proj confirm file drags  Data Specification    lt boolean  O or 1 gt     Default Value     e External Display    210    File Display Commands    Linux only  The commands used to display or edit local disk files selected from the Help  menu or project files selected for external display  This is a map from mime type to a  list of display commands  each display command is tried in order of the list until one  works  The mime type         can be used to set a generic viewer  such as a web browser   Use  s to place the file name on the command lines  If unspecified then Wing will use  the configured URL viewer in the environment  specified by BROWSER environment  variable or by searching the path for common browsers   On Windows and OS X  the  system wide configured default viewer for the file type is used instead so this preference  is ignored     Internal Name    gui file display cmds  Data Specification     dict  keys   lt type str gt   values   list of   lt type str gt     Default Value          Url Display Commands    Linux only  The commands used to display URLs  This is a map from protocol type to  a list of display commands  each display command is tried in order of the list until one  works  The protocol         can be used to set a generic viewer  such as a multi protocol  web browser  Use  s to place the URL on the command lines  If unspecified then  Wing will use the configured URL viewe
533. tive Editor Commands  Move cursor forward one word     421    Optionally  provide a string that contains the delimiters to define which characters are  part of a word  Gravity may be  start or    end    to indicate whether cursor is placed at  start or end of the word   Toolbar Search Commands  Move forward one word    Browse Shift F  search char dir  1  single_line 1    Search for the given char   acter  Searches to right if dir  gt  0 and to left if dir  lt  0  Optionally place cursor pos  characters to left or right of the target  e g   use  1 to place one to left   If repeat  gt  1   the Nth match is found  Set single_line 1 to search only within the current line     Browse Shift G      goto nth line default end cursor    fnb       Same as  goto_nth_line but defaults to end of file if no lineno is given    Browse Shift H  cursor move to top   Move cursor to top of display  without  scrolling   optionally at an offset of given number of lines below top    Browse Shift I  enter insert mode pos    fnb       Enter editor insert mode    Browse Shift J  join lines   Join together specified number of lines after current line   replace newlines with the given delimiter  single space by default     Browse Shift L  cursor move to bottom   Move cursor to bottom of display  with   out scrolling   optionally at an offset of given number of lines before bottom    Browse Shift M  cursor move to center   Move cursor to center of display  without  scrolling     Browse Shift N  isearch rep
534. to match current line  Set cursor  1 to place cursor before lines or cursor 1 to place it  after lines after paste completes     Browse g Browse q Browse q  fill paragraph   Attempt to auto justify the para   graph around the current start of selection    Browse g Browse r  replace char  line mode    extend       Replace num characters  with given character  Set line_mode to multiline to allow replacing across lines  extend  to replace on current line and then extend the line length  and restrict to replace only if  enough characters exist on current line after cursor position     Browse g Browse u  case lower next move   Change case of text spanned by next  cursor movement to lower case    Browse g Browse v  previous select   Turn on auto select using previous mode and  selection    Browse g Browse    case swap next move   Change case of text spanned by next  cursor movement so each letter is the opposite of its current case    Browse h  backward char wrap 0    Action varies according to focus  Active Edi   tor Commands  Move cursor backward one character   Toolbar Search Commands  Move  backward one character    Browse j  next line   Move to screen next line  optionally repositioning character  within line     same    to leave in same horizontal position     start    at start     end    at end  or   fnb    for first non blank char     Browse k  previous line   Move to previous screen line  optionally repositioning char   acter within line  same    to leave in same horizonta
535. ton can be used to try executing  with the current settings  A temporary entry is added to the OS Commands tool  and  removed again after the command properties dialog is closed     98    Unit Testing    The Wing IDE Testing tool provides a convenient way to run and debug unit tests  written using the standard library   s unittest module  doctests  or the nose package from  http    somethingaboutorange com mrl projects nose  For nose support  the nose pack   age must be installed via easy_install or other mechanism  Wing does not come with nose  or install it for you  Wing   s nose support was tested with nose 0 10 1     Overview    To add tests  use the Testing menu items  Tests can be added individually with Add  Single File and Add Current File or can be added by applying a filter to the set of  all files in the project  using Add Files from Project  For details on adding from the  project  see Project Test Files     The testing framework used by files is set through the Default Test Framework  field on the Testing page of Project properties or the Test Framework field on the  Testing page of File properties for individual test files     To run tests  press the Run Tests button  or use one of the items in the Testing menu   For details  see Running Tests     While tests are running  a jogging man icon is shown next to the test s  in the Testing  tool   s list     After the tests have finished running  the status indicator for the test will turn into  a green check or red w
536. tor Commands   Move to end of current line  Toolbar Search Commands  Move to the end of the toolbar  search entry    KP_Enter  new line   Place a new line at the current cursor position    KP_Home  beginning of line text   Move to end of the leading white space  if any   on the current line  If toggle is True  moves to the beginning of the line if already at the  end of the leading white space  and vice versa      KP_Insert  toggle overtype   Toggle status of overtyping mode    KP_Left  backward char   Action varies according to focus  Active Editor Com   mands  Move cursor backward one character   Toolbar Search Commands  Move back   ward one character    KP_Next  forward page   Move cursor forward one page  KP_Page_Down  forward page   Move cursor forward one page    KP_Page_Up  backward page   Move cursor backward one page    437    KP_Prior  backward page   Move cursor backward one page    KP_Right  forward char   Action varies according to focus  Active Editor Commands   Move cursor forward one character   Toolbar Search Commands  Move forward one  character    KP_Tab  tab key   Implement the tab key  the action of which is configurable by  preference    KP_Up  previous line   Move to previous screen line  optionally repositioning charac   ter within line  same    to leave in same horizontal position     start    at start     end    at end   or fnb    for first non blank char     Left  backward char   Action varies according to focus  Active Editor Commands   Move cursor
537. tor Commands   Paste text from clipboard   Search Manager Instance Commands  Paste text from clip   board   Toolbar Search Commands  Paste from clipboard    Command W  close   Close active document  Abandon any changes when ig   nore_changes is True  Close empty windows and quit if all document windows closed  when close_window is True     Command X  cut   Action varies according to focus  Active Editor Commands  Cut  selected text   Search Manager Instance Commands  Cut selected text   Toolbar Search  Commands  Cut selection    Command Z  undo   Undo last action    469    Command parenleft  start kbd macro   Start definition of a keyboard macro  If  register None then the user is prompted to enter a letter a z under which to file the  macro  Otherwise  register    a    is used by default     Command parenright  stop kbd macro   Stop definition of a keyboard macro    Ctrl    indent to match   Indent the current line or selected region to match inden   tation of preceding non blank line    Ctrl Comma  visit history previous   Move back in history to previous visited editor  position    Ctrl Down  forward page   Move cursor forward one page    Ctrl F12  command by name   Execute given command by name  collecting any args  as needed    Ctrl ISO_Left_Tab  begin visited document cycle move_back False    Start  moving between documents in the order they were visited  Starts modal key interaction  that ends when a key other than tab is seen or ctrl is released     Ctrl KP_Add  zoom 
538. tor tabs  or editor selection menu when the tabs are hidden  indicate the status of  the file by appending   when the file has been edited or  r o  when the file is read only   This information is mirrored for the current file in the status area at the bottom left of    59    each editor window  Edited status is also shown in the Window menu by appending   to  the file names found there     Files that are read only on disk are initially opened within a read only editor  Use the  file   s context menu  right click  to toggle between read only and writable state  This  alters both the editability of the editor and the writability of the disk file so may fail if  you do not have the necessary access permissions to make this change     4 5  Transient vs  non Transient Editors    Wing can open files in two modes     Transient Mode    Files opened when searching  debugging  navigating to point of  definition  and using the Project and  in Wing Pro only  the Source Browser tools  with the Follow Selection checkbox enabled are opened in transient mode and will be  automatically closed when hidden  The maximum number of non visible transient files  to keep open at any given time can be set with the Editor   Advanced   Transient  Threshold preference     Non Transient Mode    Files opened normally from the File menu  from the keyboard  file selector  or by double clicking on items in the Project tool will be opened in non   transient mode  and kept open until they are explicitly closed
539. tories from bin gtk bin share themes within the Wing  IDE installation     6  Not OSI Approved  However  license grants permission to modify and use without  limitation     7  Not OSI Approved  but similar to other OSI approved licenses  The license grants  anyone to use the software for any purpose  including commercial applications           8  The source code states the author has disclaimed copyright of the source code  The  sqllite org website states     All of the deliverable code in SQLite has been dedicated  to the public domain by the authors  All code authors  and representatives of the  companies they work for  have signed affidavits dedicating their contributions to the  public domain and originals of those signed affidavits are stored in a firesafe at the main  offices of Hwaci  Anyone is free to copy  modify  publish  use  compile  sell  or distribute  the original SQLite code  either in source code form or as a compiled binary  for any  purpose  commercial or non commercial  and by any means        Scintilla Copyright    We are required by the license terms for Scintilla to include the following copyright notice  in this documentation     Copyright 1998 2003 by Neil Hodgson  lt neilh scintilla org gt     All Rights Reserved    505    Permission to use  copy  modify  and distribute this soft   ware and its   documentation for any purpose and with    out fee is hereby granted    provided that the above copyright notice ap    pear in all copies and that   both tha
540. tra Debugger Exceptions    This section is only relevant if you have set the Exception Reporting preference to  Immediately if Appears Unhandled     When Wing   s debugger is running in this exception handling mode  it sometimes appears  to reveal bugs that are not seen when running outside of the debugger  This is a result  of how this mode decides which exceptions should be shown to the user    it is inspecting  exceptions as they are raised and making decisions about whether or not the exception  is unexpected or part of normal operation     You can train Wing to ignore unwanted exception reports with the checkbox in the  Exceptions tool     You can also change the way Wing reports debug process exceptions with the Exception  Reporting preference     For more information  see Managing Exceptions     18 4  Obtaining Diagnostic Output    Wing IDE and your debug code run in separate processes  each of which can indepen   dently be configured to collect additional diagnostic log information     Diagnosing General IDE Problems    A quick way to diagnose problems seen while working with Wing IDE is to submit a  bug report from the Help menu  Please include a description of the problem and check  the Include error log checkbox so we can diagnose and fix the problem     To diagnose other problems  such as failure to start  try looking at the file error log  in your User Settings Directory     178    Alternatively  run console_wing exe  on Windows  or wing4 0   verbose  on  Linux U
541. trl Shift Down  next line extend   Move to next screen line  adjusting the selection  range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start  end    at end  or    fnb    for first non blank char     Ctrl Shift End  end of document extend   Move cursor to end of document  ad   justing the selection range to new position    Ctrl Shift F  batch search   Display Search in Files tool  The look_in argument gets  entered in the look in field if not None or      The current selection is put into the search  field if it doesn   t span multiple lines and either use_selection is true or there   s nothing  in the search field  The given search text is used instead  if provided    Ctrl Shift F3  search sel backward   Search backward using current selection  Ctrl Shift F5  debug stop   Pause free running execution at current program counter  Ctrl Shift F6  debug all tests   Debug all the tests in testing panel     Ctrl Shift F7  debug current tests   Runs the current test or tests  if possible  The  current tests are determined by the current position in the active view     Ctrl Shift F9  Multiple commands  first available is executed      381    e break disable all   Disable all breakpoints  e break enable all   Enable all breakpoints    Ctrl Shift G  search backward   Search again using the search manager   s current  settings in backward direction    Ctrl Shift H  batch replace   Display search and repla
542. ts     CBooleanGui    A single checkbox for collecting a boolean value  The constructor  takes no arguments    CFileSelectorGui    A keyboard driven file selector with auto completion  optional  history  and option to browse using a standard file open dialog  The constructor takes  the following keyword arguments     want_dir   gt   True to browse for a directory name  instead of a  file name   Default False   history ao  Optional list with history of recent choices  most  recent first  Default     default    The default value to use  Default           164  Additional formlet types are defined in guiutils formbuilder py but these are not  usually needed in collecting scripting arguments     CPopupChoiceGui    A popup menu to select from a range of values  The constructor  takes a list of items for the popup  Each item may be one of     None    A divider  string     The value  The label used in the menu is derived   label   value replace    _            title     value  label     The value and label to use in menu      value  label  tip      The value  label  and a tooltip to show when the  user hovers over the menu item     CNumberGui    A small entry area for collecting a number  The constructor takes  these arguments  all are required      min_value    The minimum value  inclusive   max_value    The maximum value  inclusive   page_size     Increment when scroller is used to browse the range  num_decimals    Number of decimal places  0 to col     lect an integer     Addition
543. tual name  of the bookmark  Key Bindings  Normal  Ctrl Alt M  Emacs  Ctrl X R M  Brief  Alt 0  invokes set bookmark mark    0      Visual Studio  Ctrl Alt M  OS X  Command D    show bookmarks       Show a list of all currently defined bookmarks Key Bindings  Normal  Ctrl Alt K   Emacs  Ctrl X R Return  Brief  Alt J  Visual Studio  Ctrl Alt kK  OS X  Command   Shift K    show bug report dialog      Show the bug reporting dialog   show document  section    manual       Show the given documentation section Key Bindings  OS X  Command    show feedback dialog      Show the feedback submission dialog   show howtos      Show the How Tos index   show html document  section    manual       Show the given document section in HTML format   show line numbers  show 1    Show the line numbers in editors   show manual html      Show the HTML version of the Wing IDE users manual  show manual pdf       Show the PDF version of the Wing IDE users manual for either US Letter or A4   depending on user   s print locale    show panel  panel_type  flash True     Show most recently visited panel instance of given type  If no such panel exists  add  one to the primary window and show it  Returns the panel view object or None if not  shown  The valid panel types are     297    project     browser      batch search     interactive search source assistant      debug   data debug stack debug io debug exceptions debug breakpoints      debug probe       debug watch      debug modules      python shell messa
544. ty of file types for syntax colorization   e Key mappings and many other behaviors are configurable     e The editor supports structural folding for some file types             4 1  Syntax Colorization    The editor will attempt to colorize documents according to their MIME type  which is  determined by the file extension  or content  For example  any file ending in  py will  be colorized as a Python source code document  Any file whose MIME type cannot be  determined will display all text in black normal font by default     All the available colorization document types are listed in the File Properties dialog   s  File Attributes tab  If you have a file that is not being recognized automatically  you can  use the File Type menu found there to alter the way the file is being displayed  Your  selections from this menu are stored in your project file  so changes made are permanent  in the context of that project     If you have many files with an unrecognized extension  use the Extra File Types  preference to add your extension     57    58    4 2  Right click Editor Menu    Right clicking on the surface of the editor will display a context menu with commonly  used commands such as Copy  Paste  Goto Definition  and commenting and indentation  operations     When revision control is enabled in Project Properties under the Extensions tab  the  menu is populated with additional items for the selected revision control system     User defined scripts may also add items here  as desc
545. ual Studio  Ctrl Shift T  OS X  Command Shift T    fold collapse all       Collapse all fold points in the current file Key Bindings  Normal  Alt Home  VI VIM     330   Alt Home  Emacs  Alt Home  Brief  Alt Home  Visual Studio  Alt Home  OS X   Command Ctrl K P_Subtract   fold collapse all clicked      Collapse the clicked fold point completely   fold collapse all current       Collapse the current fold point completely Key Bindings  Normal  Alt Page_Up   VI VIM  Alt Page_Up  Emacs  Alt Page_Up  Brief  Alt Page_Up  Visual Studio  Alt   Page_Up  OS X  Command KP_Subtract    fold collapse current      Collapse the current fold point Key Bindings  VI VIM  z c  fold collapse more clicked      Collapse the clicked fold point one more level  fold collapse more current       Collapse the current fold point one more level Key Bindings  Normal  Alt Up  VI VIM   Alt Up  Emacs  Alt Up  Brief  Alt Up  Visual Studio  Alt Up  OS X  Command Shift   KP_Subtract    fold expand all       Expand all fold points in the current file Key Bindings  Normal  Alt End  VI VIM   Alt End  Emacs  Alt End  Brief  Alt End  Visual Studio  Alt End  OS X  Command   Ctrl K P_Multiply    fold expand all clicked     Expand the clicked fold point completely  fold expand all current       Expand the current fold point completely Key Bindings  Normal  Alt Page Down   VI VIM  Alt Page Down  Emacs  Alt Page Down  Brief  Alt Page Down  Visual Stu   dio  Alt Page_Down  OS X  Command K P_Multiply    fold expand current  
546. ular expression mini search backward from the  cursor position  optionally entering the given search string   Document Viewer Com   mands  Initiate incremental regular expression mini search backward from the cursor  position  optionally entering the given search string     Ctrl Alt Right  goto next bookmark   Go to the next bookmark  or the first one if  no bookmark is selected  Stays within the file in the current editor when current_file_only  is True     Ctrl Alt S  isearch forward regex   Action varies according to focus  Active Editor  Commands  Initiate incremental regular expression mini search forward from the cursor  position  optionally entering the given search string   Document Viewer Commands   Initiate incremental regular expression mini search forward from the cursor position   optionally entering the given search string     Ctrl Alt Up  goto previous bookmark current_file_ only True    Go to the pre   vious bookmark in the bookmark list  or the last one if no bookmark is selected  Stays  within the file in the current editor when current_file_only is True     Ctrl Alt percent  query replace regex   Initiate incremental mini search  query replace from the cursor position  The search string is treated as a regular  expression     396    Ctrl B  backward char   Action varies according to focus  Active Editor Commands   Move cursor backward one character   Toolbar Search Commands  Move backward one  character    Ctrl BackSpace  backward delete word   Action varie
547. unt  lt numeric modifier  default 1 gt      319    Move to end of current line  adjusting the selection range to new position Key Bindings   Normal  Shift End  VI VIM  Shift End  Emacs  Shift End  Brief  Shift End  Visual  Studio  Shift End  OS X  Ctrl Shift Right    end of screen line  count  lt numeric modifier  default 1 gt     Move to end of current wrapped line Key Bindings  VI VIM  g    end of screen line extend  count  lt numeric modifier  default 1 gt    Move to end of current wrapped line  extending selection  exchange point and mark       When currently marking text  this exchanges the current position and mark ends of the  current selection Key Bindings  VI VIM  0  Emacs  Ctrl X Ctrl X    filter next move  repeat  lt numeric modifier  default 1 gt      Filter the lines covered by the next cursor move command through an external command  and replace the lines with the result Key Bindings  VI VIM       filter range  cmd  start_line 0  end_line  1     Filter a range of lines in the editor through an external command and replace the lines  with the result  Filters the whole file by default  Filters nothing and opens up a scratch  buffer with the output of the command if start_line and end_line are both  1     filter selection  cmd     Filter the current selection through an external command and replace the lines with the  result Key Bindings  VI VIM       form feed      Place a form feed character at the current cursor position   forward char  wrap 1  repeat  lt numeri
548. up using the filters in the Options menu     e Public    Constructs accessible to any user of a module or instance  These are  names that have no leading underscores  such as Print   or kMaxListLength     e Semi Private    Constructs intended for use only within related modules or from  related or derived classes  These are names that have one leading underscore   such as _NotifyError   or _gMaxCount  Python doesn   t enforce usage of these  constructs  but they are helpful in writing clean  well structured code and are  recommended in the Python language style guide     e Private    Constructs intended to be private to a module or class  These are  names that have two leading underscores  such as __ConstructNameList   or  __id_seed  Python enforces local only access to these constructs in class methods   See the Python documentation for details     e Inherited    Constructs inherited from a super class     e Imported    Constructs imported into a module with an import statement     8 2 2  Filtering Construct Type    Constructs in the source code browser window can also be shown or hidden on the basis  of their basic type within the language     e Classes    Classes defined in Python source     e Methods    Methods defined within classes     90    e Attributes    Attributes  aka    instance variables     of a class  Note that these can  be either class wide or per instance  depending on whether they are defined within  the class scope or only within methods of the class     e
549. urrent     e Set Key Binding displays a dialog in which the key binding desired for the  perspective can be typed  This key sequence will cause Wing to switch to that  perspective     Preferences    The Perspective Manager   s Configure button displays the preferences that control how  perspectives work  These include     e Perspective Style    This controls how much of the visual state is stored in saved  perspectives  The default  Tools and Layout  causes a perspective to alter only  which tools are visible  where they are located  how many tool splits and toolboxes  there are  how many editor splits there are  and the relative sizes of editors and  toolbox areas and splits  Tools  Layout  and Editors stores in addition which  files are open in the editor  and All Visual State stores every detail of Wing   s  visual state  including the state of each tool and editor     45    e Shared Perspective File    This is used to specify where shared perspectives  are stored on disk  The default is a file perspectives in the User Settings  Directory     e Auto save Perspectives    Selects when the current GUI state should be auto   saved into a perspective before switching to another perspective  Always will  always auto save all perspectives  Never disables auto save entirely  Prompt causes  Wing to prompt each time when leaving a perspective  and Configured by Per   spective allows the behavior to be controlled for each perspective  in the Manage  Perspectives dialog  The default i
550. urrent line Key Binding  Shift F9  break disable all       Disable all breakpoints Key Bindings  Normal  Ctrl Shift F 9  VI VIM  Ctrl Shift F9   Emacs  Ctrl Shift F9  Brief  Ctrl Shift F9  Visual Studio  Ctrl Shift F9    break disable clicked      Disable the breakpoint at current click location   break edit cond      Edit condition for the breakpoint on current line  break edit cond clicked      Edit condition for the breakpoint at the current mouse click location  break enable      Enable the breakpoint on the current line Key Binding  Shift F 9  break enable all       Enable all breakpoints Key Bindings  Normal  Ctrl Shift F9  VI VIM  Ctrl Shift F9   Emacs  Ctrl Shift F9  Brief  Ctrl Shift F9  Visual Studio  Ctrl Shift F9    break enable clicked      Enable the breakpoint at current click location  break enable toggle      Toggle whether breakpoint on current line is enabled or disabled  break ignore      Ignore the breakpoint on current line for N iterations  break ignore clicked       Ignore the breakpoint at the current mouse click location for N iterations    358    break set      Set a new regular breakpoint on current line Key Binding  F9  break set clicked      Set a new regular breakpoint at the current mouse click location  break set cond      Set a new conditional breakpoint on current line  break set cond clicked      Set a new conditionalbreakpoint at the current mouse click location  break set temp      Set a new temporary breakpoint on current line  break set
551. ursor  fnb        goto selected symbol defn      Goto the definition of the selected source symbol Key Binding  F4  hide all whitespace      Turn off all special marks for displaying white space and end of line  hide eol      Turn off special marks for displaying end of line chars  hide indent guides      Turn off special marks for displaying indent level  hide whitespace      Turn off special marks for displaying white space   indent lines  num  lt numeric modifier  default 1 gt      Indent selected number of lines from cursor position  Set num to None to indent all the  lines in current selection  Key Bindings  VI VIM   gt  invokes indent lines num None     333    indent next move  num  lt numeric modifier  default 1 gt    Indent lines spanned by next cursor move Key Bindings  VI VIM   gt   indent region  sel None     Indent the selected region one level of indentation  Set sel to None to use preference to  determine selection behavior  or    never select    to unselect after indent     always select    to  always select after indent  or    retain select    to retain current selection after indent  Key  Bindings  Normal  Ctrl  gt   VI VIM  Ctrl T  Emacs  Ctrl C  gt   Visual Studio  Ctrl  gt    OS X  Command      indent to match next move  num  lt numeric modifier  default 1 gt      Indent lines spanned by next cursor move to match  based on the preceding line Key  Bindings  VI VIM       insert command  cmd     Insert the output for the given command at current cursor positi
552. ursor position  using current selection  as the search string  Set persist False to do the search but end the interactive search  session immediately  Key Bindings  Normal  Ctrl B  VI VIM    invokes isearch sel   forward persist 0  whole_word 1   Emacs  Ctrl C S  Visual Studio  Ctrl B    kill line       Kill rest of line from cursor to end of line  and place it into the clipboard with any other  contiguously removed lines  End of line is removed only if there is nothing between the  cursor and the end of the line  Key Bindings  Emacs  Ctrl K  Brief  Alt D  OS X   Ctrl k    middle of screen line       Move to middle of current wrapped line Key Bindings  VI VIM  g m    323    middle of screen line extend     Move to middle of current wrapped line  extending selection  move range  start_line  end_line  target_line     Move the given range of lines to the given target line  Moves to current line if target_line  Iss     move to register  unit    char     cut 0  num  lt numeric modifier  default 1 gt      Cut or copy a specified number of characters or lines  or the current selection  Set cut 1  to remove the range of text from the editor after moving to register  otherwise it is just  copied   Unit should be one of    char    or    line    or    sel    for current selection  Key Bindings   VI VIM  Shift Y invokes move to register unit    line        move to register next move  cut 0  repeat  lt numeric modifier  default 1 gt      Move the text spanned by the next cursor motion to 
553. ursor to start of document    Ctrl KP_Insert  copy   Action varies according to focus  Active Editor Commands   Copy selected text   Document Viewer Commands  Copy any selected text    Exceptions  Commands  Copy the exception traceback to the clipboard   Search Manager Instance  Commands  Copy selected text   Toolbar Search Commands  Cut selection    Ctrl KP_Left  backward word   Action varies according to focus  Active Editor  Commands  Move cursor backward one word  Optionally  provide a string that contains  the delimiters to define which characters are part of a word  Gravity may be    start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move backward one word    Ctrl KP_Next  forward page   Move cursor forward one page  Ctrl KP_Page Down  forward page   Move cursor forward one page  Ctrl KP_Page_Up  backward page   Move cursor backward one page    Ctrl KP_Prior  backward page   Move cursor backward one page    379    Ctrl KP_Right  forward word   Action varies according to focus  Active Editor Com   mands  Move cursor forward one word  Optionally  provide a string that contains the  delimiters to define which characters are part of a word  Gravity may be    start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move forward one word    Ctrl KP_Subtract  zoom out   Zoom out  increasing the text display size temporarily  by one font size    Ctrl KP_Up
554. ute given command by name  collecting any  args as needed    Ctrl T  forward tab   Action varies according to focus  Active Editor Commands   Place a tab character at the current cursor position   Search Manager Instance Com   mands  Place a forward tab at the current cursor position in search or replace string    Ctrl Tab  begin visited document cycle move_back True    Start moving be   tween documents in the order they were visited  Starts modal key interaction that ends  when a key other than tab is seen or ctrl is released     Ctrl U  case lower   Change case of the current selection  or character ahead of the  cursor if there is no selection  to lower case    Ctrl Underscore  visit history next   Move forward in history to next visited editor  position    Ctrl Up  scroll text up   Scroll text up a line w o moving cursor   s relative position  on screen  Repeat is number of lines or if  gt 0 and  lt 1 0 then percent of screen  Set  move_cursor to False to leave cursor in current position within the source  otherwise it  is moved so the cursor remains on same screen line     Ctrl V  paste   Action varies according to focus  Active Editor Commands  Paste  text from clipboard   Search Manager Instance Commands  Paste text from clipboard    Toolbar Search Commands  Paste from clipboard    Ctrl W  close   Close active document  Abandon any changes when ignore_changes is  True  Close empty windows and quit if all document windows closed when close_window  is    True     456    
555. ve back   ward one character    KP_Next  forward page   Move cursor forward one page  KP_Page_Down  forward page   Move cursor forward one page  KP_Page_Up  backward page   Move cursor backward one page  KP_Prior  backward page   Move cursor backward one page    KP_Right  forward char   Action varies according to focus  Active Editor Commands   Move cursor forward one character   Toolbar Search Commands  Move forward one  character    KP_Tab  tab key   Implement the tab key  the action of which is configurable by  preference    KP_Up  previous line   Move to previous screen line  optionally repositioning charac   ter within line  same    to leave in same horizontal position     start    at start  end    at end   or    fnb    for first non blank char     Left  backward char   Action varies according to focus  Active Editor Commands   Move cursor backward one character   Toolbar Search Commands  Move backward one  character    409    Next  forward page   Move cursor forward one page  Page_Down  forward page   Move cursor forward one page  Page_Up  backward page   Move cursor backward one page  Prior  backward page   Move cursor backward one page  Return  new line   Place a new line at the current cursor position    Right  forward char   Action varies according to focus  Active Editor Commands   Move cursor forward one character   Toolbar Search Commands  Move forward one  character    Shift Alt A  diff merge a b  Shift Alt B  diff merge b a    Shift Alt Down  next line extend r
556. ve console instead of using the integrated debug I O panel     Internal Name   debug persist console  Data Specification    lt boolean  O or 1 gt     Default Value     242    Debug I O Encoding  Encoding of input output in the Debug I O panel    Internal Name   debug  debug io encoding  Data Specification      None or  Central and Eastern European iso8859 2  Japanese iso   2022 jp 2004  Hebrew cp856  Japanese euc jp  Vietnamese cp1258  Greek cp1253  guages cp1257  Korean johab  Western European cp1252  Baltic Lan   guages cp775  Japanese iso 2022 jp ext  Korean iso 2022    kr  Icelandic cp861  Hebrew cp424  Cyrillic Languages cp1251  Turk   ish iso8859 9  Unicode  UTF 16  little endian  utf 16 le  West    ern European cp500  Chinese  PRC  gb18030  Greek cp875  Ara    bic cp864  Icelandic mac iceland  Chinese  PRC  gbk  Turk    ish mac turkish  Greek iso8859 7  Baltic Languages iso8859    13  Cyrillic Languages mac cyrillic  Greek cp869  Turk    ish cp1254  Japanese iso 2022 jp 1  Central and Eastern Euro    pean cp852  Japanese iso 2022 jp 2  Chinese  ROC  big5  Urdu cp1006  He   brew iso8859 8  Celtic Languages iso8859 14  Thai cp874  Cyril    lic Languages cp855  Western European iso8859 15  Greek mac    greek  Ukrainian koi8 u  Hebrew cp1255  Danish  Norwe    gian cp865  Cyrillic Languages iso8859 5  Turkish cp1026  West    ern European mac roman  Western European cp1140  Chi    nese  PRC  hz  Japanese shift jisx0213  Portuguese cp860  Chi    nese  ROC  cp950  Unicode  UTF
557. ve symbol operation moves a variable  function  or class  and updates locations  where it is used to reference the symbol at its new location  To start a move operation   click on the symbol to be moved and then select Move Symbol from the Refactor menu or  from the Refactor sub menu of the editor context menu  right click   Wing will search  for all of the locations where the symbol is used and list them in the Refactoring tool     83    84    To complete the operation  enter the destination filename and   or scope name and press  the Move and Update Checked button     Note that each found match for the symbol is displayed with a check box that can be  deselected to omit that match from the rename operation  Please refer to Find Points  of Use for more information on how Wing finds symbols for refactoring operations     After it completes  the rename operation can be undone with the Revert button in the  Refactoring tool     6 3  Extract Function   Method    The extract function   method operation creates a new function or method from the  currently selected lines  It replaces the lines with a call to the new function or method   passing in needed arguments and returning any values needed in the calling block of  code     To start an extract operation  select the lines to be extract in the editor and then select  Extract Function Method from the Refactor menu or from the Refactor sub menu  of the editor context menu  right click   Wing will then display the Refactoring tool 
558. vere physical or environmental damage   High Risk Activities       Accordingly  Wingware and its suppliers and licensors specifically disclaim any express  or implied warranty of fitness for High Risk Activities  You agree that Wingware and its  suppliers and licensors will not be liable for any claims or damages arising from the use  of the Software Product  or any software  tool  process  or service that was developed  using the Software Product  in such applications     15  GOVERNING LAW  ENTIRE AGREEMENT   DISPUTE RESOLUTION    This EULA is governed by the laws of the Commonwealth of Massachusetts  U S A    excluding the application of any conflict of law rules  The United Nations Convention  on Contracts for the International Sale of Goods shall not apply     This EULA is the entire agreement between Wingware and you  and supersedes any  other communications or advertising with respect to the Software Product  this EULA  may be modified only by written agreement signed by authorized representatives of you  and Wingware     Unless otherwise agreed in writing  all disputes relating to this EULA  excepting any  dispute relating to intellectual property rights  shall be subject to final and binding  arbitration in the State of Massachusetts  in accordance with the Licensing Agreement  Arbitration Rules of the American Arbitration Association  with the losing party paying  all costs of arbitration  Arbitration must be by a member of the American Arbitra   tion Association  If
559. vironment  variable WINGDB_ACTIVE before importing wingdbstub  as this may be left in the envi   ronment by the host application and will prevent wingdbstub from initiating debug in  the second or later Python instance     13 2  Remote Debugging    Since remote debugging is fairly complicated to configure  we currently recommend using  remote display of the IDE via X Windows  Linux Unix  or Remote Desktop  Windows   when possible  instead of setting up the IDE on a separate host from the debug process     129    When this is not an option  you can also ask the debugger to connect remotely over the  network  In order to do this  take the following steps  see also Remote Debugging  Example       1  First set up Wing IDE to successfully accept connections from another process within  the same machine  as described in section Importing the Debugger  You can use any  Python script for testing this until you have values that work      2  Optionally  alter the Server Host preference to the name or IP address of the  network interface on which the IDE listens for debug connections  The default server is  None  which indicates that the IDE should listen on all the valid network interfaces on  the host      3  Optionally  alter the preference Server Port to the TCP IP port on which the IDE  should listen for debug connections  This value may need to be changed if multiple  copies of Wing IDE are running on the same host      4  Set the Allowed Hosts preference to include the host on wh
560. w Commands  20 8  Script provided Add on Commands  Pylintpanel Script  Testapi Script  Debugger Extensions Script  Django Script  Django Script  Editor Extensions Script  Emacs Extensions Script  Brief Script    Key Binding Reference  21 1  Normal Personality    21 2  Emacs Personality    11    21 3  VI VIM Personality  21 4  Visual Studio Personality  21 5  OS X Personality   21 6  Brief Personality    License Information    22 1  Wing IDE Software License    22 2  Open Source License Information       Wingware  the feather logo  Wing IDE  Wing IDE 101  Wing IDE Personal  Wing IDE  Professional  Wing IDE Enterprise     Advancing Software Development    and    The Intel   ligent Development Environment    are trademarks or registered trademarks of Wingware  in the United States and other countries     Disclaimers  The information contained in this document is subject to change with   out notice  Wingware shall not be liable for technical or editorial errors or omissions  contained in this document  nor for incidental or consequential damages resulting from  furnishing  performance  or use of this material     Hardware and software products mentioned herein are used for identification purposes  only and may be trademarks of their respective owners     Copyright  c  1999 2011 by Wingware  All rights reserved      Wingware   P 0  Box 400527  Cambridge  MA 02140 0006  United States of America    12    Introduction    Thanks for choosing Wingware   s Wing IDE  This manual will hel
561. will also offer to add the relevant Zope2 Plone files  to the project  and to install the control panel for configuring and initiating debug in  Zope2 Plone  See the Zope How To for details     Testing    Test File Pattern can be used to specify which files in the project should be shown in  the Testing tool  See the Testing chapter for details     Default Test Framework defines the testing framework to use by default  unless  another is chosen using File Properties on the test file     3 7 1  Variable Expansion    Any string value for a property may contain environment variable references using the    name  or    name  notation  These will be replaced with the value of the environment  variable when it used by the IDE  If the environment variable is not set  the reference will  be replaced by an empty string  The system environment  as modified by the project   wide or per file environment property  if defined   is used to expand variable references     The following special variable names are also available for use in the   name  or   name   form   e WING  FILENAME    full path of current file    e WING  FILENAME_DIR    full path of the directory containing the current file    54    WING  LINENO    current line number in the current file    e WING SCOPE    x y z formatted name of the current scope in the current file  if  Python     WING  PROJECT full path of current project    WING  PROJECT_DIR    full path of the directory containing the current project    WING  SELECTION
562. wing4 0 from within the Wing IDE application folder  which can be  entered using a terminal window in X11   See the OS X How To for details     On Windows  the user   s temporary directory sometimes becomes full  which prevents  Wing from starting  Check whether the directory contains more than 65 534 files  Some  versions of Acrobat Reader will leave large numbers of lock files in this directory  These  files are named Acrxxxx tmp  Other applications may do this as well     On Fedora Core 5 and other Linuxes with SELinux  Wing won   t start because  permissions are denied on one of the shared libraries needed by it  The solution is to go  into bin 2 4 external pyscintilla2 and issue the following command     chcon  t texrel_shlib_t _scintilla so    On Linux  in some cases  Wing will not run with its own private GTK installation  because of incompatibilities with the system  To test this  run Wing with the   system     171    172    gtk command line option after making sure your Linux system has the GTK packages  installed  If this works  you can set the Use System Gtk preference     Note  however  that there are known problems running system provided Qt emulation  when using the system GTK option  Some of these themes contain bugs that can cause  crashing  If you need to use the system GTK and experience crashes  we recommend  using a theme other than a Qt theme     On Linux  if Wing fails to start after the Use System Gtk preference has been set   use the   private gtk comm
563. with  an external editor  or when using code generation tools that rewrite files     Wing   s default behavior is to automatically reload externally changed files that have not  yet been changed within Wing   s source editor  and to prompt to reload files that have  also been changed in the IDE     You can change these behaviors by setting the value of the Reload when Unchanged  and Reload when Changed preferences    On Windows  Wing uses a signal from the OS to detect changes so notification or reload  is usually instant  On Linux and Unix  Wing polls the disk by default every 3 seconds   this frequency can be changed with the External Check Freq preference     4 17  Auto save    The source code editor auto saves files to disk every few seconds  The auto save files are  placed in a subdirectory of your User Settings Directory     If Wing ever crashes or is killed from the outside  you can use these files to manually  recover any unsaved changes  Copy the auto save files to overwrite the older unsaved  files  doing a comparison first to verify that the auto save file is what you want     76    Search Replace    Wing provides a number of tools for search and replace in your source code  Which you  use depends on the complexity of your search or replace task and what style of searching  you are most familiar with     5 1  Toolbar Quick Search    One way to do simple searches is to enter text in the search area of the toolbar  This  scrolls as you type to the next match found af
564. wn  fold expand more current   Expand the current fold point one more  level    Alt E  open gui   Open a file from disk  prompting with file selection dialog if necessary  Alt End  fold expand all   Expand all fold points in the current file    Alt F11  prev points of use match   Display the previous match is the active points  of use tool    Alt F12  next points of use match   Display the next match is the active points of  use tool    Alt F3  search   Bring up the search manager in search mode    Alt F4  close window   Close the current window and all documents and panels in it  Alt F5  run to cursor   Run to current cursor position   Alt F5  search sel backward   Search backward using current selection    Alt F6  run failed tests   Re run all the previously failed tests  The tests are de   bugged when debug is True     Alt F7  run last tests   Run again the last group of tests that were run  The tests  are debugged when debug is True     Alt G  goto line   Position cursor at start of given line number  Alt H  goto selected symbol defn   Goto the definition of the selected source symbol    Alt Home  fold collapse all   Collapse all fold points in the current file    479    Alt I  toggle overtype   Toggle status of overtyping mode  Alt J  show bookmarks   Show a list of all currently defined bookmarks    Alt K  kill line   Kill rest of line from cursor to end of line  and place it into the  clipboard with any other contiguously removed lines  End of line is removed only if  
565. x in the debugger   s Exception  tool  Ignored exceptions are still reported if they actually lead to program termination   and your selection is remembered in your project file so only needs to be made once   Use Clear Ignored Exceptions from the Debug menu at any time to reset the ignore  list to blank     In general  we recommend using either the When Printed or the Immediately if Ap   pear Unhandled exception reporting mode     12 14  Running Without Debug    Files may also be executed outside of the debugger  This can be done with any Python  code  makefiles  and any other file that is marked as executable on disk  This is done  with the Execute Current File and Execute Recent items in the Debug menu  or  with Execute Selected after right clicking on the project view     Files executed in this way are run in a separate process and any input or output occurs  within the OS Commands tool     This is useful for triggering builds  executing utilities used in development  or even  to launch a program that is normally launched outside of Wing and debugged using  wingdbstub  py     122    Wing can also run arbitrary command lines  See the OS Commands Tool chapter for  more information on executing files or command lines from Wing     Advanced Debugging Topics    This chapter collects documentation of advanced debugging techniques  including de   bugging externally launched code  and using Wing   s debugger together with a debugger  for C C   code     See also the collection of 
566. xpand the current fold point    Browse z Browse r  vi fold more   Approximation of zr key binding in vim    428    Browse z Browse t  cursor to top   Scroll so cursor is centered at top of display  Browse z Browse z  center cursor   Scroll so cursor is centered on display    Browse    backward paragraph   Move cursor backward one paragraph  to next  all whitespace line      Browse    goto column   Move cursor to given column    Browse    forward paragraph   Move cursor forward one paragraph  to next all   whitespace line      Browse    case swap   Change case of the current selection  or character ahead of the  cursor if there is no selection  so each letter is the opposite of its current case    Ctrl 1  activate file option menu   Activate the file menu for the editor     Ctrl 2  activate symbol option menu 1   Activate the lst symbol menu for the  editor     Ctrl 3  activate symbol option menu 2   Activate the 2nd symbol menu for the  editor     Ctrl 4  activate symbol option menu 3   Activate the 3rd symbol menu for the  editor     Ctrl 5  activate symbol option menu 4   Activate the 4th symbol menu for the  editor     Ctrl 6  activate symbol option menu 5   Activate the 5th symbol menu for the  editor     Ctrl    indent to match   Indent the current line or selected region to match inden   tation of preceding non blank line    Ctrl Alt Down  goto next bookmark current_file_only True    Go to the next  bookmark  or the first one if no bookmark is selected  Stays within the
567. xt layout and rendering library by Owen Taylor and contributors     LGPL  1     e parsetools    Python parse tree conversion tools by John Ehresman    MIT License    e pexpect    Sub process control library by Noah Spurrier  Richard Holden  Marco  Molteni  Kimberley Burchett  Robert Stone  Hartmut Goebel  Chad Schroeder   Erick Tryzelaar  Dave Kirby  Ids vander Molen  George Todd  Noel Taylor  Nicolas  D  Cesar  Alexander Gattin  Geoffrey Marshall  Francisco Lourenco  Glen Mabey   Karthik Gurusamy  and Fernando Perez    MIT License    e py2pdf    Python source to PDF output converter by Dinu Gherman    MIT License    e pygtk    Python bindings for GTK by James Henstridge and contributors    LGPL     1     e pyscintilla2    Python bindings for gtkscintilla2 by Roberto Cavada and contribu   tors    LGPL  1     e pysqlite    Python bindings for sqlite by Gerhard Haering    BSD like custom license   7     e Python    The Python programming language by Guido van Rossum  PythonLabs   and contributors    Python Software Foundation License version 2  3     e render    Header files for X render extension by Keith Packard    MIT License    e scintilla    Source code editor component by Neil Hodgson and contributors    MIT  License    e sqlite    A self contained  serverless  zero configuration  transactional SQL  database engine    Public domain  8     e Tulliana 1 0    An icon set by M  Umut Pulat  based on Nuvola created by David  Vignoni    LGPL  1     e zlib    Data compression lib
568. xt line extend   Move to next screen line  adjusting the selection  range to new position  optionally repositioning character within line  same    to leave in  same horizontal position     start    at start     end    at end  or    fnb    for first non blank char     Shift KP_End  end of line extend   Action varies according to focus  Active Editor  Commands  Move to end of current line  adjusting the selection range to new position    Toolbar Search Commands  Move to the end of the toolbar search entry  extending the  selection    Shift KP_Enter  new line   Place a new line at the current cursor position    Shift KP_Home  beginning of line extend   Action varies according to focus  Ac   tive Editor Commands  Move to beginning of current line  adjusting the selection range  to the new position  When toggle is True  moves to the end of the leading white space if  already at the beginning of the line  and vice versa    Toolbar Search Commands  Move  to the beginning of the toolbar search entry  extending the selection    Shift KP_Home  beginning of line text extend   Move to end of the leading white  space  if any  on the current line  adjusting the selection range to the new position  If  toggle is True  moves to the beginning of the line if already at the end of the leading  white space  and vice versa      Shift KP_Insert  paste   Action varies according to focus  Active Editor Commands   Paste text from clipboard   Search Manager Instance Commands  Paste text from clip   bo
569. y Key Bindings  VI VIM  z Return  cut       Cut selected text Key Bindings  Normal  Shift Delete  VI  VIM  Shift Delete  Emacs   Shift Delete  Brief  Shift Delete  Visual Studio  Shift Delete  OS X  Command X    cut line       Cut the current line s  to clipboard  Key Bindings  Brief  KP_Subtract  Visual Studio   Ctrl L    cut selection or line       Cut the current selection or current line if there is no selection  The text is placed on  the clipboard  Key Bindings  Visual Studio  Shift Delete    delete line  repeat  lt numeric modifier  default 1 gt      Delete the current line or lines when the selection spans multiple lines or given repeat is   gt  1 Key Bindings  Normal  Ctrl Shift C    delete line insert  repeat  lt numeric modifier  default 1 gt      Delete the current line or lines when the selection spans multiple lines or given repeat  is  gt  1  Enters insert mode  when working with modal key bindings   Key Bindings   VI VIM  Shift S    delete next move  repeat  lt numeric modifier  default 1 gt      318    Delete the text covered by the next cursor move command  Key Bindings  VI VIM  d  delete next move insert  repeat  lt numeric modifier  default 1 gt      Delete the text covered by the next cursor move command and then enter insert mode   when working in a modal editor key binding  Key Bindings  VI VIM  c    delete range  start_line  end_line  register None     Delete given range of lines  copying them into given register  or currently selected default  registe
570. y by one  font size    Ctrl KP_Delete  forward delete word   Action varies according to focus  Active  Editor Commands  Delete one word in front of the cursor   Toolbar Search Commands   Delete word in front of the cursor    Ctrl KP_Down  next line   Move to screen next line  optionally repositioning char   acter within line     same    to leave in same horizontal position     start    at start     end    at  end  or    fnb    for first non blank char     Ctrl KP_End  end of document   Move cursor to end of document  Ctrl KP_Home  start of document   Move cursor to start of document    Ctrl KP_Insert  copy   Action varies according to focus  Active Editor Commands   Copy selected text   Document Viewer Commands  Copy any selected text    Exceptions  Commands  Copy the exception traceback to the clipboard   Search Manager Instance  Commands  Copy selected text   Toolbar Search Commands  Cut selection    Ctrl KP_Left  backward word   Action varies according to focus  Active Editor  Commands  Move cursor backward one word  Optionally  provide a string that contains  the delimiters to define which characters are part of a word  Gravity may be  start    or     end    to indicate whether cursor is placed at start or end of the word   Toolbar Search  Commands  Move backward one word    Ctrl KP_Multiply  visit history previous   Move back in history to previous visited  editor position    Ctrl KP_Next  forward page   Move cursor forward one page  Ctrl KP_Page_Down  forward page   Mov
571. y not notice  these changes  caution is required to avoid undesired side effects in the debug process     Note that breakpoints are never reached as a result of expression evaluation  and any  exceptions encountered are not reported  If you need to debug an expression  use the  Debug Probe where exceptions will be reported     12 9 4  Problems Handling Values    The Wing debugger tries to handle debug data as gently as possible to avoid entering  into lengthy computations or triggering errors in the debug process while it is packaging  debug data for transfer  Even so  not all debug data can be shown on the display  This  section describes each of the reasons why this may happen     Wing may time out handling a value    Large data values may hang up the debug    115    server process during packaging  Wing tries to avoid this by carefully probing an object   s  size before packing it up  In some cases  this does not work and Wing will wait for the  data for the duration set by the Network Timeout preference and then will display  the variable value as  lt network timeout during evaluate gt      Wing may encounter values too large to handle    Wing will not package and  transfer large sequences  arrays or strings that exceed the size limits set by Huge List  Threshold and Huge String Threshold preferences  On the debugger display  over   sized sequences and arrays are annotated as huge and  lt truncated gt  is prepended to  large truncated strings     To avoid this  increase t
572. y other site  unless you submit feedback or a bug report  through the Help menu     19           Activate Trial License    Connect Wing IDE directly to wingware com    Activate manually at http   wingware com activate  You  will need your license id TNX3P BFECQ CYW59 6QF2T  and request code RLX24 L6WNK DG88X HM7WL  Then  enter the provided activation key here           If you re unable or unwilling to connect Wing IDE directly to wingware com  you can go  to http   wingware com activate and enter the license id and activation request number  obtained from Wing  After entering this information  you will be given an activation  key which you can enter into Wing   s dialog box to complete the activation  This is  exactly the same exchange of information that occurs when Wing IDE connects directly  to wingware com to obtain a trial license     If activation fails  Wing will provide a way to configure an http proxy  Wing tries  to detect and use proxies by default but in some cases they will need to be manually  configured  Please ask your network administrator if you do not know what proxy  settings to use     If you run into problems or need additional evaluation time  please email us at sales at  wingware com     Permanent Licenses    Permanent licenses and upgrades may be purchased in the online store at  http   wingware com store  Permanent licenses include free upgrades through the 4    version series  Wing IDE Professional licenses also allow access to the product source  c
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
Inscriptions - Mode d`emploi - Groupe St Amable  EFG-Vac 22-30 / 25L/S/SL  on page 5-15.      Philips Hair trimmer comb CRP297  Decreto legislativo 17 ottobre 2005  OPERATOR`S MANUAL  Manual de instrucciones  Toastess TGK486 electrical kettle    Copyright © All rights reserved. 
   Failed to retrieve file