Re: Winreg

2020-07-30 Thread Eryk Sun
On 7/30/20, R Pasco wrote: > access rights must be set to [winreg.KEY_ALL_ACCESS | winreg.KEY_WOW64_64KEY It's a bad practice to request more access than you require, at the very least because the request may fail with access denied for no good reason. KEY_ALL_ACCESS includes all applicable s

replying to the mailing list (was: Winreg)

2020-07-30 Thread Cameron Simpson
On 30Jul2020 20:25, Barry Scott wrote: >Use the Reply or Reply-To-All feature of your email program and it will do the >rest for you. Plain "reply" is often only "reply-to-author" for many mailers. I use "reply-to-all" myself, and edit the headers if that seems excessive. Some mailers (eg mut

Re: Winreg

2020-07-30 Thread dn via Python-list
On 31/07/2020 07:25, Barry Scott wrote: Use the Reply or Reply-To-All feature of your email program and it will do the rest for you. I can't find instructions for the proper way to reply to 'python list'. Is it simply a matter of keeping the message title identical to the original message and

Re: Gtk.TextBuffer problem on converting from GTK+ 2 to GTK+ 3

2020-07-30 Thread Chris Green
MRAB wrote: > > > > What am I doing wrong? Virtually nothing has changed in this part of > > my code between gtk+ 2 and gtk+ 3, just the import and gtk to Gtk and > > a couple of enum formats. > > > You're creating a TextBuffer and a TextView, but I don't see any code > that ties them together

Re: Winreg

2020-07-30 Thread Barry Scott
Use the Reply or Reply-To-All feature of your email program and it will do the rest for you. Barry > On 30 Jul 2020, at 20:14, R Pasco wrote: > > I can't find instructions for the proper way to reply to 'python list'. Is > it simply a matter of keeping the message title identical to the origi

Re: Non IDE development strategy - what do others do that's fairly simple?

2020-07-30 Thread Marco Sulla
What you want is a branch, I guess. https://www.mercurial-scm.org/wiki/Branch For simplicity, I suggest you have two different directories: one for the development branch and the other for the production branch. -- https://mail.python.org/mailman/listinfo/python-list

Winreg

2020-07-30 Thread R Pasco
I can't find instructions for the proper way to reply to 'python list'. Is it simply a matter of keeping the message title identical to the original message and emailing again to python-list@python.org ? I'll reply both ways to test this. Yes, it's the 64/32-bit views that got me stuck. I think I

Re: why is requests 2.24 behaving differently on different Win10Pro PCs?

2020-07-30 Thread Barry
> On 29 Jul 2020, at 23:06, nhpython wrote: > > python 3.6+ > requests 2.24 > 2- windows 10 Pro version 2004, build 19041.388 > 1- kubuntu 18.04 > 1-suse leap 15.2 > > Questions > 1. how do I begin to diagnose the source of the problem? > 2. Has anyone experienced this behavior? > > > I hav

Re: Gtk.TextBuffer problem on converting from GTK+ 2 to GTK+ 3

2020-07-30 Thread MRAB
On 2020-07-30 17:23, Chris Green wrote: I'm converting a program from Python 2 gtk+ 2 to Python 3 and gtk+ 3. It's mostly gone reasonably smoothly but I can't get multi-line text entry to work. The class that provides text entry (both single and multi-line) is:- # # # Field on th

Gtk.TextBuffer problem on converting from GTK+ 2 to GTK+ 3

2020-07-30 Thread Chris Green
I'm converting a program from Python 2 gtk+ 2 to Python 3 and gtk+ 3. It's mostly gone reasonably smoothly but I can't get multi-line text entry to work. The class that provides text entry (both single and multi-line) is:- # # # Field on the GUI # class guiField: w

Re: Winreg

2020-07-30 Thread Barry Scott
You left python list off your reply. > On 29 Jul 2020, at 23:38, R Pasco wrote: > > Hi, Barry, > > On Wed, Jul 29, 2020 at 5:12 PM Barry > wrote: > > > On 29 Jul 2020, at 19:50, R Pasco > > wrote: > > > > I'm running python 3.8 o

Re: How to find code that causes a 'deprecated' warning?

2020-07-30 Thread Chris Green
Peter Otten <__pete...@web.de> wrote: > Chris Green wrote: > > > I am getting the following warning from a program I have just > > converted from gtk 2 to gtk 3 :- > > > > (abook:58240): Gtk-WARNING **: 12:01:58.064: Theme parsing error: > > gtk.css:66:28: The :prelight pseudo-class is deprecated

Re: What's the enum for a button press event in pygobject 3?

2020-07-30 Thread Chris Green
MRAB wrote: > On 2020-07-30 11:09, Chris Green wrote: > > I am going round and round in steadily increasing frustration trying > > to find the constants for button events in Pygobject/Gtk 3. > > > > I have the following imports:- > > > > import gi > > gi.require_version('Gtk', '3.0') >

pip 20.2 release, plus changes coming in 20.3

2020-07-30 Thread Sumana Harihareswara
On behalf of the Python Packaging Authority, I am pleased to announce that we have just released pip 20.2, a new version of pip. You can install it by running python -m pip install --upgrade pip. The highlights for this release are: - The beta of the next-generation dependency resolver is a

Re: What's the enum for a button press event in pygobject 3?

2020-07-30 Thread MRAB
On 2020-07-30 11:09, Chris Green wrote: I am going round and round in steadily increasing frustration trying to find the constants for button events in Pygobject/Gtk 3. I have the following imports:- import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk fr

questions re: calendar module

2020-07-30 Thread o1bigtenor
Greetings I regularly work in planning through multiple years at once. This means that I like to have a lot of stuff available in a calendar function. Python seems to be locked when I need to display more than 1 year at a time. I don't see a way to display something like 3 years worth of calendar

Re: How to diagnose import error when importing from .so file?

2020-07-30 Thread Christian Gollwitzer
Am 29.07.20 um 23:01 schrieb Chris Green: Even more annoying is that most of what's in pyscand.so is constants, there's only a couple of functions in there, so there's very little to it really. If there are really only constants, you could import it into Python 2 and dump the content e.g. as a

Issue with Python installation for a beginner Python coder.

2020-07-30 Thread Sarvesh Poddar via Python-list
Hi, I re-installed Python in my Windows system as the earlier one was not able to import modules. But now I am not able to open IDLE after multiple tries.  Can you guys help me? I am a beginner and tried out a lot of solutions provided on the internet and it's just not getting fixed. Please help.

Re: How to find code that causes a 'deprecated' warning?

2020-07-30 Thread Peter Otten
Chris Green wrote: > I am getting the following warning from a program I have just > converted from gtk 2 to gtk 3 :- > > (abook:58240): Gtk-WARNING **: 12:01:58.064: Theme parsing error: > gtk.css:66:28: The :prelight pseudo-class is deprecated. Use :hover > instead. > > How do I find what is c

How to find code that causes a 'deprecated' warning?

2020-07-30 Thread Chris Green
I am getting the following warning from a program I have just converted from gtk 2 to gtk 3 :- (abook:58240): Gtk-WARNING **: 12:01:58.064: Theme parsing error: gtk.css:66:28: The :prelight pseudo-class is deprecated. Use :hover instead. How do I find what is causing the warning? I'm not using t

What's the enum for a button press event in pygobject 3?

2020-07-30 Thread Chris Green
I am going round and round in steadily increasing frustration trying to find the constants for button events in Pygobject/Gtk 3. I have the following imports:- import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk from gi.repository import Gdk The old GTK 2 co