Re: Re: FULLSCREEN and DOUBLEBUF

2018-06-09 Thread Paul St George
On 08/06/18 09:00, Paul St George wrote: Excellent. Now I know what to do in this instance and I understand the principle. I hesitantly tried this: screen = pygame.display.set_mode((720,480), pygame.FULLSCREEN | pygame.DOUBLEBUF) Hesitantly because I expected the *bitwise or

Re: Re: FULLSCREEN and DOUBLEBUF

2018-06-10 Thread Paul St George
To recap: this thread started with a question. How do I know whether DOUBLEBUF has been set with:     screen = pygame.display.set_mode((720,480), pygame.DOUBLEBUF | pygame.FULLSCREEN) On 09/06/2018 22:04, Mark Lawrence wrote: On 09/06/18 20:31, Paul St George wrote: print

Re: Re: Re: FULLSCREEN and DOUBLEBUF

2018-06-10 Thread Paul St George
Paul St George wrote: So... print pygame.display.get_surface() gives and print screen.get_flags() gives -2147483648 To recap: this thread started with a question. How do I know whether DOUBLEBUF has been set with: screen = pygame.display.set_mode((720,480), pygame.DOUBLEBUF

Re: Re: FULLSCREEN and DOUBLEBUF

2018-06-12 Thread Paul St George
Dennis Lee Bieber wrote: Both may be dependent upon the actual hardware graphics board and the drivers for said board. On 11/06/2018 01:47, Gregory Ewing wrote: My guess is that if your surface is not fullscreen or is not a hardware surface, then you're always drawing into an ofscreen bu

Re: Python list vs google group

2018-06-16 Thread Paul St George
On 15/06/2018 17:33, T Berger wrote: On Friday, June 15, 2018 at 12:14:30 PM UTC-4, Mark Lawrence wrote: On 15/06/18 16:47, T Berger wrote: On Friday, June 15, 2018 at 11:31:47 AM UTC-4, Alister wrote: it certainly seems to be the source of most SPAM as such some users of this list/newsgroup

Re: Feeding the trolls

2018-06-22 Thread Paul St George
On 21/06/2018 10:05, Anssi Saari wrote: D'Arcy Cain writes: One of these days I will have to figure out how to block replies to the trolls as well. Benefit of reading the mailing list via nntp (i.e. gmane): can easily score down follow-ups to annoying people in addition to their posts. Well,

Accessing the Python list

2018-06-25 Thread Paul St George
Understanding and having an interest in Python does not imply knowledge of Usenet, mailing lists, NNTP, gateways, gmane, bottom-posting, vanilla-flopping, /et al/. But, knowledge of these seems to be needed (or is at least useful) in order to fully benefit from the Python list. Would it be a

Accessing the Python list

2018-06-26 Thread Paul St George
From: Paul St George Understanding and having an interest in Python does not imply knowledge of Usenet, mailing lists, NNTP, gateways, gmane, bottom-posting, vanilla-flopping, /et al/. But, knowledge of these seems to be needed (or is at least useful) in order to fully benefit from the Python

Python in Blender. Writing information to a file.

2019-08-08 Thread Paul St George
I am using Python 3.5 within Blender. I want to collect values of the current settings and then write all the results to a file. I can see the settings and the values in the Python console by doing this for each of the settings | | |print(“Focal length:”,bpy.context.object.data.lens)| ---Foc

Re: Re: Python in Blender. Writing information to a file.

2019-08-08 Thread Paul St George
On 08/08/2019 10:18, Peter Otten wrote: Paul St George wrote: I am using Python 3.5 within Blender. I want to collect values of the current settings and then write all the results to a file. I can see the settings and the values in the Python console by doing this for each of the settings

Re: Python in Blender. Writing information to a file.

2019-08-09 Thread Paul St George
On 09/08/2019 04:09, Cameron Simpson wrote: On 08Aug2019 22:42, Paul St George wrote: On 08/08/2019 10:18, Peter Otten wrote: The print() function has a keyword-only file argument. So: with open(..., "w") as outstream:     print("Focal length:", bpy.context.object.data.l

String slices

2019-08-09 Thread Paul St George
In the code (below) I want a new line like this: Plane rotation X: 0.0 Plane rotation Y: 0.0 Plane rotation Z: 0.0 But not like this: Plane rotation X: 0.0 Plane rotation Y: 0.0 Plane rotation Z: 0.0 Is it possible? (I am using Python 3.5 within Blender.) # import os outstream = open(os.path

Re: Re: Python in Blender. Writing information to a file.

2019-08-09 Thread Paul St George
On 09/08/2019 15:59, Rhodri James wrote: On 09/08/2019 14:54, Paul St George wrote: On 09/08/2019 04:09, Cameron Simpson wrote: On 08Aug2019 22:42, Paul St George wrote: On 08/08/2019 10:18, Peter Otten wrote: The print() function has a keyword-only file argument. So: with open(..., &q

Re: Re: String slices

2019-08-09 Thread Paul St George
On 09/08/2019 16:29, Rhodri James wrote: On 09/08/2019 15:13, Paul St George wrote: In the code (below) I want a new line like this: Plane rotation X: 0.0 Plane rotation Y: 0.0 Plane rotation Z: 0.0 But not like this: Plane rotation X: 0.0 Plane rotation Y: 0.0 Plane rotation Z: 0.0 Is it

Re: Re: String slices

2019-08-10 Thread Paul St George
On 10/08/2019 17:35, Dennis Lee Bieber wrote: On Sat, 10 Aug 2019 11:45:43 +0200, "Peter J. Holzer" declaimed the following: There are of course many variants to all three methods. And then one can get downright nasty... X = 3.14 Y = 2.78 Z = 6.226E23 print("".join(["Plane rotation

absolute path to a file

2019-08-15 Thread Paul St George
ses image02.tif saved at //../images/image02.tif which is at //images/image02.tif But I want an absolute path such as: ---Plane uses image01.tif saved at /Users/Lion/Desktop/test8/image01.tif ---Plane uses image02.tif saved at /Users/Lion/Desktop/images/image02.tif If it is relevant, my files are on a M

Re: Re: absolute path to a file

2019-08-16 Thread Paul St George
lso accepts a Pathlike object. Thanks for this. I changed my code to use your suggestion which seems to be better for the situation where I used resolve() before. -- Paul St George http://www.paulstgeorge.com http://www.devices-of-wonder.com +44(0)7595 37 1302 -- https://mail.python.org/mailman/listinfo/python-list

Re: absolute path to a file

2019-08-16 Thread Paul St George
On 16/08/2019 18:37, Chris Angelico wrote: On Sat, Aug 17, 2019 at 2:27 AM Paul St George wrote: BUT does not work with | print('test2:',os.path.realpath(n.image.filepath))| This returns only |/image01.tif| Notes: Chris, I only mention the extra leading slash on my Mac in c

Re: absolute path to a file

2019-08-17 Thread Paul St George
On 17/08/2019 01:07, Gregory Ewing wrote: On Sat, Aug 17, 2019 at 2:27 AM Paul St George wrote: BUT does not work with | print('test2:',os.path.realpath(n.image.filepath))| This returns only |/image01.tif| What does n.image.filepath look like on its own? If it starts with a lea

Re: absolute path to a file

2019-08-17 Thread Paul St George
On 17/08/2019 15:37, Peter Otten wrote: Paul St George wrote: Can someone please tell me how to get the absolute path to a file? I have tried os.path.abspath. In the code below I have a problem in the final line (15). # |import bpy|| Is this blender? If so the "//" prefix sta

Re: absolute path to a file

2019-08-17 Thread Paul St George
On 17/08/2019 16:32, Dennis Lee Bieber wrote: On Sat, 17 Aug 2019 11:51:47 +0200, Paul St George declaimed the following: print('Track E from Track B:',os.path.realpath(n.image.filepath[1:])) ---Track E from Track B: /image01.tif Just for giggles, what happens if y

Re: absolute path to a file

2019-08-17 Thread Paul St George
On 17/08/2019 15:37, Peter Otten wrote: Paul St George wrote: Can someone please tell me how to get the absolute path to a file? I have tried os.path.abspath. In the code below I have a problem in the final line (15). # |import bpy|| Is this blender? If so the "//" prefix sta

Re: absolute path to a file

2019-08-18 Thread Paul St George
On 18/08/2019 02:03, Cameron Simpson wrote: On 17Aug2019 11:51, Paul St George wrote: print('Track D  from Track B:',os.path.realpath(n.image.filepath)) ---Track D  from Track B: /image01.tif print('Track E  from Track B:',os.path.realpath(n.image.filepath[1:])) ---T

Re: absolute path to a file

2019-08-18 Thread Paul St George
On 19/08/2019 01:31, Cameron Simpson wrote: Paul, I can see we must train you in the interleaved response style :-) On 18Aug2019 17:29, Paul St George wrote: On 18/08/2019 02:03, Cameron Simpson wrote: 1: Is image01.tif a real existing file when you ran this code? Yes. image01.tif is real

Re: absolute path to a file

2019-08-19 Thread Paul St George
On 19/08/2019 14:16, Cameron Simpson wrote: On 19Aug2019 08:52, Paul St George wrote: On 19/08/2019 01:31, Cameron Simpson wrote: On 18Aug2019 17:29, Paul St George wrote: On 18/08/2019 02:03, Cameron Simpson wrote: 1: Is image01.tif a real existing file when you ran this code? Yes. image01

Re: absolute path to a file

2019-08-20 Thread Paul St George
On 20/08/2019 11:43, Cameron Simpson wrote: Please remember to CC the list. Instead of 'Post a followup to this newsgroup' or 'To: python-list@python.org'? On 19Aug2019 22:06, Paul St George wrote: On 19/08/2019 14:16, Cameron Simpson wrote: [...] There's a

Re: absolute path to a file

2019-08-20 Thread Paul St George
On 21/08/2019 04:09, Grant Edwards wrote: On 2019-08-21, Richard Damon wrote: I think gmane feed the newsgroup comp.lang.python which feeds python-list@python.org. No, gmane is a gateway to python-list@python.org. -- Grant I use https://mail.python.org/pipermail/python-list/ to confirm tha

Newbie question about Python syntax

2019-08-22 Thread Paul St George
I have the Python API for the Map Value Node here: . All well and good. Now I just want to write a simple line of code such as: import bpy ... >>>print(bpy.types.CompositorNodeMapValue.max[0]) If this works, I will d

Re: Newbie question about Python syntax

2019-08-22 Thread Paul St George
On 22/08/2019 11:49, Cameron Simpson wrote: On 22Aug2019 09:34, Paul St George wrote: I have the Python API for the Map Value Node here: <https://docs.blender.org/api/current/bpy.types.CompositorNodeMapValue.html>. All well and good. Now I just want to write a simple line of code su

Re: Newbie question about Python syntax

2019-08-22 Thread Paul St George
On 22/08/2019 20:02, Terry Reedy wrote: On 8/22/2019 3:34 AM, Paul St George wrote: I have the Python API for the Map Value Node here: <https://docs.blender.org/api/current/bpy.types.CompositorNodeMapValue.html>. All well and good. Now I just want to write a simple line of code su

Re: Newbie question about Python syntax

2019-08-23 Thread Paul St George
On 22/08/2019 23:21, Kyle Stanley wrote: [snip] The tutorial that Terry was referring to was the one on docs.python.org, here's a couple of links for the sections he was referring to: Full section on classes: https://docs.python.org/3/tutorial/classes.html Section on instantiating objects from

Re: Newbie question about Python syntax

2019-08-24 Thread Paul St George
On 24/08/2019 01:23, Cameron Simpson wrote: On 23Aug2019 13:49, Paul St George wrote: Context: I am using Python to interrogate the value of some thing in Blender (just as someone else might want to use Python to look at an email in a Mail program or an image in Photoshop). Assumptions: So

Re: Newbie question about Python syntax

2019-08-26 Thread Paul St George
On 25/08/2019 02:39, Cameron Simpson wrote: On 24Aug2019 21:52, Paul St George wrote: [snip]> Aside from "map" being a poor name (it is also a builtin Python function), it seems that one creates one of these to control how some rendering process is done. The class refer

Re: Best editor?

2005-04-05 Thread Michael George Lerner
Aahz <[EMAIL PROTECTED]> wrote: > Use vim. 80% of the power of emacs at 20% of the learning curve. A system administrator said this to me about unix a long time ago, but it applies equally well to emacs: Emacs is a great place to live, but I'd hate to visit. -michael, an (x)emacs user -- htt

Re: Best editor?

2005-04-07 Thread Michael George Lerner
app, and that makes it look particularly tempting. I'm using BoaConstructor for the GUI stuff at the moment. It has a bit of a learning curve, but it looks nice so far. -michael > Michael George Lerner wrote: > >Aahz <[EMAIL PROTECTED]> wrote: > > > > > > >

RE: Using python for a CAD program

2007-05-29 Thread George, Harry G
l Message- > From: Dan Fabrizio [mailto:[EMAIL PROTECTED] > Sent: Saturday, May 26, 2007 3:46 PM > To: python-list@python.org; George, Harry G > Subject: Using python for a CAD program > > Hello, > > I saw your post from last year about using python for a EE > CAD pr

RE: Python does not play well with others

2007-01-24 Thread George, Harry G
other, using strictly Open Source Software, and enjoying the process. .NET/Mono and C# don't pass either the "lots" or the "enjoy" tests. > -Original Message- > From: egbert [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 24, 2007 10:05 AM > To: Ge

Trouble with subprocess.call(...) and zsh script (OSError: [Errno 8] Exec format error)

2007-11-11 Thread Michael George Lerner
Hi, (Python 2.5, OS X 10.4.10) I have a program called pdb2pqr on my system. It is installed so that "pdb2pqr" is in my path and looks like: #\!/bin/zsh -f /sw/share/pdb2pqr/pdb2pqr.py "$@" When I call it via this script: #!/usr/bin/env python import subprocess import tempfile args = ('/sw/bin/

Re: Trouble with subprocess.call(...) and zsh script (OSError: [Errno 8] Exec format error)

2007-11-13 Thread Michael George Lerner
On Nov 11, 3:25 pm, Rob Wolfe <[EMAIL PROTECTED]> wrote: Hi Rob, > Michael GeorgeLerner<[EMAIL PROTECTED]> writes: > > > Hi, > > > (Python 2.5, OS X 10.4.10) > > I have a program called pdb2pqr on my system. It is installed so that > > "pdb2pqr" is in my path and looks like: > > > #\!/bin/zsh -f

Re: Some error messages in Python are ugly

2008-05-11 Thread george . f . rice
On May 11, 3:10 am, [EMAIL PROTECTED] wrote: > This really looks ugly for an error message: > > [1]+ Stopped python > > Please explain to me the role of the '+' sign. And why is there such a > gap between 'Stopped' and 'python'? I suspect you were running the python command line i

Can I make these getters/setters?

2009-09-29 Thread Michael George Lerner
Hi, As part of my GUI, I have lots of fields that people can fill in, defined like this: self.selection = Pmw.EntryField(group.interior(), labelpos='w', label_text='Selection to use: ',

Re: *** FBI gets a warm welcome in Chicago for their EXCELLENTperformance - cheers to NEW CONS ***

2010-11-06 Thread F . George McDuffee
;I think some people might be surprised as to exactly _who_ gets "culled". >> >>Good Luck! >>Rich > >Indeed. So stock up, and watch your six. > >Gunner > == Here is an article/book you may like. http://www.spiegel.de/international/europe/0,1518,72667

Splitting text into lines

2016-12-13 Thread George Trojan - NOAA Federal
5KT P6SM BKN050 WS015/18040KT=', ''] but it looks cumbersome. I Python2.x I stripped '\r' before passing the string to split(): >>> open('FTAK31_PANC_131140.1481629265635').read().replace('\r', '') 'FTAK31 PANC 131140\nTAFABE\nTAF\nPABE 131140Z 1312/1412 07010KT P6SM SCT035 OVC060\n FM132100 10012G20KT P6SM BKN100 WS015/18035KT\n FM141000 09015G25KT P6SM BKN050 WS015/18040KT=\n' but Python 3.x replaces '\r\r\n' by '\n\n' on read(). Ideally I'd like to have code that handles both '\r\r\n' and '\n' as the split character. George -- https://mail.python.org/mailman/listinfo/python-list

Re: Splitting text into lines

2016-12-13 Thread George Trojan - NOAA Federal
ical bulletins. I do not want to eliminate "real" empty lines. I was hoping there is a way to prevent read() from making hidden changes to the file content. George -- https://mail.python.org/mailman/listinfo/python-list

Re: Splitting text into lines

2016-12-13 Thread George Trojan - NOAA Federal
ot;odd-newlines.txt", "r", newline="").read().replace("\r", * > "").splitlines() > ['alpha', 'beta', 'gamma', 'delta'] Thanks Peter. That's what I needed. George -- https://mail.python.org/mailman/listinfo/python-list

Python3.6 tkinter bug?

2017-01-31 Thread George Trojan - NOAA Federal
oticed that widget names have changed, which likely leads to the cause: > /usr/local/Python-3.5.1/bin/python3 foo.py .140182648425776.140182647743208 .140182648425776.140182647841848 .140182648424152.140182648282080 .140182648424152.140182648282136 > /usr/local/Python-3.6.0/bin/python3 foo.py .!frame.

Re: Python3.6 tkinter bug

2017-01-31 Thread George Trojan - NOAA Federal
On 2017-01-31 18:02, MRAB wrote: On 2017-01-31 22:34, Christian Gollwitzer wrote: > >* Am 31.01.17 um 20:18 schrieb George Trojan - NOAA Federal: > *>>* Selection of button 'A' also selects button 'C'. Same goes for 'B' and > 'D'. >

A tool to add diagrams to sphinx docs

2016-04-01 Thread George Trojan - NOAA Federal
. George -- https://mail.python.org/mailman/listinfo/python-list

functools puzzle

2016-04-06 Thread George Trojan - NOAA Federal
s partial(builtins.object) | partial(func, *args, **keywords) - new function with partial application | of the given arguments and keywords. ... The module functools has partial() defined as above, then overrides the definition by importing partial from _functools. That would explain the above behaviour. My question is why? George -- https://mail.python.org/mailman/listinfo/python-list

Re: functools puzzle

2016-04-06 Thread George Trojan - NOAA Federal
tions created by functools.partial, such that the documentation can be viewed not only by reading the code. Of course, as the last resort, I could create my own implementation (i.e. copy the pure Python code). George On Wed, Apr 6, 2016 at 6:39 PM, Michael Selik wrote: > > > On Apr 6, 20

win32gui bug: where to report it?

2005-02-15 Thread George van den Driessche
searching, some keywords are: win32all, win32gui, WNDCLASS, RegisterClass, CreateWindow, CreateWindowEx George -- http://mail.python.org/mailman/listinfo/python-list

(Mac-specific) AppScript bug

2004-12-22 Thread George van den Driessche
or. If you change the marked line (104) to read: name = self._pluralClassNames.get(code, self._singularClassNames.get(code, ''+code)) then the rest of the terminology seems to run fine, and you just end up with one bogus entry called '' in the app's attr

Re: Anyone still using Python 2.5?

2011-12-21 Thread George R. C. Silva
Em quarta-feira, 21 de dezembro de 2011 08:50:34, Steven D'Aprano escreveu: On Wed, 21 Dec 2011 07:15:46 +, Chris Withers wrote: Hi All, What's the general consensus on supporting Python 2.5 nowadays? Do people still have to use this in commercial environments or is everyone on 2.6+ nowad

distutils, 'scripts' and Windows

2005-05-27 Thread George van den Driessche
can register itself to run out of whatever location it happens to be in. Thanks, George -- http://mail.python.org/mailman/listinfo/python-list

Properties and Objects...

2007-09-22 Thread George V. Neville-Neil
pcs.Field("type", 16) pcs.Packet.__init__(self, [dst, src, type], bytes = bytes) self.description = inspect.getdoc(self) which was much more straightforward for someone to understand and to code. Since one of the project goals is to have the creation of new packets classes be as easy as possible I would like to be able to do something closer to the above. Best, George -- http://mail.python.org/mailman/listinfo/python-list

Re: Properties and Objects...

2007-09-24 Thread George V. Neville-Neil
At Sun, 23 Sep 2007 19:01:04 -0300, Gabriel Genellina wrote: > > En Sat, 22 Sep 2007 15:06:38 -0300, George V. Neville-Neil > <[EMAIL PROTECTED]> escribi�: > > > I have been trying to switch this over to using properties, which seem > > at first glance to be cl

Re: Proposal to extend PEP 257 (New Documentation String Spec)

2011-07-15 Thread George Rodrigues da Cunha Silva
gs on the programmer this will just go downhill. George -- George Rodrigues da Cunha Silva Desenvolvedor GIS http://geoprocessamento.net http://blog.geoprocessamento.net -- http://mail.python.org/mailman/listinfo/python-list

pythonw.exe error

2017-10-30 Thread George Kalamaras via Python-list
When I am running IDLE return to me Missing python36.dll error Στάλθηκε από την Αλληλογραφία για Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Re: Detect naming typos (AttributeError) in function names

2023-11-06 Thread George Fischhof via Python-list
ecause of typo), and if you compile the code: https://docs.python.org/3/library/py_compile.html it will generate syntax error if non-existent function is called. linters can perhaps warn you (never had typos, because I use PyCharm) need to check the linters' doc BR, George -- https://mail.python.org/mailman/listinfo/python-list

Re: How to go about describing my software with a component diagram?

2024-12-24 Thread George Fischhof via Python-list
t;> https://mail.python.org/mailman/listinfo/python-list > >> > > > -- > https://mail.python.org/mailman/listinfo/python-list Hi, also there are some tools which can generate class hierarchy diagram from code. for example here is a post https://stackoverflow.com/questions/77421030/how-to-generate-the-uml-diagram-from-the-python-code pyreverse is now part of pylint if I remember well. BR George > > -- https://mail.python.org/mailman/listinfo/python-list

<    11   12   13   14   15   16