Comments (3)
That is because libui uses "setChild" in its API, and not "addChild". See for example uiGroupSetChild and uiWindowSetChild.
from pylibui.
I agree with aoloe.
In ruby-gtk I tend to just call .add() even on the main (application) window.
IMO this is much simpler to understand than what libui chose to use.
In ruby this is no problem - I ad-hoc modified Fiddle::Pointer so now I can
have:
widget1.add(widget2)
in general for every libui-widget. (It's actually just a scary, raw Fiddle::Pointer
and I already had lots of fon with segfaults, but oddly enough it still works.
Using a consistent API is so much easier for my brain, so I don't have to
care about the addChild or setChild situation in the upstream C++ API.
I just work on the ruby "API" via a DSL-wrapper.)
from pylibui.
This library is just a thin wrapper for libui. Therefore it will use the same function names.
from pylibui.
Related Issues (20)
- Implement separator HOT 44
- Implement editable combobox
- Implement radio buttons
- Implement date time picker HOT 2
- Removal of some window functions in clibui HOT 2
- Update ui.h
- Create a Control Gallery HOT 7
- Start writing documentation HOT 2
- Undefined symbol HOT 2
- Installation issues HOT 1
- Implement form HOT 1
- controls folder not getting copied when installing via setup.py HOT 2
- Run from iPython/Jupyter Notebook
- Is pylibui dead ? HOT 3
- Initial Update
- Could you please provide Python distribution on PyPi service HOT 1
- Issue building: AttributeError: /usr/lib/x86_64-linux-gnu/libui.so.1: undefined symbol: uiInit HOT 1
- `App.stop` does not exit app HOT 1
- Build instructions outdated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pylibui.