diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2004-04-11 08:41:33 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2004-04-11 08:41:33 +0400 |
commit | 149fad4be63e1926f923890730fe0b578a7f3f92 (patch) | |
tree | 7eef6199bc7bd406fb10e2cc38272d304c27744b /source/blender/python/api2_2x/doc/Window.py | |
parent | ae9233a5b05ebfc925fd542afbdb3bb9220ed65c (diff) |
BPython: cleaning some bug tracker entries:
(excuse me for doing all in a single commit, but they are tiny
fixes and it's bpython, that dark corner ...)
#1025 - FileSelector SEGV on dynamic callback Category:
Can't reproduce with current cvs, I'd say recent changes to fix
another crash related to FileSelector in gui-less scripts solved this
one, too.
#1028 - Reserved button event number:
Menu choices generate two events, one extra related to the menu
itself, with value=4. Made bpython ignore this extra event.
#1068 - FileSelector No file extension support:
As Ton wrote there, Blender itself doesn't support this yet. But the
requester also wanted Window.File/ImageSelector to accept a pathname. Done. Also updated doc.
#959 - Segfault on background rendering:
This happened in bg mode (blender -b filename -a, for example) when
a script with the line "Blender.Redraw()" was linked to FRAMECHANGED events. As reported in the bug page, it was because curarea is NULL in bg mode. Made Redraw() check for this and not call functions that expected curarea in Redraw, like one to swap buffers.
#1072 - Blender.Redraw() Segfault:
Good catch : ). Scripts called from the scripts win that called
Blender.Redraw() or Blender.Window.Redraw() would crash Blender because of a dirty pointer in Spacescript->script. Fixed.
Diffstat (limited to 'source/blender/python/api2_2x/doc/Window.py')
-rw-r--r-- | source/blender/python/api2_2x/doc/Window.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/doc/Window.py b/source/blender/python/api2_2x/doc/Window.py index cac7c5d5e36..8c87f83b48c 100644 --- a/source/blender/python/api2_2x/doc/Window.py +++ b/source/blender/python/api2_2x/doc/Window.py @@ -8,6 +8,8 @@ Window This module provides access to B{Window} functions in Blender. +B{New}: file and image selectors accept a filename now. + Example: -------- @@ -83,7 +85,7 @@ def QRedrawAll (): Redraw all windows by queue event. """ -def FileSelector (callback, title = 'SELECT FILE'): +def FileSelector (callback, title = 'SELECT FILE', filename = '<default>'): """ Open the file selector window in Blender. After the user selects a filename, it is passed as parameter to the function callback given to FileSelector(). @@ -100,9 +102,11 @@ def FileSelector (callback, title = 'SELECT FILE'): @type title: string @param title: The string that appears in the button to confirm the selection and return from the file selection window. + @type filename: string + @param filename: A filename. This defaults to Blender.Get('filename'). """ -def ImageSelector (callback, title = 'SELECT IMAGE'): +def ImageSelector (callback, title = 'SELECT IMAGE', filename = '<default>'): """ Open the image selector window in Blender. After the user selects a filename, it is passed as parameter to the function callback given to ImageSelector(). @@ -119,6 +123,8 @@ def ImageSelector (callback, title = 'SELECT IMAGE'): @type title: string @param title: The string that appears in the button to confirm the selection and return from the image selection window. + @type filename: string + @param filename: A filename. This defaults to Blender.Get('filename'). """ def DrawProgressBar (done, text): |