mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-26 00:46:38 +00:00
libgui/GuiCanvasInterface.py:canvasExportAsPng(): correctly pass self.parentFrame to wx.FileDialog().
libgui/GuiCanvasInterface.py: minor cleanup. assets/text/TODO: updated.
This commit is contained in:
parent
752af56774
commit
da8384f3bb
@ -1,11 +1,11 @@
|
|||||||
1) General {cleanup,refactor}
|
1) General {cleanup,refactor}
|
||||||
2) Incremental auto{load,save} & {backup,restore}
|
2) Incremental auto{load,save} & {backup,restore}
|
||||||
3) GUI: a) scrollbar b) switch from wxPython to GTK
|
3) Open and toggle a reference image in the background
|
||||||
4) Open and toggle a reference image in the background
|
4) Client-Server or Peer-to-Peer realtime collaboration
|
||||||
5) Client-Server or Peer-to-Peer realtime collaboration
|
5) Arbitrary {format,palette}s ({4,8} bit ANSI/mIRC, etc.)
|
||||||
6) Arbitrary {format,palette}s ({4,8} bit ANSI/mIRC, etc.)
|
6) Hotkey & graphical interfaces to {composed,parametrised} tools
|
||||||
7) Hotkey & graphical interfaces to {composed,parametrised} tools
|
7) Layer, layout (e.g. for comics, zines, etc.) & {re,un}do canvas traits
|
||||||
8) Layer, layout (e.g. for comics, zines, etc.) & {re,un}do canvas traits
|
8) GUI: a) scrollbar b) switch from wxPython to GTK c) revisit About dialogue
|
||||||
9) {Insert,{ex,im}port}ing from/to ANSI, Blender, GIF, HTML, mIRC, printer, SAUCE, WEBM, etc. {clipboard,file}
|
9) {Insert,{ex,im}port}ing from/to ANSI, Blender, GIF, HTML, mIRC, printer, SAUCE, WEBM, etc. {clipboard,file}
|
||||||
10) Asset management (e.g. kade, lion, etc.) & traits w/ simple linking & synchronised editing respecting layers
|
10) Asset management (e.g. kade, lion, etc.) & traits w/ simple linking & synchronised editing respecting layers
|
||||||
11) Sprites & scripted (Python?) animation on the basis of asset traits and {composable,parametrised} patterns (metric flow, particle system, rigging, ...)
|
11) Sprites & scripted (Python?) animation on the basis of asset traits and {composable,parametrised} patterns (metric flow, particle system, rigging, ...)
|
||||||
|
@ -117,16 +117,14 @@ class GuiCanvasInterface():
|
|||||||
# }}}
|
# }}}
|
||||||
# {{{ canvasExportAsPng(self, event): XXX
|
# {{{ canvasExportAsPng(self, event): XXX
|
||||||
def canvasExportAsPng(self, event):
|
def canvasExportAsPng(self, event):
|
||||||
with wx.FileDialog(self, "Save As...", os.getcwd(), "", \
|
with wx.FileDialog(self.parentFrame, "Save As...", os.getcwd(), "", "*.png", wx.FD_SAVE|wx.FD_OVERWRITE_PROMPT) as dialog:
|
||||||
"*.png", wx.FD_SAVE|wx.FD_OVERWRITE_PROMPT) as dialog:
|
|
||||||
if dialog.ShowModal() == wx.ID_CANCEL:
|
if dialog.ShowModal() == wx.ID_CANCEL:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
outPathName = dialog.GetPath()
|
outPathName = dialog.GetPath()
|
||||||
self.parentCanvas.SetCursor(wx.Cursor(wx.CURSOR_WAIT))
|
self.parentCanvas.SetCursor(wx.Cursor(wx.CURSOR_WAIT))
|
||||||
self.parentCanvas.canvasExportStore.exportBitmapToPngFile( \
|
self.parentCanvas.canvasExportStore.exportBitmapToPngFile( \
|
||||||
self.parentCanvas.canvasBackend.canvasBitmap, outPathName, \
|
self.parentCanvas.canvasBackend.canvasBitmap, outPathName, wx.BITMAP_TYPE_PNG)
|
||||||
wx.BITMAP_TYPE_PNG)
|
|
||||||
self.parentCanvas.SetCursor(wx.Cursor(wx.NullCursor))
|
self.parentCanvas.SetCursor(wx.Cursor(wx.NullCursor))
|
||||||
return True
|
return True
|
||||||
# }}}
|
# }}}
|
||||||
|
Loading…
Reference in New Issue
Block a user