Processing.py-Bugs
Processing.py-Bugs copied to clipboard
frame.setTitle(string) didn't work anymore
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,
Thank you!
I guess this might be related...
surface.setTitle("hello");
surface.setResizable(true);
both work on Java Mode but not on Python mode
Neither frame nor surface are described in the Processing reference. Am I missing something?
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 :(
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.
Just curious, any clue why it worked before (even in Python Processing)?
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...