fractalide / fractalide-oz

Proof of concept
GNU Affero General Public License v3.0
12 stars 3 forks source link

QTk card must accept card as widget #57

Open dmichiels opened 10 years ago

dmichiels commented 10 years ago

For the moment, the QTk that contains other widget (lr, td, grid, placeholder, ...) accept all QTk widget : button, entry, ... It should be great that these cards accept other cards for the creation.

create(card:Card options:opt(bg:white init:"inital text"))

The Card variable is an entry point. The following operations will occur when this kind of widget are receive : 1) The out port of Card will be bind to the in port of the receiver 2) the IP create(bg:white init:"initial text") will be send in the 'in' port of Card

This will allow more dynamic use of card, and drop off the trick "OutPortWrapper" in createLink, createComp, ...