You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to be able to press ENTER in GridColTitle list and get the values/row from the selected row. How can I do that? May be there is some one who has the same issue ...
thank you ..
-daryl
The text was updated successfully, but these errors were encountered:
@darylza i can recover the value of a widget by include an observer.
The design pattern of an observer is to add an argument (parameter) when you create an instance of an other one object (so you pass this observer instance as a parameter to the new object instance through init(self, observer) ). You will use this observer next to push values inside.
So in your situation, you can handle an event handler from the npyscreen event key handler's object with this observer.
I usually do that to separate views and action to get a full MVC design and fully separate action from views (Forms are views and there actions methods are redirected to own dedicated controllers then).
Actually, my own problem now with this object GridColTitle is to resize the columns depend of the content... (or anyway, just resize). If you have an idea, feel free to share.
Hi All,
I want to be able to press ENTER in GridColTitle list and get the values/row from the selected row. How can I do that? May be there is some one who has the same issue ...
thank you ..
-daryl
The text was updated successfully, but these errors were encountered: