Re: tkinter treeview widget - bind doubleclick to items only ?

2020-01-21 Thread R.Wieser
MRAB, > Huh, I never noticed that! Yep. And as that unfolding and folding is fully done inside the treeview widget itself there is no way you can fix it with a bit of python code. :-( > I think it's an issue with Tk itself. Most likely.Rather odd that that issue it still exists though. I

Re: tkinter - Changing the fontsize for the window and its widgets ?

2020-01-21 Thread R.Wieser
Terry, > A physically large display should have physically larger pixels, but see > below. :-) Although the width of the monitor on which the default font size is used is 47 cm and that of the TV is 81, the distance to the monitor is about 65 cm, while the distance to the TV is about 2.5 mete

Re: tkinter treeview widget - bind doubleclick to items only ? Anyone ?

2020-01-25 Thread R.Wieser
"R.Wieser" wrote in message news:r040ls$fje$1...@gioia.aioe.org... > Hello all, > > I've create a treeview, and would (ofcourse) want to register some > mouse-clicking on it, and for that I've found the ".bind()" method. > > https://stackoverfl

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-01-30 Thread R.Wieser
jkn, > MRAB's scheme does have the disadvantages to me that Chris has pointed > out. Nothing that can't be countered by keeping copies of the last X number of to-be-dowloaded-URLs files. As for rewriting every time, you will /have/ to write something for every action (and flush the file!), if

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-01-30 Thread R.Wieser
Chris, > Uhh > > Proper databases don't HAVE non-atomic operations. That's kinda their job. Uhh... yes, /singular/ operations are considered to be atomic. A series of operations /ment/ to be executed as a single one on the other hand aren't. > Unless you mean that there's a non-atomic ope

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-01-30 Thread R.Wieser
Chris, > That's what transactions are for. Again, >> I guess that that went right over your head. :-)/You/ might know >> exactly >> what should and shouldn't be done, what makes you think the OP currently >> does ? > I don't understand why you're denigrating databases, Am I denigrating a

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-01-30 Thread R.Wieser
Chris, >> I think that a database is /definitily/ overcomplicating stuff, > > Okay, sure... but you didn't say that. I'm sorry ? In my first reply I described a file-based approach and mentioned that the folder approach is a rather good one. What do you think I ment there ? > You said that

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-01-30 Thread R.Wieser
Chris, > Yes, and then you backpedalled furiously when I showed that > proper transactions prevent this. You're a fool, out for a fight. /You/ might know exactly how to handle a database to make sure its /transactions/ will not leave the database in a corrupt state, but as I mentioned a few po

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-01-31 Thread R.Wieser
Dennis, > A full client/server RDBM should never be affected by an abort > of a client program. What you describe is on the single query level. What I was thinking of was having several queries that /should/ work as a single unit, but could get interrupted (because of the OPs ctrl-c). Yes, C

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-01-31 Thread R.Wieser
DL, >> Nothing that can't be countered by keeping copies of the last X number of >> to-be-dowloaded-URLs files. > > That's a good idea, but how would the automated system 'know' to give-up > on the current file and utilise generation n-1? Unable to open the file or > ??? Well, that would be one r

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-01-31 Thread R.Wieser
jkn, > I think a combination of hashing the URL, I hope you're not thinking of saving the hash (into the "done" list) instead if the URL itself. While hash collisions do not happen often (especially not in a small list), you cannot rule them out. And when that happens that would mean you wo

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-01-31 Thread R.Wieser
jkn, > I'm happy to consider the risk and choose (eg.) the hash function > accordingly, thanks. No problem, just wanted you to be aware and (thus) able to choose. Regards, Rudy Wieser -- https://mail.python.org/mailman/listinfo/python-list

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-02-01 Thread R.Wieser
DL, >> While I agree with you there, I've been searching for other ways to >> detect a >> keypress (in a console-based script) and have found none. > > Color me disappointed! I was disapponted too, but realized that being able to just capture any keypress (how does the 'puter know the sc

Re: Load python from different plugin dlls

2020-02-12 Thread R.Wieser
Eko, > which needs also access to python3.dll but cannot load it itself as it has > been already loaded by plugin1 > > Is such a scenario actually possible? Yes. Normally a DLL can be loaded in as many processes (and threads thereof) as you like. However, it is possible that the DLLs initialis

Re: Load python from different plugin dlls

2020-02-13 Thread R.Wieser
Eko, > My test looks like this right now. And there you have a probem, as I have no experience with what those functions do. The below is therefore just a bit of educated guessing, so caveat emperor. > According to the docs PyImport_AppendInittab should be called > before Py_Initialize And

Re: ÿ in Unicode

2020-03-07 Thread R.Wieser
Moi, > - Today, there are still people who do not understand a > "ÿ' can not be *safely* encoded with a single byte. It can (and has been done for ages), just not in the character encoding method you've choosen to use. > - Python == Latin-1 mess (as somebody wrote on a mailing list). Putting b

Re: ÿ in Unicode

2020-03-07 Thread R.Wieser
Moi, > Fortunately, UTF-8 has not been created the Python devs. And there we go again, making vague statements/accusations - without /anything/ to back it up ofcourse Kiddo, you have posted a couple of messages now, but have said exactly nothing. Are you sure you do not want to go into polit

<    1   2