Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify demos #10

Closed
jroimartin opened this issue Jan 23, 2014 · 4 comments
Closed

Simplify demos #10

jroimartin opened this issue Jan 23, 2014 · 4 comments
Assignees
Milestone

Comments

@jroimartin
Copy link
Owner

For example, demo2.go has been used for testing purposes and its source code is not clear enough.

@ghost ghost assigned jroimartin Jan 23, 2014
@cocodrino
Copy link

Hi..I agree with this issue...I'll appreciate if you can provide some useful samples like a menu, would be could see how you build a menu which you can select the item with the keyboard...or even better, simplify how build basic vertical/horizontal menu...inputs box and things more related to UI

thank so much..the lib seems pretty cool although I need check more the code for understand better how it works....

@jroimartin
Copy link
Owner Author

@cocodrino sure! I'll include more real-world examples like the ones you mentioned.

@jroimartin jroimartin reopened this Oct 18, 2016
@jroimartin jroimartin modified the milestones: gocui v0.4, gocui v0.2 Oct 18, 2016
@jroimartin
Copy link
Owner Author

jroimartin commented Oct 24, 2016

I've been working on refactoring gocui to allow building "widgets" in an easy way. The result of this refactoring is the new Manager interface.

Based on this feature, I wrote a simple example with some widgets (labels, buttons, status bar) that can be used as a guide to build more complex ones:

_examples/widgets.go

screen shot 2016-10-24 at 22 36 33

Of course the implemented widgets are not "complete", but should be enough to get the idea :)

@dareg
Copy link

dareg commented Oct 25, 2016

Thanks!

@jroimartin jroimartin added wip and removed wip labels Oct 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants