Python terminal emulation

I'd like to have an xterm-compatible virtual terminal running inside a Python app. I'll need to run ncurses-based applications inside it, feed it with user's input and read its output. So far I've...

how to enable transparency in vte.Terminal

i am creating a simple terminal in python using vte.Terminal. i want to have a certain level of transparency in the terminal background but the set_opacity doesn't work. but it works in...

How to send commands to pygobject virtual terminal?

Right now I can make a terminal but the output is not used as a command. It just prints a string to the virtual terminal. from gi.repository import Gtk, GObject, Vte class...

Monitor command input on python VTE terminal widget

I am looking to monitor every command input on python VTE widget so I can pass it to the my program for processing on commands that match a certain regex. Is it possible, I am thing connecting...

Why the method set_color_foreground and its companions set_color_XXX don't work in Vte ( Python - Gtk3)?

I am writing an application using Vte in Python + Gtk3. I am not able to change all the color. For example, for the foreground color, I tried this code, but the text color doesn't change: class...

Count rows by date

Here is what my data frame looks like; Zaman Operasyon Paket 1 2013-01-18 21:39:00 installed linux-api-headers 2 2013-01-18 21:39:00 installed tzdata 3...

Does python gtk vte have a way to populate a dropdown menu?

Edit: Looks like im_append_menuitems is not the function to get a popup menu. Vte inherits from Gtk.Widget so the way to get a menu is probably to connect to a right mouse click and generate a...

Using python, GTK+3, Vte libs. How to change the font size of a terminal?

I made a program which shows four terminals in one window, but the font size is way too big. Here is my code: #!/usr/bin/python shells.py from gi.repository import Gtk, Vte, Gdk from...

"import babel.dates" gets me permission denied

In python, when I run import babel.dates I get a permission denied: Python 2.7.5+ (default, Jun 5 2013, 10:40:07) [GCC 4.8.1] on linux2 Type "help", "copyright", "credits" or "license" for more...

Gtk.Vte and feed_child: command sent two time

i'm building a tabbed python terminal to manage multiple ssh connection (like superputty or putty manager on windows), so i use feed_child to send command to terminal, but there is a little...

Running a script bash with using VTE module

I'm trying to use the VTE module to run a script bash: I have several errors, One of them is: avconv version 9.11-6:9.11-2ubuntu2, Copyright (c) 2000-2013 the Libav developers built on Mar 24...

Python Gtk2 & Vte wait for the process Pid is finish

I'm using the VTE module in a GTK window, to run and show the result of a bash script. adresse = self.champ.get_text() pid = self.v.fork_command(None, ['/bin/bash', "./pluzz.sh",...

Make a vte terminal communicate with running python script

I am trying to achieve the following. I built some gtk application which will have some data, let's say a,b and c. What I want now is some sort of terminal window in which I can query and change...

python vte: get the pid of the fork process

I'm using a vte term to run a bash script self.child_pid = self.v.fork_command(None, ['/bin/bash', 'dPluzz-cli', dest, '-u', adresse]) How can I do to get the number of the pid ? I...

python convert ascii str to utf8 str

I have this string: emission = "/home/guillaume/Vid\xc3\xa9os/pluzz/info_midi_102115995.mkv\n" I would like to convert it to have: emission =...

Best Way of redirecting output to a VTE terminal

Which is the best way of redirect the output of a command to a VTE terminal? i came with this idea: On the VTE execute: tty > /usr/tmp/terminal_number then read the file from the python...

Can't install libgtk2.0-dev on linux

I am trying to compile xfce-terminal, configure will not pass saying I lack gtk2 checking for gtk+-2.0 >= 2.24.0... not found *** The required package gtk+-2.0 was not found on your system. ***...

Python - segmentation error in ubuntu 12.04

My program is coded in Python, and it calls a bash script in a vte window: ![enter image description here][1] In 14.04 or 14.10 ubuntu system, no problem. (python 2.7.8) But, in ubuntu 12.04, the...

ImportError cannot import name SparkContext

I'm setting the below exports from the shell. export SPARK_HOME="/opt/cloudera/parcels/CDH-5.4.5-1.cdh5.4.5.p0.7/lib/spark" export...

How to get preview from childs in notebook like in sublime or terminology

For example I have a window with a notebook widget and in this notebook I have two tabs which contain one vte widgets each The idea it to get a preview of each vte widgets (You know like in...

py2exe and moviepy attribute error

I generate the application without problems with py2exe. But then, when I execute the .exe, it throws next traceback: Traceback (most recent call last): File "editor.py", line 25, in <module> ...

python - How to avoid multiple running instances of the same function

In my python script I have a core dumped, and I think it's because the same function is called twice at the same time. The function is the reading of a Vte terminal in a gtk window def term(self,...

apt-get upgrade, apt-get install not working.

I recently updated Python 2.7.6 to Python 2.7.12. Since then, when I run apt-get upgrade or apt-get install or apt-get autoremove` I get the following error: Reading package lists... Done Building...

Error installing mysql workbench in Ubuntu 16.04 lts

I'm having a problem installing mysql workbench on UBUNTU 16.04 lts when trying to install, it returns the error saying I do not have any dependencies on python, but I also can not install the...

Python - How to Write Text to a GTK+ Vte Terminal widget?

I'm trying to use a Vte terminal widget to display text from my python script. I'm not setting the working directory or emulator, I just want a empty terminal that handles text and ansi escape...

Virtual python shell with Vte.Pty.spawn_async()

I would like add virtual python shell with Vte to my GTK3.0 python3 app and I am able to do this with spawn_sync() method, but this method is deprecated, so I would like to do it with preferred...

window 10, how can I get terminal tab in Geany

I have been studying python crash course using Geany as the book says, but I recently found out there's no "terminal" tab in my Geany, only status, compiler, messages and scribble. I did a lot of...

Getting "No command 'pew' found" every time I open the Terminal (Ubuntu 16.04)

I am currently using Ubuntu 16.04 LTS. The problem is when I open up a Terminal, I get this message. No command 'pew' found, did you mean: Command 'pyew' from package 'pyew' (universe) Command...

How to implement a Linux terminal in a PyGtk app like VScode and PyCharm has?

Problem statement: Embed a terminal Emulator for linux in GUI and feed custom commands to it by GUI components. using: Python 3 Gtk+3 Vte.get_minor_version(): 58 Vte.get_major_version():...

How to retain environment variables across sessions

I have already referred to this post and post. I would like to set few variables as global/system level environment variables which I would like to initialize once and be available anytime I...

Relevant tags