197 |
if self.__floatPosition is not None: self.SetPosition(self.__floatPosition) |
if self.__floatPosition is not None: self.SetPosition(self.__floatPosition) |
198 |
if self.__floatSize is not None: self.SetSize(self.__floatSize) |
if self.__floatSize is not None: self.SetSize(self.__floatSize) |
199 |
|
|
200 |
|
self.__dockPanel.SetSize(self.__topWindow.GetClientSize()) |
201 |
|
|
202 |
self.issue(DOCKABLE_UNDOCKED, self.__id, self) |
self.issue(DOCKABLE_UNDOCKED, self.__id, self) |
203 |
|
|
204 |
def IsDocked(self): |
def IsDocked(self): |
254 |
# |
# |
255 |
|
|
256 |
def _OnButtonClose(self, event): |
def _OnButtonClose(self, event): |
257 |
self.Close() |
#self.Close() |
258 |
|
self.Destroy() |
259 |
|
|
260 |
def _OnClose(self, force = False): |
def _OnClose(self, force = False): |
261 |
self.Destroy() |
self.Destroy() |
319 |
# our orientation |
# our orientation |
320 |
# |
# |
321 |
text = wxStaticText(self.__dockPanel, -1, self.GetTitle(), |
text = wxStaticText(self.__dockPanel, -1, self.GetTitle(), |
322 |
style = wxSIMPLE_BORDER | wxALIGN_CENTRE) |
style = wxALIGN_CENTRE) |
323 |
|
|
324 |
# |
# |
325 |
# Perhaps using wxToggleButton would be better, but it's only |
# Perhaps using wxToggleButton would be better, but it's only |
449 |
#print dockPanel |
#print dockPanel |
450 |
panel = dockPanel.FindWindowById(PANEL_ID) |
panel = dockPanel.FindWindowById(PANEL_ID) |
451 |
#print panel |
#print panel |
452 |
assert(isinstance(panel, DockPanel)) |
assert isinstance(panel, DockPanel) |
453 |
win = panel.GetDockParent() |
win = panel.GetDockParent() |
454 |
#print win |
#print win |
455 |
assert(isinstance(win, DockableWindow)) |
assert isinstance(win, DockableWindow) |
456 |
|
|
457 |
assert(win.IsDocked()) |
assert win.IsDocked() |
458 |
|
|
459 |
rect = event.GetDragRect() |
rect = event.GetDragRect() |
460 |
|
|