Menu

[r85]: / examples / DrScript / SetTerminalArgs.py  Maximize  Restore  History

Download this file

17 lines (14 with data), 498 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#drscript
#This currently only works on linux (if you have rxvt installed).
#You will need to modify it otherwise.
#By Daniel Pozmanter
#Released under the GPL
import os
pathtoterminal = "/usr/bin/X11/rxvt"
termarg = "-e"
withargs = ""
if DrScript.VariableExists("RunInTerminalArgs"):
withargs = DrScript.RunInTerminalArgs
d = wx.TextEntryDialog(DrFrame, "Arguments:", "Set Arguments For Run In Terminal", withargs)
if d.ShowModal() == wx.ID_OK:
DrScript.RunInTerminalArgs = d.GetValue()