Re: wxGlade GUI improvement
"Brendan Simon (eTRIX)" <[email protected]>
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Organization | eTRIX pty ltd |
| Message-ID | <[email protected]> |
Hi Dietmar,
Have you looked at gnome/gtk glade for inspiration?
https://www.google.com/search?client=firefox-b-ab&biw=1440&bih=803&tbm=isch&sa=1&ei=AtwLW-HpMsen8QWp4prABQ&q=glade+gtk&oq=glade+gtk&gs_l=img.3..0i67k1l2j0j0i67k1l2j0j0i67k1j0j0i67k1j0.2689.4057.0.4256.6.5.1.0.0.0.217.426.2-2.2.0....0...1c.1.64.img..3.3.431....0.Dg9KqJY66Bg
There's also this which shows a wx gui builder in CodeBlocks.
https://www.codeproject.com/Articles/814411/Using-some-resources-timers-and-COM-ports-in-wxWid
http://wiki.codeblocks.org/index.php/WxSmith_tutorial:_Hello_world
I presume you've had a look at wxFormBuilder too.
https://www.google.com/search?q=wxformbuilder&client=firefox-b-ab&source=lnms&tbm=isch&sa=X&ved=0ahUKEwiu9reXm6jbAhVKk5QKHdKuAyIQ_AUICygC&biw=1440&bih=803
Brendan.
------------------------------------------------------------------------
On 26/5/18 4:31 am, Dietmar Schwertberger wrote:
> On 5/25/2018 3:29 PM, Brendan Simon (eTRIX) wrote:
>> I don't mind the new layout :)
>
> Thanks for the feedback. I'm not really familiar with Mac OS and don't
> have an Apple keyboard, so I'm just testing from time to time with the
> mouse.
>
>
>> I do like the fact that I can cycle between the three windows (main,
>> design, preview) using the standard apple-tilde key combo, and that
>> all three windows have the same standard window frame styles.
>
> I'm not 100% sure whether I should keep it this way. I find the double
> title bar above and beyond the toolbar annoying.
> Maybe you want to try with wx.FRAME_TOOL_WINDOW and provide feedback
> whether this works with e.g. Mission Control:
>
> main.py / wxGladeFrame.__init__:
>
> style=wx.DEFAULT_FRAME_STYLE | wx.FRAME_TOOL_WINDOW
>
>
>> The sash handles (or whatever they're called) sort of work, but not
>> well (on Mac at least). When I drag the window isn't updated until I
>> release the button, so I can't see the what it will look like until I
>> release the drag operation.
>
> I will add wx.SP_LIVE_UPDATE for all platforms. That seems to work well.
>
>> The sash handle also looks non-mac like to me. It looks wide and and
>> oldish (to me). But that's a minor thing at this stage.
> On Windows 10 the default splitter style results in an invisible sash
> that's a few pixels wide. It's OK, but you need to know that there's a
> splitter.
> I agree that on Mac OS it looks clumsy. I have just tried some styles,
> but I could not find a good one.
> The wx.SP_THIN_SASH style is too thin, I think. It seems to be one
> pixel only.
>
> Maybe you want to experiment a bit and provide feedback.
> The relevant code is also in wxGladeFrame.__init__:
>
> style = wx.SP_3D # default, identical to wx.SP_3DBORDER |
> wx.SP_3DSASH
> # style = wx.SP_LIVE_UPDATE | wx.SP_NOBORDER |
> wx.SP_THIN_SASH # alternative
> self.splitter1 = wx.SplitterWindow(self, style=style)
> self.splitter2 = wx.SplitterWindow(self.splitter1, style=style)
> self.palette = wxGladePalettePanel(self.splitter2)
>
>
>> The widget panel really needs to have scroll bars if the widgets
>> don't fit (i.e. when the sash handles are moved to make the widget
>> panel smaller).
>
> Initially I planned to use a WrapSizer, but that does not work well
> inside a splitter.
> I need to find some time for the palette panel and probably need to
> implement a 100% custom panel with automatic placement and
> re-formatting of text and icons. That would also allow to combine some
> rows. E.g. "Containers" and "Sizers" could be combined if the height
> is reduced.
>
> Anyway, I'm also planning to add a keyboard shortcut and a context
> menu entry like "Add widget here...". I.e. when you select this on a
> frame or an empty slot you get a pop-up or context menu to add a sizer
> or widget. The advantage of this would be that it can be context
> sensitive and only display the widgets that can actually be added.
> Also it would be suitable for people using screenreaders and/or
> braille displays.
>
>
>> I feel the "Refresh Preview F5" menu should go in the "Window" menu,
>> along with other similar items.
> Sure. Probably I will rename "Windows" to "View" or add a toplevel
> menu entry. Once all new menu items are implemented, I need to
> re-arrange things.
>
>
> Regards,
>
> Dietmar
>
>
--
------------------------------------------------------------------------
*eTRIX Services*
PO Box 497, Inverloch, VIC 3996, AUSTRALIA.
(m) 0417-380-984
------------------------------------------------------------------------
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
wxGlade-general mailing list
wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/wxglade-general