官术网_书友最值得收藏!

Limitations of the command option

The command option that is available with the Button widget and a few other widgets is a function that can make the programming of a click-of-a-button event easy. Many other widgets do not provide an equivalent command binding option.

By default, the command button binds to the left-click and the spacebar. It does not bind to the Return key. Therefore, if you bind a button by using the command function, it will react to the space bar and not the Return key. This is counter-intuitive for many users. What's worse is that you cannot change the binding of the command function easily. The moral is that command binding, though a very handy tool, is not flexible enough when it comes to deciding your own bindings.

This brings us to the next method for handling events.

主站蜘蛛池模板: 洪江市| 诸暨市| 通道| 卫辉市| 韶山市| 嘉兴市| 盐池县| 安多县| 井冈山市| 友谊县| 洛川县| 镇平县| 阜新| 石渠县| 桃源县| 张北县| 汉阴县| 龙海市| 黔西| 铜鼓县| 堆龙德庆县| 灵台县| 东源县| 孝义市| 广东省| 上杭县| 正阳县| 渭南市| 海伦市| 梁山县| 济南市| 苍南县| 大英县| 旬邑县| 乌兰县| 遵义市| 铜梁县| 涟源市| 泉州市| 海盐县| 六盘水市|