Processing.py-Bugs icon indicating copy to clipboard operation
Processing.py-Bugs copied to clipboard

frame.setTitle(string) didn't work anymore

Open kantel opened this issue 8 years ago • 7 comments

I recently updated to Processing 3.3.1 and Python Mode Build 3022. And when I try frame.setTitle(string) I now get the Error Message:

AttributeError: 'NoneType' object has no attribute 'setTitle'

In the previous Version frame.setTitle(string)was working,

kantel avatar Apr 25 '17 13:04 kantel

Thank you!

jdf avatar Apr 25 '17 14:04 jdf

I guess this might be related...

surface.setTitle("hello"); surface.setResizable(true);

both work on Java Mode but not on Python mode

villares avatar Jun 03 '18 02:06 villares

Neither frame nor surface are described in the Processing reference. Am I missing something?

jdf avatar Jun 05 '18 02:06 jdf

I first found out about it at https://github.com/processing/processing/wiki/Window-Size-and-Full-Screen I think.

And then there is this example: https://github.com/processing/processing-docs/tree/master/content/examples/Demos/Tests/MultipleWindows

It seems very undocumented :(

villares avatar Jun 05 '18 12:06 villares

As far as I remember I found it during a search »window title in Processing« here, here, and here. I think it's more a Java thing than a Processing function.

kantel avatar Jun 05 '18 14:06 kantel

Just curious, any clue why it worked before (even in Python Processing)?

fireattack avatar Jun 05 '18 19:06 fireattack

Hi @kantel, @fireattack and @jdf,

I have learned from @GoToLoop at https://forum.processing.org/two/discussion/16721/surface-doesn-t-work-in-python-mode that:

this.surface.setTitle("hello") works perfectly on Python Mode. Cheers! :)

PS: this.surface.setResizable(True) # crashes if you drag it bigger...

villares avatar Nov 19 '18 22:11 villares