473,490 Members | 2,737 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Boa TextCtrl Props

true911m
92 New Member
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...
Dec 12 '06 #1
11 1758
true911m
92 New Member
I'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...)
Dec 12 '06 #2
bartonc
6,596 Recognized Expert Expert
It in Inspector:Constr Tab:Syle checkbox pulls down a list; about 2/3 of the way down alphabetical TE_*
Dec 12 '06 #3
bartonc
6,596 Recognized Expert Expert
I'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...)
Same place: Inspector:Constr:Style.
Dec 12 '06 #4
true911m
92 New Member
Same place: Inspector:Constr:Style.
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.

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.
Dec 12 '06 #5
true911m
92 New Member
Same place: Inspector:Constr:Style.
I found what should be the properties I'm looking for: wx.MAXIMIZE_BOX and wx.MINIMIZE_BOX options in the Inspector:Constr 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_FRAME_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.
Dec 13 '06 #6
bartonc
6,596 Recognized Expert Expert
I found what should be the properties I'm looking for: wx.MAXIMIZE_BOX and wx.MINIMIZE_BOX options in the Inspector:Constr 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_FRAME_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.
I haven't looked at the bit pattern for DEFAULT_FRAME_STYLE 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,
Barton
Dec 14 '06 #7
bartonc
6,596 Recognized Expert Expert
I found what should be the properties I'm looking for: wx.MAXIMIZE_BOX and wx.MINIMIZE_BOX options in the Inspector:Constr 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_FRAME_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.
I feel like a fool... I already have a window with attrs you are looking for. I use a wx.Dialog. The DEFAULT_FRAME_STYLE on these guys is just what you are after (although Boa shows these "decorations", they are not there when it runs - strike 2 for boa).
Dec 14 '06 #8
true911m
92 New Member
I feel like a fool... I already have a window with attrs you are looking for. I use a wx.Dialog. The DEFAULT_FRAME_STYLE on these guys is just what you are after (although Boa shows these "decorations", they are not there when it runs - strike 2 for boa).
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.
Dec 14 '06 #9
true911m
92 New Member
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.
Oh I got it -- there's a blank dialog form.
Dec 14 '06 #10
true911m
92 New Member
Oh I got it -- there's a blank dialog form.
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.
Dec 14 '06 #11
bartonc
6,596 Recognized Expert Expert
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.
Use
Expand|Select|Wrap|Line Numbers
  1. myDefaultButton.SetDefault()
to make that work
Dec 15 '06 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2998
by: Logan | last post by:
I asked a similar question already in the wxPython mailing list, but did not get an answer up to now: 1.) When using a TextCtrl with styles (color etc.) in wxPython, is it then possible to get a...
12
3033
by: Arno R | last post by:
Hi there, I just distributed an application in which I (try to) change db.properties depending on CurrentUser() For instance I set the property's AllowBypassKey and AllowBuiltinToolbars to False...
13
1951
by: Arno R | last post by:
Hi all In another thread I had problems changing db.props Another problem I encountered while testing this: db corrupt When I deleted db.props through code in a loop I could not start the db again...
4
362
by: Steve Drake | last post by:
All, If you right click on a word doc, you can see and set the custom props for the document, how can this be done in C# (or any other lang) I don't want to automate word as this will be...
6
10574
by: Hako | last post by:
Hello All, I have a function to set readonly or editable of a textctrl. I'd like to make the textctrl initial set readonly and use other event funciton to set editable of the textctrl but it...
5
2851
by: citronelu | last post by:
I made a small wxPython app that retrieves web data; for visual logging I use a TextCtrl widget, and stdout is redirected to it, something like this: class RedirectOutput: def __init__(self,...
3
4640
by: bcwhite | last post by:
I'm running Python2.5 with wxPython v2.8.3.0 under WinXP and I cannot get the SetDefaultStyle method to work. I'm trying: self.output.SetDefaultStyle(wx.TextAttr(wx.RED))...
3
6122
by: Alejandro | last post by:
Hi: I want to redirect stdout to a textctrl I have. From what I read in the wxpython documentation, I can use the wxLogTextCtrl class to do this. I am doing the following: class...
1
4561
by: aeroumr | last post by:
In the following code, I have created a panel with a button and a textctrl object on it. I have also created a menubar that will create a new text file (i.e. textctrl object). My problem is that...
0
7112
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7146
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7183
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6852
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5448
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3074
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
628
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
277
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.