Programming :: PyGTK: Can't Seem To Launch Program - Gobject.spawn_async Command

Jul 20, 2010

I need to launch a program, throw up a pulsing status bar and then close it when the program quits. I cannot seem to launch the program (a bash script):

[code]...

This is where I'm getting my information: [URL]...

View 1 Replies


ADVERTISEMENT

Programming :: Write A Bash Script That Will Launch A Command?

May 15, 2011

I want to write a bash script that will launch a command when ever I plug my phone in. how would I monitor the port in a script.

View 2 Replies View Related

Programming :: Automatically Scrolling Text Box In PyGTK?

Jan 4, 2010

I am playing around with PyGTK and come across a problem: When I put a TextView inside a ScrolledWindow, and type text into the TextView until it reaches the edge, the cursor goes outside the viewport and I can't see what I'm typing. How to make it so that the ScrolledWindow automatically scrolls so that the caret in the TextView is always in visible?

View 5 Replies View Related

Programming :: Create PyGTK Gnome Screensaver?

Dec 15, 2010

I have created a PyGTK app (a binary clock) that I would like to turn into a screensaver. I added the .desktop file to /usr/share/applications/screensavers/ but all I get when I select it is a black screen. On the GnomeScreensaver FAQ (here) it says to use a gsthemewindow as the toplevel window, but the libraries given are in C. Is there any way to:Import this C library to get access to this toplevel window, Convert this GTK+ C library to PyGTK, or use a pygtk app as a screensaver in some other way?

View 3 Replies View Related

Debian Programming :: Implementing PyGtk For Python 3.3 In Wheezy

Sep 12, 2013

I run Wheezy Xfce 64-bit. I went through the Synaptic listings and added Python 3.3.2 and Tkinter for it, and that works fine; but for some reason PyGtk is available only for Python 2.7, not for Python 3.3, unless I'm just using the wrong way to try to find it. Is there a PyGtk available for Python 3.3 in Wheezy, and, if so, how do I install it and then import it once it's installed?

View 1 Replies View Related

Programming :: PyGTK: Send Output From A File Descriptor To A Textview?

Jul 22, 2010

Within PyGTK I'm using gobject.spawn_async to launch a bash script. I would like the output of that bash script to be displayed within my application. I have a textview set up to receive the text ...

Here are the commands that launch the program:

