File: SetTerminalArgs.py

package info (click to toggle)
drpython 1%3A3.11.4-1.1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 3,868 kB
  • ctags: 2,871
  • sloc: python: 16,653; makefile: 141; sh: 1
file content (16 lines) | stat: -rw-r--r-- 498 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#drscript
#This currently only works on linux (if you have xterm installed).
#You will need to modify it otherwise.

#By Daniel Pozmanter
#Released under the GPL

import wx

arguments = getattr(DrScript, 'RunInTerminalArgs', '')
dialog = wx.TextEntryDialog(DrFrame,
                            'Arguments:',
                            'Set Arguments For Run In Terminal',
                            arguments)
if dialog.ShowModal() == wx.ID_OK:
    DrScript.RunInTerminalArgs = dialog.GetValue()