اختلافات

عرض الاختلافات بين النسخة المختارة و النسخة الحالية من الصفحة.

docs:wxpython [2009/12/06 08:05]
ayoussef
docs:wxpython [2009/12/09 05:29] (حالي)
ayoussef
سطر 2878: سطر 2878:
-==== Event propagation ====+==== انتشار الحدث ====
 +هناك نوعين من الأحداث، احداث اساسية او اولية واحداث الأوامر وبيختلفا فى عملية الإنتشار
 +*انتشار الحدث* انتقال الأحداث من الأبناء للأباء ثم للأجداد.. الخ
 +الأحداث الأوليه لاتنتشر بعكس احداث الأوامر.
 +على سبيل المثال الحدث wx.CloseEvent هو حدث اولى لاينتشر.. ليس منطقيا ان ينتشر هذا الأحدث للأباء اليس كذلك ؟
- +افتراضيا، عند معالجة حدث ما فإنه يتوقف عن الإنتشار، ولإكمال عملية الإنتشار يجب استدعاء الطريقة Skip
- +
-There are two types of events. Basic events and command events. They differ in propagation. Event propagation is travelling of events from child widgets to parent widgets and grand parent widgets etc. Basic events do not propagate. Command events do propagate. For example //wx.CloseEvent// is a basic event. It does not make sense for this event to propagate to parent widgets.  +
- +
- +
- +
- +
- +
- +
- +
-By default, the event that is catched in a event handler stops propagating. To continue propagation, we must call the //Skip()// method. +
- +
سطر 2951: سطر 2943:
 +فى مثالنا لدينا زر على بانل موضوعة على frame
- +قمنا بتعريف معالج لكل الودجات
- +
-In our example, we have a button on a panel. The panel is placed in a frame widget. We define a handler for all widgets.  +
سطر 2965: سطر 2955:
</code> </code>
 +لتفهم هذا، عندما نضغط على الزر فإن الحدث ينتقل من الزر الى البانل ثم الى ال frame
- +جرب حذف بعض استدعاءات Skip ولاحظ ماذا سيحدث
- +
-We get this, when we click on the button. The event travels from the button to panel and to frame.  +
- +
- +
- +
- +
- +
- +
- +
- +
-Try to omit some Skip() methods and see, what hapens. +
- +
docs/wxpython.txt · آخر تعديل: 2009/12/09 05:29 بواسطة ayoussef
Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0

جميع حقوق النشر والتوزيع ممنوحة ضمن شروط رخصة وقف العامة.