Re: Help with spanning widgets over multiple rows
Dietmar Schwertberger <[email protected]>
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <[email protected]> |
On 03.01.2019 02:47, M A wrote: > On Windows, wxGlade does also register itself as handler for .wxg files. Not sure how to implement such for Mac Os. > I think this is how you do it: > > defaults write com.apple.LaunchServices LSHandlers -array-add \ > "<dict><key>LSHandlerContentTag</key> > <string>PUT_FILE_EXTENSION_HERE_WITHOUT_PERIOD</string><key>LSHandlerContentTagClass</key> > <string>public.filename-extension</string><key>LSHandlerRoleAll</key> > <string>org.category.program</string></dict>" > > This may be done thru os.system(). Found this information here: > https://stackoverflow.com/questions/2969987/macosx-file-extension-associate-with-application-programmatically Maybe you want to implement this and contribute for release 1.0? The implementation should check whether it's registered already and register only if the Python or wxGlade path have changed. The Windows implementation is called this way in wxglade.py: if sys.platform=="win32": # register ".wxg" extension try: import msw msw.register_extensions(["wxg"], "wxGlade") except ImportError: pass > I just checked out the latest git version of wxGlade. Dragging a button from one cell to another does not work in the Design window. I also tried with a StaticText and RadioButton. Thanks. I just checked and it was only working with loaded designs, not with frames or dialogs that were just added. This is fixed now in the repository. With Python 2.7 and wxPython Classic, I'm seeing crashes on Mac OS, though. I probably need to deactivate it for this combination as it looks more like a wxPython or wxWidgets problem. > I also suggest add the feature of being able to span multiple rows and > columns from the Design window. When a GridBagSizer is being used, the > user should be able to grab one of the resize handles (blue box) and > drag to overlap other cells. Well, I will probably not implement this, as I don't consider GridBagSizers that important. (In almost 20 years of wxPython usage, I never needed one...). I would be willing to accept code contributions for this for release 1.0, though. Probably the bottom right handle should have a different colour to indicate that it has some function. I'm currently working on 1.0, which will see a major re > I forgot to add that using slots for the WrapSizer and BoxSizer seems unnatural to me. I would make it so that the user can add as many controls as needed to these Sizers. I will modify 1.0 to accept controls being placed on sizers or widgets without slots. Currently this behaviour is already available when dragging an element, but not when placing from the palette. I would not want to drop slots completely. Especially when reorganizing things, I like to see them. Regards, Dietmar _______________________________________________ wxGlade-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wxglade-general