[python-win32] Pythonwin MDI Child Size

2011-08-31 Thread Manfred Schulte-Oversohl
I tried to fill a MDI child at start up or on open to the full size of the enclosing frame but self.ShowWindow(win32con.SW_SHOWMAXIMIZED) or self.SetWindowPlacement(placement) did not work (self is the MDI Child PyCWnd). Did I miss something or is it impossible? Many thanks for

[python-win32] checking file permission on network share

2011-08-31 Thread Steffen Frömer
Hello, i try to check, if a file on network-share is read only. I tried different ways. filename = r'//server/share/filename.txt' 1: import win32api, win32con fileAtt = win32api.GetFileAttributes(filename) if (fileAtt & win32con.FILE_ATTRIBUTE_READONLY): print("READONLY") 2: import os,