3doutlaw opened this issue on Jun 26, 2013 ยท 11 posts
PhilC posted Thu, 27 June 2013 at 1:58 AM
userDir = os.path.join(poser.PrefsLocation(),"My Script") iniFile = os.path.join(userDir,"MyScript.ini") scene = poser.Scene() man = poser.WxAuiManager() root = man.GetManagedWindow()
class MyClass(wx.ScrolledWindow):
def __init__(self, parent):
etc
def MyFunction(self):
etc
win = MyClass(root)
def readINIFile(filepath):
# dock value of one or zero read from ini file
def main():
readINIFile(iniFile)
win.MyFunction()
man.AddPane(win, wx.aui.AuiPaneInfo().
Caption("Create Prop").CaptionVisible(True).GripperTop(True).
Floatable(True).Resizable(True).DestroyOnClose(True).Dockable(dock).
FloatingSize(wx.Size(330, 895)).CloseButton(True).MaxSize(wx.Size(330, 895)).
MinSize(wx.Size(330, 250)))
info = man.GetPane(win)
info.Show()
man.Update()
main()
I've used the format above to create a dockable window. The option to dock or not is set by the value read from the ini file on start up. Trouble is that once I docked it, it would always start up docked. I could never again get it to start up un-docked. I've looked for a possible setting in the Poser.ini file but not found one. Not exactly an answer to your problem but may shed some light on it. How are you creating the dockable window for your script?