Software :: Pygtk - Updating Status Bar During Long Operation?
Mar 28, 2011
I'm trying to write a gui front-end for fsarchiver using pygtk. It mostly works, but I'd like to update the front-end's status bar while fsarchiver is running. I've placed the code for the actual call to fsarchiver in one thread, and the code to update the status bar in another thread as shown below. Messages from show_progress() get printed in the terminal window, as expected. I've tried adding
Code:
while gtk.events_pending():
gtk.main_iteration_do(False)
but obviously, I'm not doing it correctly because the status bar text does not update. Is what I'm trying to do possible, and, if so, how should it be coded?
Here's the code snippet from my calling routine:
Code:
self.activethreads=2
thread.start_new_thread(self.do_fsarchive, (my_cmd,))
print "start 2nd thread now
"
thread.start_new_thread(self.show_progress,(10,status_text))
And here are the two functions:
code....
View 7 Replies
ADVERTISEMENT
Jun 29, 2011
This is the error I get when I try to update it:
Code:
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.
View 1 Replies
View Related
Apr 3, 2010
I am facing the below problem while installing ClearCase 7.1 in a redhat 5.4 machine.Error during "post-install configure" phase: Error executing "/opt/IBM/RationalSDLC/clearcase/etc/clearcase" operation (status=50). See agent output log for more information: /var/ibm/InstallationManager/logs/native/20110519_0846.log
Install:
JVM terminated. Exit code=1
/net/zin21vob01/vob/vob_storage/cc71/linux/InstallerImage_linux//jre_5.0.3.sr8a_20080811b/jre/bin/java
-Xquickstart
-Xgcpolicy:gencon
[code]....
View 1 Replies
View Related
Jan 9, 2010
just start Ubuntu 9.04 said: File system chek failed a long is beging saved /var/long/fsck/checkfs if that location is writable Please repair the file systmen manually A maintenance shell will now be started Ctr+ D terminate this shell and resume system boot. Give root password for maintenance or type Control +D to continue. I did Ctr+D , and after login said , that can not find /home. I starte with the live cd:
[Code]....
View 9 Replies
View Related
Jul 5, 2010
I have just upgraded to Lucid on Ubuntu. I am a long time Pidgin user. I tried using Empathy with Gwibber, but I can't get Gwibber to update my IM status(es) in Empathy, so I want to go back to using Pidgin. (Additionally, I can't get Skype to work with Empathy.)I installed pidgin-microblog and pidgin-mbpurple, and they allow me to view my Twitter feed in Pidgin and update my Twitter status in Pidgin. However, in Karmic, I was also able to specify certain "status availabilities" (one named "Twitter-Available" and one named "Twitter-Away", for instance) to have the IM status message for these statuses become populated with my Twitter feed. This capability seems missing in pidgin-mbpurple in Lucid (and it seems to be the only thing missing from Karmic).
Is there a way to have pidgin-mbpurple update certain "status availabilities" in Lucid (and I'm just missing something) or is this no longer possible?Equivalently, is it possible to have Gwibber update my status message in Empathy? (I just want to be able to update my status once on one of my three computers - and have it propagate to all my other accounts (IM and social networking) and computers).
View 1 Replies
View Related
Dec 18, 2010
Does anyone know how to install pyGTK 2.12?
View 4 Replies
View Related
Sep 13, 2010
I am having a strange problem. No python application that is built on GTK doesn't works. I always get the error ''could not import module,module not found''. I f i try to install it it says its already installed, and if i try to remove python and reinstall it it will take all python apps with it. DO you know how can i fix this?
View 2 Replies
View Related
Feb 1, 2011
I have a volume control program I am writing for oss. Everything works in the program but I would like window to appear above the notification area icon. Is there a way to do this? If not is it possible to have the window open at the mouse location so it looks like it is part of the notification icon?
View 1 Replies
View Related
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
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
Feb 14, 2011
I have tried rebuilding pygtk after installing Numpy and ended up making a mess of python. I have it back to functional now, but I would like to know how to properly add numeric python support. I suspect there is a proper order to building all of the python dependencies that yields success. Ultimately I am trying to run mypaint.
View 3 Replies
View Related
Feb 16, 2011
Started getting this middle last year and was hoping it'd just go away or fix itself or something. Alas, no such luck.
$ meld
No module named pygtk
Meld requires pygtk2.6.0 or higher.
$
View 5 Replies
View Related
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
Jul 24, 2010
How would you make a window drag'n'drop? I have hidden the title bar using:
Code: self.window.set_decorated(False)
But I still want this window to be moveable, by clicking and dragging anywhere within the window. I would rather just use pyGTK, but Xlib is fine with me as well.
View 5 Replies
View Related
Apr 13, 2011
I'm on Debian Lenny. I've built and installed python-3.2 in /opt/python-3.2. Then i want to build and install pygtk, pycairo with /opt/python-3.2 and install them in that folder and not to use system default python (which is python-2.6) for their build process.
How do I tell pygtk and pycairo 's configure and makefile script to use /opt/python-3.2 's interpreter, include file and library for their build process(and not the system default python)?
I tried doing ./configure --help in pygtk folder but there was no option for specific non-system default python's folder location. Anyone has any ideas?
View 3 Replies
View Related
Oct 8, 2010
I'm trying to install the nautilus-dropbox plugin for dropbox on my CentOS 5.5; while configuring, there is the following error message:
checking pkg-config is at least version 0.9.0... yes
checking for NAUTILUS... yes
checking for GLIB... yes
checking for python... /usr/bin/python
[code]....
But I think I have already installed pygtk2, as shown by yum:
Installed Packages
pygtk2.x86_64 2.10.1-12.el5 installed
pygtk2-codegen.x86_64 2.10.1-12.el5 installed
[code]....
So does the error message means that it requires pygtk rather than pygtk2?
View 5 Replies
View Related
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
View Related
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
Mar 28, 2011
Is there any reason why PyGTK is still at 2.22?
There are warnings generated when using Matplotlib (though execution can continue).
Will we likely see an upgrade before 13.37?
View 2 Replies
View Related
Mar 16, 2011
After a fresh installation of Ubuntu 10.10 I uninstalled empathy (im using skype). The empathy menu in the evolution indicator was gone after that.I also uninstalled gwibber. But the gwibber status indicator remains within the about-me panel... Uninstalling the gwibber package also removes the me-menu which I want to keep actually. Especially the shutdown/restart... part of it. See attachment.I know there is a shutdown panel-app...but its butt-ugly and it doesnt allow to logon/off.
In another thread I read that the gwibber status shouldnt be there if no account for it is configured... which it is not... I do use ubuntu-one though which is in the same menu... I saw that this issue was addressed at some bug report before, but not fixed yet...
Does anybody know a good workaround to get rid of the gwibber status in the panel while keeping the about me and the shutdown button?
View 3 Replies
View Related
Aug 27, 2010
I have dowmloaded the latest version of Gnome Nanny, but have run into an instal problem at the first hurdle:
I have extracte the folder to Documents: Cd/ to the folder and run the ./configure command and get this message: No package 'pygtk-2.0' found
I have checked the install files and edited the lines which contain the above to now read pygtk -2.0 >=2.8 as 2.8 is the version of python I have installed. In package manager it only goes back to v2.2.
How I can get around this error?
Running Ubuntu 9.1 karmic Koala.
View 5 Replies
View Related
Apr 21, 2011
I have a 3dsp pci wifi card, and the last kernel it supports is Ubuntu 10.04 2.6.32-(21-24) I want to update but dont want to accidentally update the kernal.
View 3 Replies
View Related
Oct 13, 2009
I am running Centos 5.3. I ran no updates, performed no installs, nor changed any configuration immediately prior to this issue. My problem is this: when I run the command startx (default runlevel 3), it is a long time (5-10 minutes) before Gnome startx, and once it does start applications will not run. Also, when I try to use sudo (from any environment, even ssh), it is a long time (5-10) before the command is executed.
I cannot say for sure, but it seems like this is an intermittent problem. Sometimes X takes a long time to start, but once it starts it will launch programs. Sometimes X takes a long time to launch, but once it starts it will only launch certain programs. Though presently X always takes a long time to start, and I cannot successfully launch any programs.
A while back a had a similar problem to this (x taking long time to start, sudo taking long time to execute) and it ended up being a DNS problem. Unfortunately, I cannot remember exactly what it was and I stupidly did not document it. Maybe this is also DNS related, I don't know.
I don't know what log files to look at for problems with X, Gnome, and sudo taking a long time to start.
View 19 Replies
View Related
Jun 21, 2010
After I set to use some modules, say, pam_access.so, I want to know if there is a way for the administrator to check if any invalid attempt was happened and blocked by that module?
View 15 Replies
View Related
Apr 7, 2009
I have installed Fedora 10 in my laptop. After installation in Fedora 10, im not able to use Touchpad to perform a task like to open a folder/open a window/select a word. I am doing above mentioned operations through left button/right button.
View 4 Replies
View Related
Nov 4, 2010
In the system monitor it states:Release 11.2 Kernel Linux 2.6.31.5 -0.1 -desktop
GNOME 2.28.0Last week when I rebooted my machine, I suddenly found my machine had no response to any click or typing. When the cursor move to any icons, they can be highlighted, but when I click them, no response at all. The weird thing is almost every time after I reboot the computer, it can work for a few minutes, then stop working. But if I press Ctrl+Alt+Backspace, it can be log out.
I think there must be something wrong with my GNOME, 'cause everything seems working fine when I login IceWM. may be recover the .config file in my home directory. But I don't have this file in my home directory.
View 2 Replies
View Related
Jul 19, 2011
I was messing around with my drive trying some different arrangements of partition to get another one inside. overall the result doesn't differ much from the original but while messing with it I done a lot of steps. I thought GParted will do the minimal number of operations but it didn't. it just traced all my operations one by one. this gave it a few days worth of work. As I don't want to loose data I can't hit cancel but I don't want to wait few days for it. Is there any way to tell it to stop after completing the current operation? It's from natty ubuntu live cd.
View 1 Replies
View Related
Oct 11, 2010
Trying to install 10.10 for thr first time from a cd and am new to all this. when i say to install along side windows it gives me the option to say how much space to give ubuntu and i say to give it about 90gig to make sure i have room for music and movies and such... then when it starts to partition i get an error in the middle saying "an error occurred while writing changes to the storage device. the resize operation has been aborted" what can i do to get it to work? is 90 gig to much? not enough? i wouldnt mind doing a full install and deleting windows but i need to be able to use lightroom 3 and photoshop cs5...
View 9 Replies
View Related
May 21, 2011
So hibernate used to work fine on my computer, but then after some updates one day - the option just disappeared from all log-out consoles from all desktop managers (xfce4, gnome .etc).xfce4-power-manager now says "Hibernate operation not supported" when I attempt to select it.
View 1 Replies
View Related
Mar 10, 2011
I've the following input file (sorted.txt)
Code:
A 1
A 1
[code]...
View 6 Replies
View Related