Python

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • ANN: FloatSpin Control For wxPython ;-)

    1 answers - 5223 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hello Alexander & NG,

    >Umm sorry that wasn't my mind. I really like your ANNs, especially your
    >NotebookCtrl can be really useful - images can show more the 1000 words.
    >And I'm sure that I'll use FoldPanelBar in one of my next apps.


    >if you think in this way, probably
    >also other posters think the same, so it might be better if I stop doing
    >"ANNs" about useless wxcontrols.


    >Hey it was just a silly joke - really.

    No problem, I didn't get upset, I was just wondering if I may become boring
    with my "ANNs".
    In the demo you've forgotten a possibility to change the increment.
    >[]
    >screens resolutions (namely 800x600 pixels). I can, obviously, eliminate
    >the "Set Value" button and adding this one, it doesn't take a minute to

    do
    >it.

    with this limitation there is really a space problem. So maybe only for
    >one example a "Set Increment" button?

    Yes, I will do it because I recognize it is more important than, say, the
    possibility to use the "snap to ticks" funcionality. I will add the option
    you suggest and remove the snaptoticks thing.
    But I'd rather like to set the cursor at the value to change (like in
    the TimeCtrl).
    >>

    >TimeCtrl and FloatSpin are completely different. In which respect you
    >"would like to set the cursor at the value to change"? TimeCtrl has
    >different *fields* to change (namely hours, minutes, seconds). Time data

    in
    >the format HH:MM:SS can be easily separated in different "values to
    >change". How would you do it for a floating point number?


    >Well a floating point number consists of different numbers and your
    >control has already the possibility to set the precision.
    >Example: If there is the value 1.23456 and the insertion point is 4
    >(after the "3") and you use the SpinCtrl than "3" is selected and gets
    >incremented / decremented. If the insertion point is 0, than the last
    >number (in this case "6") gets changed. course this only works, if
    >the number of the numbers is limited (ie there is a limited precision)


    >But I see this behaviour could be annoying in some cases.

    Mhm but the increment is set indipendently to which number is selected
    in the textctrl. I mean, if I have an increment of 0.001, and a float
    number like 1.0987, if I select "1", I still have to add: 1 + 0.001, so it
    seems to me that it is equal to 1.0987 + 0.001. But I am surely missing
    something here, or probably I have no idea on how to handle this correctly.
    Give a possibility to change the modifiers for using the Alt-, Ctrl- and
    Shift-key.
    >>

    >This will be a useful addition, even if I feel that is more
    >>"keyboard-natural" to change them with arrows/pagedown/pageup keys.


    >Sorry I don't understand what you mean. You want to change the
    >modifier/increment with arrows?

    You already can do it. Set the focus to the textctrl and use the keyboard
    arrows, pageup, pagedown, <space>, <Escand some more that now I don't
    remember You can use them also with the combination of Ctrl/Alt/Shift,
    exactly like the MouseWheel behaves.
    And why works these keys only with the mousewheel and
    not when you use the SpinCtrl?
    >>

    >No idea for that. I haven't even thought about that ;-)


    >I would be a little confused, if it would work in an app with mousewheel
    >but not with the SpinCtrl itself.

    You are right, the problem is that EVT_SPIN_UP or EVT_SPIN_DWN does not
    have the attribute ".m_altDown", ".m_shiftDown", ".m_ctrlDown", and I don't
    know if it is possible to catch which keys are down in a EVT_SPIN event
    Does anyone have a suggestion about it?
    Thanks a lot for your comments.
    Andrea.
    Andrea Gavana
    Reservoir Engineer
    MGI ? Reservoir Characterization and Modeling* Dept.
    ENI S.p.A. ? Exploration & Production Division
    Via Emilia, 1 ? 20097 San Donato Milanese (MI) ? Italy
    Phone: +39 02 520 62972
    Fax:**** +39 02 520 61824
    E-mail: andrea.gavana (AT) agip (DOT) it
    Restyled Internet Site:
    Eni S.p.A.
    Sede legale in Roma,
    Piazzale Enrico Mattei 1, 00144 Roma
    Tel. centralino: +39 06598.21
    www.eni.it
    Capitale sociale 4.002.934.326 i.v.
    Registro Imprese di Roma,
    Codice Fiscale 00484960588
    Part. IVA 00905811006
    R.E.A. Roma n. 756453
    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.1 | | 552 bytes | |

    Fri, 18 Nov 2005 04:40, andrea.gavana (AT) agip (DOT) it wrote:
    No problem, I didn't get upset, I was just wondering if I may become boring
    with my "ANNs".

    Please keep them coming. I have set my mail filters to tag them as
    "Important", so when I have too little time to read all list mails, at last I
    won't miss your ANNs.

    Horst

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org

Re: ANN: FloatSpin Control For wxPython ;-)


max 4000 letters.
Your nickname that display:
In order to stop the spam: 1 + 1 =
QUESTION ON "Python"

EMSDN.COM