mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-25 08:36:38 +00:00
Fix canvas windows size regarding scrollbars.
assets/text/TODO: updated. libroar/RoarClient.py: I FUCKING _HATE_ WXPYTHON
This commit is contained in:
parent
a2295d1cfc
commit
c7dd80327d
@ -16,16 +16,15 @@
|
|||||||
d) replace resize buttons w/ {-,edit box,+} buttons & lock button re: ratio (ty lol3)
|
d) replace resize buttons w/ {-,edit box,+} buttons & lock button re: ratio (ty lol3)
|
||||||
|
|
||||||
Release roadmap:
|
Release roadmap:
|
||||||
1) BUG: a) start w/ spoke-vxplion.txt b) scroll down c) fix w/ canvas resize
|
1) BUG: fix & finish Arabic/RTL text tool support
|
||||||
2) BUG: fix & finish Arabic/RTL text tool support
|
2) BUG: a) text tool b) paste text c) undo
|
||||||
3) BUG: a) text tool b) paste text c) undo
|
3) BUG: a) tile once b) tile twice
|
||||||
4) BUG: a) tile once b) tile twice
|
4) {copy,cut,delete,insert from,paste}, edit asset in new canvas, import from {canvas,object}
|
||||||
5) {copy,cut,delete,insert from,paste}, edit asset in new canvas, import from {canvas,object}
|
5) add hotkeys.txt mIRC art canvas to help menu
|
||||||
6) add hotkeys.txt mIRC art canvas to help menu
|
6) {load,store} LRU {open,save} directory
|
||||||
7) {load,store} LRU {open,save} directory
|
7) operators: crop, scale, shift, slice
|
||||||
8) operators: crop, scale, shift, slice
|
8) auto{load,save} & {backup,restore}
|
||||||
9) auto{load,save} & {backup,restore}
|
9) tools: unicode block elements
|
||||||
10) tools: unicode block elements
|
10) floating/dockable toolbar
|
||||||
11) floating/dockable toolbar
|
|
||||||
|
|
||||||
vim:ff=dos tw=0
|
vim:ff=dos tw=0
|
||||||
|
@ -31,6 +31,9 @@ class RoarClient(GuiFrame):
|
|||||||
def onMouseWheel(self, event):
|
def onMouseWheel(self, event):
|
||||||
self.canvasPanel.GetEventHandler().ProcessEvent(event)
|
self.canvasPanel.GetEventHandler().ProcessEvent(event)
|
||||||
|
|
||||||
|
def onSize(self, event):
|
||||||
|
self.canvasPanel.SetMinSize(self.GetSize()); self.canvasPanel.SetSize(wx.DefaultCoord, wx.DefaultCoord, *self.GetSize()); event.Skip();
|
||||||
|
|
||||||
#
|
#
|
||||||
# __init__(self, parent, defaultCanvasPos=(0, 75), defaultCanvasSize=(100, 30), defaultCellSize=(7, 14), size=(840, 630), title=""): initialisation method
|
# __init__(self, parent, defaultCanvasPos=(0, 75), defaultCanvasSize=(100, 30), defaultCellSize=(7, 14), size=(840, 630), title=""): initialisation method
|
||||||
def __init__(self, parent, defaultCanvasPos=(0, 75), defaultCanvasSize=(100, 30), defaultCellSize=(7, 14), size=(840, 630), title=""):
|
def __init__(self, parent, defaultCanvasPos=(0, 75), defaultCanvasSize=(100, 30), defaultCellSize=(7, 14), size=(840, 630), title=""):
|
||||||
@ -58,5 +61,6 @@ class RoarClient(GuiFrame):
|
|||||||
self.canvasPanel.commands.canvasClearRecent.attrDict["id"] = wx.NewId()
|
self.canvasPanel.commands.canvasClearRecent.attrDict["id"] = wx.NewId()
|
||||||
menuItemWindow = self.canvasPanel.commands.canvasOpenRecent.attrDict["menu"].Append(self.canvasPanel.commands.canvasClearRecent.attrDict["id"], self.canvasPanel.commands.canvasClearRecent.attrDict["label"], self.canvasPanel.commands.canvasClearRecent.attrDict["caption"])
|
menuItemWindow = self.canvasPanel.commands.canvasOpenRecent.attrDict["menu"].Append(self.canvasPanel.commands.canvasClearRecent.attrDict["id"], self.canvasPanel.commands.canvasClearRecent.attrDict["label"], self.canvasPanel.commands.canvasClearRecent.attrDict["caption"])
|
||||||
self.canvasPanel.commands.canvasOpenRecent.attrDict["menu"].Bind(wx.EVT_MENU, self.canvasPanel.commands.canvasClearRecent, menuItemWindow)
|
self.canvasPanel.commands.canvasOpenRecent.attrDict["menu"].Bind(wx.EVT_MENU, self.canvasPanel.commands.canvasClearRecent, menuItemWindow)
|
||||||
|
self.Bind(wx.EVT_SIZE, self.onSize)
|
||||||
|
|
||||||
# vim:expandtab foldmethod=marker sw=4 ts=4 tw=120
|
# vim:expandtab foldmethod=marker sw=4 ts=4 tw=120
|
||||||
|
Loading…
Reference in New Issue
Block a user