[Gambas-user] ncurses fail. says Screen incorrectly overridden

Bruce Steers bsteers4 at gmail.com
Wed Dec 9 17:51:21 CET 2020


Them's the components.
i just made a test app using gb.gui (attached)
It's got no code, no other gui components added just a form and 2 buttons.

Sounds like are you saying gb.ncurses cannot be used if your app has a GUI?
But i'm assuming i've misunderstood.

On Wed, 9 Dec 2020 at 16:40, Tobias Boege <taboege at gmail.com> wrote:

> On Wed, 09 Dec 2020, Bruce Steers wrote:
> > If adding gb.ncurses component to any app when i try to run it says..
> >
> > Screen height is incorrectly overridden in class Screen.
> >
> The Screen class in gb.ncurses is static, as there is only one terminal
> that a gb.ncurses program can use[*], and therefore all of its properties
> are static as well. The project that you link gb.ncurses to seems to
> have its own Screen class with a conflicting definition of the Height
> property.
> My guess: you're trying to mix a gb.gui-style component (which brings
> a non-static Screen class) and gb.ncurses (with a static Screen class).
> If yes, then do you really need the two user interfaces in a single
> project?
> Without namespaces in Gambas, conflicts like these are bound to occur.
> From an ncurses point of view, "Screen" was the right name to choose
> for that class, but it has a very different meaning than "Screen" in
> the GUI components.
> The only thing you can do is not to mix the two classes of components.
> Regards,
> Tobias
> [*] Not true for ncurses, but for gb.ncurses because it is not fully
> developed to ncurses's capabilities.
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201209/11e10f53/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.zip
Type: application/zip
Size: 13957 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201209/11e10f53/attachment-0001.zip>

More information about the User mailing list