Groups
Groups
Sign in
Groups
Groups
Python - ARCGIS geoprocessing
Conversations
About
Send feedback
Help
FYI tip or trick: script to clear PythonWIn interactive window
156 views
Skip to first unread message
Lew.Gr...@gov.bc.ca
unread,
Mar 10, 2014, 12:21:43 PM
3/10/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to geop...@googlegroups.com
Hi Everyone,
This post related to clearing the Interactive Window prior to running a script PythonWin ( sorry Tarkenton but I like using).
#clear Pythonwin Interactive screen
import subprocess
def cls():
doc=subprocess.sys.stdout.GetDocument()
Editor=doc.GetEditorView()
Editor.SetSel(-1,0)
Editor.ReplaceSel("")
Thanks
Lew
rebenci...@gmail.com
unread,
May 20, 2015, 4:24:30 AM
5/20/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to geop...@googlegroups.com, Lew.Gr...@gov.bc.ca
Hi!
You have no idea how much I've been searching for a solution on this..issue.
Thanks a lot: it work flawlessly!
Reply all
Reply to author
Forward
0 new messages