Hi folks!
according to the python docs, which otherwise are very clear, are totally screw at this widget, it says that the format of the Menu registering is
Men = Menu(“Title%t | Option1%x1 | …| Optionn½xn”,ev, x , y ,w ,h, Men.val )
well, i would add to that ‘format’ some tokens like F@#$!!?¿%CK…
isnt only that this format doesnt explain nothing, but that the resulting vals have NOTHING to do with the Option strings…
i tried to do something like…
Men=Create(“ZFILL”)
…
Men=Menu(" ZFILL | ZUSE | ZTEST | ZNONE " , 5 , x , y , w , h , Men.val )
well, this scheme happen to not work, it complains at the registering of the widget as
#error: expecting a number
well, then checking some of the posts here in elysiun about the topic, someone posted an example with options " a | b | c | d " but it Created it with Create(1),
but, guess what? this returns just a number 1, 2, 3…etc…
so, at this point im starting to guess that i should do if /elif clauses and duplicate all the string cases, but if im wrong, please let me know
Regards,