Re: [pygtk] Portable PyGTK

2010-11-23 Thread Vláďa
Hi, It's very simple to do it. First install everything you need (Python, PyGTK, GTK+, py2exe etc.) and copy to your Flash drive. The GTK binaries copy to a GTK directory in Python's folder. Then start your PyGTK programs with a .bat file similar to this one: @ECHO OFF set DRIVE=%~d0 set

Re: [pygtk] pygtk and cygwin

2008-08-28 Thread Vláďa
It is also possible to combine it all into a portable development enviroment. It took me quite some time to figure it out but it works great on my flash drive. If someone's interested I can post a guide. It's not my own idea but I hope the author wouldn't mind. Vlada John Stowers napsal(a):

Re: [pygtk] Asynchronous access at output of os.popen( ) call

2008-08-20 Thread Vláďa
Pádraig Brady [EMAIL PROTECTED] wrote: A.T.Hofkamp wrote: Pádraig Brady wrote: togix wrote: Hi, I'm working on a GUI in PyGTK that allows to insert some parameters and then to call a program (written in C) using the os.popen() function. The thing that I want to do is redirect

Re: [pygtk] PyGTK and threading

2008-08-20 Thread Vláďa
Thanks a lot John, This guide is easy to understand and works perfectly for my needs. I made my code based on the example and I had no freezes or lock-ups since then. Best regards, Vlada John Stowers [EMAIL PROTECTED] napsal(a) : On Sun, 2008-08-17 at 22:49 +0200, Vláďa wrote: Thanks

[pygtk] PyGTK and threading

2008-08-17 Thread Vláďa
Hello, I'm looking for an up to date information about threading in PyGTK. I found some tutorials on net, but they look outdated to me. The one example which worked after some modifications is this: [code] import pygtk pygtk.require('2.0') import gtk from threading import * import time import

Re: [pygtk] video thumbailing

2008-06-02 Thread Vláďa
Or it should be possible to use ffmpeg. There is a wrapper called PyMedia (http://pymedia.org/), I've never used it, but it should be able to do the job. In my application I use Avisynth to get thumbnails of multimedia files. But this is a Windows-only solution because development of

[pygtk] Blocking main loop during execution of external program

2008-05-18 Thread Vláďa
Hi, I'd like to ask you for help with solving my problem. First I'll try to describe what I'm doing: I have a PyGTK application which needs to run an external command. I use subprocess.Popen to do it. Then I run a gtk.Dialog (saying Please wait) and wait until the process is finished. After

Re: [pygtk] Using gettext, where am I doing mistake

2008-05-09 Thread Vláďa
that the problem is somewere in location of the .mo file. It is in c:\python\locale\cs\LC_MESSAGES\translate.mo. Is it possible to find out at which locations is the gettext extension looking for the .mo files? Thank you, Vlada Jarek Zgoda napsal(a): Vláďa pisze: Thank you

Re: [pygtk] Using gettext, where am I doing mistake

2008-04-29 Thread Vláďa
Jarek Zgoda napsal(a): Vláďa pisze: Hello, I'm trying to translate my own application written in PyGTK on Windows. This is what I did: First of all my test application *translate.py* stored in c:\Python: #!/usr/bin/env python import pygtk pygtk.require('2.0') import gtk import gettext

[pygtk] Using gettext, where am I doing mistake

2008-04-28 Thread Vláďa
Hello, I'm trying to translate my own application written in PyGTK on Windows. This is what I did: First of all my test application *translate.py* stored in c:\Python: #!/usr/bin/env python import pygtk pygtk.require('2.0') import gtk import gettext import locale

Re: [pygtk] Label a different font sizes

2008-04-19 Thread Vláďa
system little bigger then normal font size. Using values around 2 works correctly. What unit is the font size in? Thousandths of point? Vlada John Finlay napsal(a): Vláďa wrote: So I think my code is correct. The problem is, that the first value (size=14) in my example is also used

Re: [pygtk] Newbie question

2008-04-18 Thread Vláďa
This sounds very strange. Please check your code or post here a simple example. I'm working on an application which is similar to your's (but works with DVDs and video) and everything works fine. Vlada Geert Geurts napsal(a): Hello, I'm a newbie trying to get to know pygtk/gtk so my

Re: [pygtk] Label a different font sizes

2008-04-17 Thread Vláďa
, the first 2 have size 14, the last one is small. But the second line should have size 10. What is wrong in my code? Thank you John Finlay napsal(a): Vláďa wrote: Hi, I have a question regarding labels and Pango. I want to use different sizes of font, but unfortunately it doesn't work. If I use

[pygtk] Label a different font sizes

2008-04-16 Thread Vláďa
Hi, I have a question regarding labels and Pango. I want to use different sizes of font, but unfortunately it doesn't work. If I use self.label = gtk.Label('span size=14Text 1/span\nspan size=10Text 2/span') then only the first size definition (14) is taken into account. The second line

Re: [pygtk] Dynamically resize text to fit a fixed sized label

2008-03-14 Thread Vláďa
Maybe this would help: http://faq.pygtk.org/index.py?req=showfile=faq04.015.htp Vlada F Wolff napsal(a): Op Dinsdag 2008-03-11 skryf Darwin Bautista: Hi all, I'm planning to dynamically resize the text to fit a fixed sized label when it overflows. How do I determine if a certain text

Re: [pygtk] [ANN] PyGtkImageView 1.1.0 -- Image viewer widget for PyGTK

2008-03-13 Thread Vláďa
Hi, this is very interesting. I'm wondering if somebody's working on a free multiplatform image viewer and simple editor, which would use this widget. There is really a big hole in this type of software for Windows. Even for Linux the only good image viewer I know is Gwenview. The other ones

[pygtk] Help with choosing a widget

2008-03-07 Thread Vláďa
Hello, I already sent this email once, but with attachment, so it needs approval. I think it will be better to upload my pictures at Imageshack. I'm trying to create a program, where will be a list of video files which should look like it is shown on this drawing:

[pygtk] Subprocess and changing it's priority

2008-02-25 Thread Vláďa
Hello, I have a GUI program which runs some CLI processes. I use modified code of this module: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440554 It is a black magic for me. :-) Then I run the CLI application: self.p =

Re: [pygtk] Subprocess and changing it's priority

2008-02-25 Thread Vláďa
(a): On Mon, Feb 25, 2008 at 11:49 AM, Vláďa [EMAIL PROTECTED] wrote: Hi Everything works fine. But I'd like to add an option to change priority of the process I started. It is a video encoder, so it uses 100% of CPU and takes hours to finish. So you might want to lower it's priority

Re: [pygtk] Running a CLI program

2008-02-14 Thread Vláďa
Yes, I'm on Widows. I know the difference between python.exe and pythonw.exe. But I was talking about a console windows created by the external CLI application i run. Anyway I already solved my problem by using gobject. Thanks, Vlada John Ehresman napsal(a): [EMAIL PROTECTED] wrote: I

[pygtk] Running a CLI program

2008-02-10 Thread Vláďa
Hello, I'm working on a multimedia converter. I plan to use CLI encoders (lame, x264, xvid_encraw etc.) But I don't know hot to run these programs effectively from PyGTK. I need it to run on Windows at least. I don't know hot to do following things: 1) Run a CLI application without