Code:
def run_command(command):
global keep_pulsing
keep_pulsing=True
(cpid, cstdin, cstdout, cstderr) = gobject.spawn_async(command,flags=gobject.SPAWN_DO_NOT_REAP_CHILD|gobject.SPAWN_STDERR_TO_DEV_NULL,standard_code....

Here are the two callback functions. But like I say ... I have no idea how to get that data from the 'cstdout' file descriptor into a textbuffer.

Code:
### THE FOLLOWING ARE GLOBALS:
textview = wTree.get_widget('textview1')
textbuffer=textview.get_buffer()
def update_textview_callback(fd, condition):
global keep_pulsing
if keep_pulsing:
progressbar.pulse()
code....

View 3 Replies View Related

Programming :: Can't Find Command, But Program Is Installed?

May 14, 2010

WindowsDude is back on the dark side of the web, the linux world, and he has encountered yet another impassable problem !There's a compiler mpicc, probably installed on the network at some location let's say /network/bin So when I write mpicc main.c I get the "can't find command" (or similar) error. Somehow it's supposed to work anyway. I think I need one of those magic commands to make it work. But the question is; which word will make it all happen? (I thought the DOS days were over!) I guess I could use the full path (provided that that binary really is in that folder), I want to bind that executable at that location to the much shorter mpicc.

View 3 Replies View Related

Programming :: Program That Activates A Command-line?

Feb 7, 2010

I am wanting to write a program that runs a program or command-line. Is there are way of making a program that activates a command-line (for example executing 'ps -a -f' or '/home/shared/fah').

In addition to that, I want the program to do a 'ps -a -f' and put the results in a buff, how could I do this.

View 5 Replies View Related

Programming :: Using Command-line Options With A Program That's Called Using Env

Oct 11, 2010

I thought about this a while ago when reading through a Python tutorial and I googled some and couldn't find an answer. Now I want to know it for Ruby, also, and it's more important now because I want to invoke Ruby with -w.

How can you use:

Code:

with a -w option to ruby, like:

Code:

This doesn't work and I can't find an explanation of how to do it.

Code:

View 1 Replies View Related

Programming :: Python - Call Function From The Command Line After Compile The Program?

Dec 28, 2010

If i have a python file with a function call_me(a,b),how can I call this function from the command line ,after i compile the program?

View 5 Replies View Related

Programming :: Write A Bash Script Program In System Command Terminal?

Mar 22, 2010

I'm trying to write a bash script program in the Linux command terminal that will write to a fellow user and then continue reading down the program. this is what i have (kind of explains the idea too):

#!/bin/sh

clear
echo "this is before the write command"
write jcummins
this message should go to jerry
echo "the message didn't send and this string will not appear"
echo "it appears it has stopped at the write command"

View 5 Replies View Related

Programming :: Create A Separate Thread For Program Which Basically Polls Using The Read Command?

Sep 28, 2010

I'm trying to create a separate thread for my program which basically polls using the read command. However this new thread seems to block the main thread, anyone know why this could happen.

In main I call this function pthread_create(&mainEventThread, NULL, GenericEventThread, NULL);

which calls
/*New threads start function */
void *GenericEventThread()
{
short int i, nError = -1;

[Code]...

I've used pthread_self to check that a new thread is being created, so why is the while loop in one thread blocking the main thread from running, I haven't used the join function anywhere in my code.

View 2 Replies View Related

Fedora :: Launch X Program From Tty?

Aug 25, 2010

How can you launch a graphical program from tty? It says that no display is available or something, how can i tell it to launch in the DE?

View 7 Replies View Related

Ubuntu Installation :: How To Launch Program?

Jun 10, 2010

The program is called the GNU C++ Compiler. I tried typing it in the terminal and pressing tab, but got nothing. How do I launch the program?

View 6 Replies View Related

Ubuntu :: Launch A Program Without Using The Trackpad?

Dec 12, 2010

Running Ubuntu 10.10 / Netbook Remix. I'm slightly annoyed that I can't Alt+F2 to start a program. Is there any way at all to start a program without having tomouse/trackpad?Bonus info:

Code:
kristian@napoleon:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu

[code]...

View 2 Replies View Related

Ubuntu :: Launch A Program Onto Another X Screen?

May 11, 2011

This is for a live performance type of setup. I have 2 graphics cards. One is attached to 2 projectors, which are what the audience sees. The other has a single monitor, which is backstage. The 'front' graphics card is configured in Twinview, and the 'backstage' one is configured as a second X screen by the nvidia settings control panel.

What I'd like to do is launch my show program from a terminal on my backstage screen, but have it show up on the other X screen, the 'front' one. X is amazing so I'm sure it can be done, but I'm having a hard time figuring out exactly how.

Personal Best for self-solving my own thread question:

Code:
DISPLAY=:0.0; xclock
launches on display 0
Code:
DISPLAY=:0.1; xclock
launches on display 1

[Code]....

View 3 Replies View Related

Red Hat / Fedora :: USB Driver To Launch Another Program?

Feb 2, 2010

I have a few issues. I have a usb kernel driver and I want it to launch another program that will monitor a serial port when the usb device is connected. then i want to close the program when the usb device is disconnected. I also want the driver to create a soft link to the serial port. I know the inner workings of kernel drivers... how to get my driver to exec a program.

View 4 Replies View Related

Ubuntu Installation :: Can't Access The .exe's What Files Launch A Program?

Feb 27, 2010

I'm completely new to the Linux OS. It is very foreign to me, i'm very used to the way windows does everything, including how windows does installation. I know that Linux doesn't understand .exe files like windows does... which is part of the problem. I have a linux zip file of a program (Jgrasp) that I want to install. I unzipped it into my home file and then wanted to run the program, but I have no idea what to do next. How the heck do I run the program if i can't access the .exe's what files launch a program in linux?Also how do i get it to recognize the JDK files?

View 2 Replies View Related

General :: Everytime Launch A Program Cant Use The Console Anymore

Dec 5, 2010

My problem is, that everytime i launch a program, like a virtualbox image, the console launch it, but i cant use it anymore.

I use ssh with putty remotely, and the problem is that if i close putty console, the program closes too...

Can i do something to run the program independently of the console? or keep running after i close?

How i can i keep track of it when i open console again?

View 11 Replies View Related

General :: Launch Screen As First Program When Opening Terminal?

Jun 14, 2011

I want to launch the screen program by default and automatically every time that I open the bash terminal. How can I set this in terminal? I'm using lxterminal - terminal for lxde desktop environment.

View 2 Replies View Related

Ubuntu :: Allow To Single Click To Open A Folder/launch A Program?

Mar 5, 2011

I've looked, but no luck. Coming from Debian, 5.02, is there a setting in Ubuntu 10.10 that will allow me to single click to open a folder/launch a program. I don't mean the one i am using now that is set up with the mouse setting where it seems to be an assistive technologies application where there is a slider to set the dwell time (when i use this one, i get a menu opening at the same time as the application launch), but the one where the pointer turns to a little hand when it moves over the icon, and opens/launches the program when the button is released.

View 3 Replies View Related

Programming :: Send A Run Program Command To Shell Thats Located In /home/user/myapp Using ./myapp From Irssi?

Mar 26, 2010

I am currently working to develop a perl script for irssi that will capture data from irc channel hold it in memory as variable and send it to a shell. Does anyone know a good irssi irc scripting guide? something that will include $botname, $msg, $nick, $channel etc scripting explanation. Is it possible to send a run program command to shell thats located in my /home/user/myapp using ./myapp from irssi? i am using bash. I've only just started, so i dont have any code written yet,

View 2 Replies View Related

CentOS 5 :: Compilation Of Gobject-introspection

Sep 21, 2011

I am trying to compile gobject-introspection-0.6.2in centOS 5.6 [Linux localhost.localdomain 2.6.39-4.el5.elrepo #1 SMP PREEMPT Thu Aug 4 19:58:19 EDT 2011 i686 i686 i386 GNU/Linux]. When i run ./configure it checks for all dependencies and run successfully but when i run i got a error <gio/gio.h> not found. but in fact i have set the GIO_UNIX_CFLAGS in the ./configure options. The configure command is ->

./configure GIO_UNIX_CFLAGS="-I/usr/local/glib/include/gio-unix-2.0
-I/gio/usr/local/glib/include/glib-2.0
-I/usr/local/glib/lib/glib-2.0/include"[code]....

By observing the make errors, its obvious that <gio/gio.h> is not found which is in the directory /usr/local/glib/include/glib-2.0/gio and set through GIO_UNIX_CFLAGS variable.

View 3 Replies View Related

General :: Can't Launch GUI From Command Line

Feb 22, 2010

I typed in sudo apt-get install ubuntu-desktop and it tells me it's already installed. Good. So it should work. I type sudo/etc/init.d/gdm start and the screen goes blank for 8 seconds three times in a row and then back to the command line. I have also tried gdm start without the path before and it says GDM already running. Aborting! I have 8.10 and it's a valid disk (no errors).

View 14 Replies View Related

General :: Can't Launch Command On Fedora

Jun 29, 2011

i should use Fedora and Ubuntu to learn about Linux but how to Launch the both OS in Command line mode to enable me learn some Linux command .

View 7 Replies View Related

Ubuntu :: Launch A Root Command In The Boot In 11.04?

Jun 20, 2011

In a computer, the brightness can't be changed with the fn key (and the brightness starts at 100%) :S I can set the brightness with this command from a shell: sudo setpci -s 00:02.0 F4.B=25 In Ubuntu 10.04 worked set this command in /etc/rc.local But in Ubuntu 11.04 I did this, but it didn't work. In which file can I set a root command in the boot in Ubuntu 11.04?

View 3 Replies View Related

General :: Unable To Launch Gcc Through Command Terminal

Feb 7, 2010

I am unable to launch gcc through command terminal.I am using red hat platform.

View 4 Replies View Related

Software :: Gobject Introspection 0.6.14 Build Blowing Up - Error

Dec 31, 2010

[code]...

this is the error i get building gobject-introspection.

View 1 Replies View Related

Ubuntu :: Launch Software Center From Command Line?

Feb 4, 2010

I'm trying to track down a problem with the Ubuntu Software Centre.How do I launch it from the command line? or is there any command which would list any errors in the software centre package?

View 2 Replies View Related

Ubuntu Installation :: Evolution Errors 11.04 GLib-GObject-CRITICAL

Apr 29, 2011

Just upgraded to ubuntu natty and evolution hangs.

Receive the following errors.allen@FA2096349:~/.evolution$ evolution(evolution:25316): GLib-GObject-CRITICAL **: Object class EMFolderTree doesn't implement property 'paste-target-list' from interface 'ESelectable' (evolution:25316): GLib-GObject-CRITICAL **: Object class EMFolderTree doesn't implement property 'copy-target-list' from interface 'ESelectable'

The evolution app starts, but all you get is Loading... for the folders in the side bay and the app is hung. Nothing is selectable and you have to CTRL-C out of it or use the kill app.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved