How to run sound file repeatedly in loop ?
When I do this, it does nothing and terminates:
import pygst
pygst.require("0.10")
import gst, gtk
n=0
while n<10:
player = gst.element_factory_make("playbin2", "player")
player.set_property("uri", "file:/home/varnika/hello.ogg")
player.se
Hi,
How to check if OCR engine like cuneiform,ocropus,ocrad OCRing an image has
completed the job if running it from a python program?
I am using a progress bar on the front end to show the OCRing progress
happening in background but how to stop progress bar automatically when
OCRing is done.
A
How to use keyboard shortcuts like ctrl+o for opening a file from menubar
menuitm OPEN in python+GLADE?
--
Varnika Tewari
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Whenever I try to open a .txt file in textview of glade, it never opens and
throws this error:
GtkWarning: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text,
len, NULL)' failed
self.text_view.get_buffer().insert(self.text_view.get_buffer().get_end_iter(),
"\n" + file.read())
It op
Hi,
Can anyone tell me how to get text from a html file?I am trying to display
the text of an html file in textview(of glade).If i directly display the
file,it shows with html tags and attributes, etc. in textview.I don't want
that.I just want the text.
Can someone help me with this?
Regards
Varn
And I am using python and GLADE for GUI
On Fri, Apr 9, 2010 at 6:30 PM, varnikat t wrote:
> Hey thanks a lot to all of youNow i understood the concept and can use
> it the right way
>
> I have another doubt regarding using radio buttons
>
> I am using two radio b
buttons are active
I don't know how to toggle between the two radio buttons.
Also I want to display the respective image with them Landscape and portrait
at the top of each optionCan anyone help me with this?
On Fri, Apr 9, 2010 at 6:05 AM, Tim Chase wrote:
> On 04/08/2010 12:22 PM, varnikat
it gives me this error
TypeError: coercing to Unicode: need string or buffer, list found
On Thu, Apr 8, 2010 at 10:48 PM, varnikat t wrote:
>
>
>
>
> Hey,
> Thanks for the help.it detects now using glob.glob("*.*.txt")
> Can u suggest how to open and read f
file=open(glob.glob("*.*.html"))
self.text_view.get_buffer().set_text(file.read())
*
This gives error!!
On Thu, Apr 8, 2010 at 9:12 PM, Kushal Kumaran <
kushal.kumaran+pyt...@gmail.com > wrote:
> On Thu, Apr 8, 2010 at 9:00 PM, varnikat t wrote:
> >
I am trying to do this
if os.path.exists("*.*.txt"):
file=open("*.*.txt")
self.text_view.get_buffer().set_text(file.read())
else:
file=open("*.*.html")
self.text_view.get_buffer().set_text(file.read())
It gives error *.*.txt not existingThere are
10 matches
Mail list logo