Re: Video file to subtitles file

2020-08-30 Thread Chris Angelico
On Mon, Aug 31, 2020 at 3:36 PM Christian Gollwitzer wrote: > > Am 30.08.20 um 21:43 schrieb MRAB: > > On 2020-08-30 18:10, Christian Gollwitzer wrote: > >> Well, with enough effort it is possible to build a system that is more > >> useful than "entertaining". Google did that, English youtube vide

Re: Video file to subtitles file

2020-08-30 Thread Christian Gollwitzer
Am 30.08.20 um 21:43 schrieb MRAB: On 2020-08-30 18:10, Christian Gollwitzer wrote: Well, with enough effort it is possible to build a system that is more useful than "entertaining". Google did that, English youtube videos can be annotated with subtitles from speech recognition. For example, try

Re: Symlinks already present

2020-08-30 Thread Chris Angelico
On Mon, Aug 31, 2020 at 1:17 PM Cameron Simpson wrote: > Each "source" symlink has its own inode. But if you os.stat() the > symlink it follows the symlink and you get the inode for the "target" > directory - two symlinks which point at the same directory will return the > same > inode and thus (

Re: Symlinks already present

2020-08-30 Thread Cameron Simpson
On 27Jul2020 20:20, Termoregolato wrote: >Il 26/07/20 20:39, Dennis Lee Bieber ha scritto: >>Since symbolic links are essentially just short files containing the >>path to the eventual target file/directory, with an OS flag that the file >>is a link > >Yes, I use them massively to give to a lot of

Re: Symlinks already present

2020-08-30 Thread Cameron Simpson
On 27Jul2020 22:19, Grant Edwards wrote: >On 2020-07-27, Termoregolato wrote: >> Il 26/07/20 22:47, dn ha scritto: >>> Thus, compare the results of the two calls to detect a difference. >> >> I will try also another way, If I don't err symlinks and original >> directory have the same inode numbe

Re: Threading plus multiprocessing plus cv2 error

2020-08-30 Thread Stephane Tougard via Python-list
On 2020-08-30, Barry wrote: >* The child process is created with a single thread—the one that > called fork(). The entire virtual address space of the parent is > replicated in the child, including the states of mutexes, > condition variables, and other pthr

Re: Video file to subtitles file

2020-08-30 Thread MRAB
On 2020-08-30 18:10, Christian Gollwitzer wrote: Am 30.08.20 um 17:25 schrieb MRAB: On 2020-08-30 07:23, Muskan Sanghai wrote: On Sunday, August 30, 2020 at 11:46:15 AM UTC+5:30, Chris Angelico wrote: I recommend looking into CMU Sphinx then. I've used that from Python. The results are highly

Re: Video file to subtitles file

2020-08-30 Thread Chris Angelico
On Mon, Aug 31, 2020 at 3:16 AM Christian Gollwitzer wrote: > > Am 30.08.20 um 17:25 schrieb MRAB: > > On 2020-08-30 07:23, Muskan Sanghai wrote: > >> On Sunday, August 30, 2020 at 11:46:15 AM UTC+5:30, Chris Angelico wrote: > >>> I recommend looking into CMU Sphinx then. I've used that from Pytho

RE: How do I pull the updated information from a tkinter form?

2020-08-30 Thread Steve
OK, I was closer than I thought. Two weeks ago, the concept of tkinter and these forms were totally new to me as well as, about two days ago, python list was totally new too. I somehow thought that "window.mainloop()" was supposed to be the last entry in the function, silly me... I did not think

Re: How do I pull the updated information from a tkinter form?

2020-08-30 Thread Peter Otten
Steve wrote: > #What I cannot seem to do is to pull the adjusted > #information from the form into variables, or a > #list/array, so that can be used for the update to the file. The updated data is in the StringVar-s, which, fortunately, you have available in a list ;) So: > def EditDataByForm

How do I pull the updated information from a tkinter form?

2020-08-30 Thread Steve
# With this program, I can read the information from # Specifications.txt file and display it on a form. # The user can then update/modify the fields. This is # all working fine and beeautifully... # # I now need to reverse the process and replace the # adjusted lines of data back into the

Re: Video file to subtitles file

2020-08-30 Thread Christian Gollwitzer
Am 30.08.20 um 17:25 schrieb MRAB: On 2020-08-30 07:23, Muskan Sanghai wrote: On Sunday, August 30, 2020 at 11:46:15 AM UTC+5:30, Chris Angelico wrote: I recommend looking into CMU Sphinx then. I've used that from Python. The results are highly entertaining. ChrisA Okay I will try it, thank yo

Re: Video file to subtitles file

2020-08-30 Thread MRAB
On 2020-08-30 07:23, Muskan Sanghai wrote: On Sunday, August 30, 2020 at 11:46:15 AM UTC+5:30, Chris Angelico wrote: On Sun, Aug 30, 2020 at 4:11 PM Muskan Sanghai wrote: > > On Sunday, August 30, 2020 at 10:57:00 AM UTC+5:30, Christian Gollwitzer wrote: > > Am 29.08.20 um 13:51 schrieb Muska

RE: How do I left-justify the information in the labels?

2020-08-30 Thread Steve
It turned out to be "sticky=tk.W" instead of "sticky=tkinter.w" Probably because I have "import tkinter as tk" It does work though. Mischief Managed Steve FootNote: If money does not grow on trees, then why do banks have branches? -Original Message- From: Python-list On Behalf Of

Re: How do I left-justify the information in the labels?

2020-08-30 Thread Peter Otten
Steve wrote: > How do I left-justify the information in the labels? > SVRlabel = ttk.Label(window, text = SpecLine + " "*5) > SVRlabel.grid(column = 1, row = x) The text in the labels already is left-justified -- but the labels themselves are centered inside the grid cells.

Re: Threading plus multiprocessing plus cv2 error

2020-08-30 Thread Barry
> On 30 Aug 2020, at 11:03, Stephane Tougard via Python-list > wrote: > > On 2020-08-30, Chris Angelico wrote: >>> I'm not even that makes sense, how 2 processes can share a thread ? >>> >> They can't. However, they can share a Thread object, which is the >> Python representation of a threa

Re: Where read() is documented

2020-08-30 Thread Chris Green
Stefan Ram wrote: > Chris Green writes: > >I went to sys.stdin but it didn't really lead me easily to the read() > >method. All I actually wanted to know was what was the type of the > >return value of the read() method which is different in Python 2 and 3. > > |>>> import sys > |>>> >>> sys.st

How do I left-justify the information in the labels?

2020-08-30 Thread Steve
for lineItem in range(len(ThisList)): SpecLine, Spec = GetLineByItem(ThisList[y]) OldSpec = Spec NewSpec = " " SVRlabel = ttk.Label(window, text = SpecLine + " "*5) SVRlabel.grid(column = 1, row = x) NewSpec = tk

RE: Problem running a FOR loop

2020-08-30 Thread Steve
Yes, that first option worked. Special thanks... Steve === Footnote: If 666 is considered evil, then technically, 25.8069758 is the root of all evil. -Original Message- From: Python-list On Behalf Of Peter Otten Sent: Sunday, August 30, 2020 5:29 AM To: python

Re: Threading plus multiprocessing plus cv2 error

2020-08-30 Thread Stephane Tougard via Python-list
On 2020-08-30, Chris Angelico wrote: >> I'm not even that makes sense, how 2 processes can share a thread ? >> > They can't. However, they can share a Thread object, which is the > Python representation of a thread. That can lead to confusion, and > possibly the OP's error (I don't know for sure,

Re: Problem running a FOR loop

2020-08-30 Thread Peter Otten
Steve wrote: > Compiles, no syntax errors however, line 82 seems to run only once when > the FOR loop has completed. > Why is that? All fields are to contain the specifications, not just the > last one. It seems that passing the StringVar to the Entry widget is not sufficient to keep it alive.

Re: Threading plus multiprocessing plus cv2 error

2020-08-30 Thread Barry Scott
> On 29 Aug 2020, at 18:01, Dennis Lee Bieber wrote: > > On Sat, 29 Aug 2020 18:24:10 +1000, John O'Hagan > declaimed the following: > >> There's no error without the sleep(1), nor if the Process is started >> before the Thread, nor if two Processes are used instead, nor if two >> Threads ar

Problem running a FOR loop

2020-08-30 Thread Steve
Compiles, no syntax errors however, line 82 seems to run only once when the FOR loop has completed. Why is that? All fields are to contain the specifications, not just the last one. Steve -- T

Re: Threading plus multiprocessing plus cv2 error

2020-08-30 Thread John O'Hagan
On Sat, 29 Aug 2020 13:01:12 -0400 Dennis Lee Bieber wrote: > On Sat, 29 Aug 2020 18:24:10 +1000, John O'Hagan > declaimed the following: > > >There's no error without the sleep(1), nor if the Process is started > >before the Thread, nor if two Processes are used instead, nor if two > >Threads

Re: Where read() is documented

2020-08-30 Thread Chris Green
MRAB wrote: > On 2020-08-29 17:48, Chris Green wrote: > > Stefan Ram wrote: > >> Chris Green writes:I can't find the documentation for > >> >read(). It's not a built-in function and it's not documented with > >> >(for example) the file type object sys.stdin. > >> > >> |read() (asyncio.Stre

Re: Silly question, where is read() documented?

2020-08-30 Thread Chris Green
Terry Reedy wrote: > On 8/29/2020 12:18 PM, Chris Green wrote: > > Well it sounds a silly question but I can't find the documentation for > > read(). It's not a built-in function and it's not documented with > > (for example) the file type object sys.stdin. > > sys.stdin is of no particular type

Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-30 Thread Chris Green
Cameron Simpson wrote: > On 29Aug2020 16:50, Chris Green wrote: > >However the problem appears to be that internally in Python 3 mailbox > >class there is an assumption that it's being given 'ascii'. Here's > >the error (and I'm doing no processing of the message at all):- > > > >Traceback (

Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-30 Thread Chris Green
Karsten Hilbert wrote: > > However the problem appears to be that internally in Python 3 mailbox > > class there is an assumption that it's being given 'ascii'. > > Do you really _need_ the mailbox class ? From what you've > written so far my understanding was that you receive data > (bytes) and

Re: Threading plus multiprocessing plus cv2 error

2020-08-30 Thread Karen Shaeffer via Python-list
> On Aug 29, 2020, at 10:12 PM, Stephane Tougard via Python-list > wrote: > > On 2020-08-29, Dennis Lee Bieber wrote: >> Under Linux, multiprocessing creates processes using fork(). That means >> that, for some fraction of time, you have TWO processes sharing the same >> thread and all t