I can't seem to find the "ReadOnly" attribute for a wx.TextCtrl in Boa. It's usually just a checkbox/boolean in VS; I think wxGlade used a wx value like TE_READONLY or something similar. It's probably right in front of me here somewhere...
Boa TextCtrl Props
Collapse
X
-
Same place: Inspector:Const r:Style.Originally posted by true911mI'm also trying to set the window (er, frame in this case, I guess) properties to not have minimize and maximize buttons, but I don't want to use the tool-type of window with a mini title bar, either. (I know, this isn't just about TextCtrls...)Comment
-
Oh that's what that is. I saw the Style checkbox with a zero and thought, "oh great, more codes to look up." That's much better.Originally posted by bartoncSame place: Inspector:Const r:Style.
Alright, next question(s) (you can change this thread to just Boa Props if you like...):
Can you set up a tab-order for using the interface with a keyboard?
Can you set the Default property for a button when you press Enter? (And there's another property for setting the default Esc button too, but I forget what it's called.) I found a "wants text input" property, or something to that effect, which I think places the cursor in the textbox when the frame is displayed, but I haven't worked it through yet, and it doesn't have a noticeable effect on the buttons, even though it exists for them as well.
Last question - more general, what's the distinction between a frame and a window? I don't hear much talk about windows in general in Python.
The app I'm experimenting with is a rewrite of a little VB app I once created for an employer that used only generated passwords (with multiple algorithms) because they refused to enforce a changing password policy. It's not used now, but I plan to send it to my friend who's the sysadmin there and tell him I wrote it in Python, which he's always liked but never spent much time on. Hopefully it'll give him some motivation. I really like that these widgets (and the app, by extension) have the normal desktop look and feel about them.Comment
-
I found what should be the properties I'm looking for: wx.MAXIMIZE_BOX and wx.MINIMIZE_BOX options in the Inspector:Const r Style options. However, these are False by default, and changing them to True has no effect.Originally posted by bartoncSame place: Inspector:Const r:Style.
I thought they might be overridden by the wx.DEFAULT_FRAM E_STYLE option, which is the only one True by default, but turning that off removes the border and title bar from the window/frame completely.
Still stumped.Comment
-
I haven't looked at the bit pattern for DEFAULT_FRAME_S TYLE as I write this, but will look into it. I did play with clearing this and setting others to get a frame style that I wanted. It took many itterations of regenerating and going back into designer and I still hadn't achieved a good result (clearly, updating the repr of the frame on the screen is a Boa weakness at this point). I'm sure that it can be done and will continue to play with it. This is important for all to have a handle on. Thanks for pointing it out,Originally posted by true911mI found what should be the properties I'm looking for: wx.MAXIMIZE_BOX and wx.MINIMIZE_BOX options in the Inspector:Const r Style options. However, these are False by default, and changing them to True has no effect.
I thought they might be overridden by the wx.DEFAULT_FRAM E_STYLE option, which is the only one True by default, but turning that off removes the border and title bar from the window/frame completely.
Still stumped.
BartonComment
-
I feel like a fool... I already have a window with attrs you are looking for. I use a wx.Dialog. The DEFAULT_FRAME_S TYLE on these guys is just what you are after (although Boa shows these "decoration s", they are not there when it runs - strike 2 for boa).Originally posted by true911mI found what should be the properties I'm looking for: wx.MAXIMIZE_BOX and wx.MINIMIZE_BOX options in the Inspector:Const r Style options. However, these are False by default, and changing them to True has no effect.
I thought they might be overridden by the wx.DEFAULT_FRAM E_STYLE option, which is the only one True by default, but turning that off removes the border and title bar from the window/frame completely.
Still stumped.Comment
-
I don't get you. How do you edit a dialog in designer? It pulls up the entire (blank) frame for the module you're working in, whether it contains a dialog or not.Originally posted by bartoncI feel like a fool... I already have a window with attrs you are looking for. I use a wx.Dialog. The DEFAULT_FRAME_S TYLE on these guys is just what you are after (although Boa shows these "decoration s", they are not there when it runs - strike 2 for boa).Comment
-
The dialog worked. The .default property still doesn't behave as anticipated after enabling it (pressing Enter should fire the .default button), but I can type and tab from field to field and on down to the button in question without reaching for the mouse.Originally posted by true911mOh I got it -- there's a blank dialog form.Comment
-
UseOriginally posted by true911mThe dialog worked. The .default property still doesn't behave as anticipated after enabling it (pressing Enter should fire the .default button), but I can type and tab from field to field and on down to the button in question without reaching for the mouse.
to make that workCode:myDefaultButton.SetDefault()
Comment
Comment