Home | Trees | Index | Help |
|
---|
Package wx :: Package py :: Module editor :: Class EditWindow |
|
object
--+ |Object
--+ |EvtHandler
--+ |Window
--+ |Control
--+ |StyledTextCtrl
--+ |EditWindow
--+ | EditWindow
EditWindow based on StyledTextCtrl.
Method Summary | |
---|---|
Create EditWindow instance. | |
Inherited from EditWindow | |
Return True if text is selected and can be copied. | |
Return True if text is selected and can be cut. | |
Return True if editing should succeed. | |
Return True if pasting should succeed. | |
| |
| |
| |
| |
Check for matching braces. | |
| |
Configure font size, typeface and color for lexer. | |
| |
Inherited from StyledTextCtrl | |
| |
Extend life of document. | |
Add array of cells to document. | |
Add text to the document at current position. | |
Add text to the document at current position. | |
Add UTF8 encoded text to the document at the current position. | |
Enlarge the document to a particular size of text bytes. | |
Append a string to the end of the document without changing the selection. | |
Append a string to the end of the document without changing the selection. | |
Append a UTF8 string to the end of the document without changing the selection. | |
bool |
Is there an auto-completion list visible? |
Remove the auto-completion list from the screen. | |
User has selected an item so remove the list and insert the selection. | |
bool |
Retrieve whether or not autocompletion is hidden automatically when nothing matches. |
bool |
Retrieve whether auto-completion cancelled by backspacing before start. |
bool |
Retrieve whether a single item auto-completion list automatically choose the item. |
int |
Get currently selected item position in the auto-completion list |
bool |
Retrieve whether or not autocompletion deletes any word characters after the inserted text upon completion. |
bool |
Retrieve state of ignore case flag. |
int |
Set the maximum height, in rows, of auto-completion and user lists. |
int |
Get the maximum width, in characters, of auto-completion and user lists. |
int |
Retrieve the auto-completion list separator character. |
int |
Retrieve the auto-completion list type-separator character. |
int |
Retrieve the position of the caret when the auto-completion list was displayed. |
Select the item in the auto-completion list that starts with a string. | |
Set whether or not autocompletion is hidden automatically when nothing matches. | |
Should the auto-completion list be cancelled if the user backspaces to a position before where the box was created. | |
Should a single item auto-completion list automatically choose the item. | |
Set whether or not autocompletion deletes any word characters after the inserted text upon completion. | |
Define a set of characters that when typed will cause the autocompletion to choose the selected item. | |
Set whether case is significant when performing auto-completion searches. | |
Set the maximum height, in rows, of auto-completion and user lists. | |
Set the maximum width, in characters, of auto-completion and user lists. | |
Change the separator character in the string setting up an auto-completion list. | |
Change the type-separator character in the string setting up an auto-completion list. | |
Display a auto-completion list. | |
Define a set of character that when typed cancel the auto-completion list. | |
Dedent the selected lines. | |
Start a sequence of actions that is undone and redone as a unit. | |
Highlight the character at a position indicating there is no matching brace. | |
Highlight the characters at two positions. | |
int |
Find the position of a matching brace or INVALID_POSITION if no match. |
bool |
Is there an active call tip? |
Remove the call tip from the screen. | |
int |
Retrieve the position where the caret was before displaying the call tip. |
Set the background colour for the call tip. | |
Set the foreground colour for the call tip. | |
Set the foreground colour for the highlighted part of the call tip. | |
Highlight a segment of the definition. | |
Show a call tip containing a definition near position pos. | |
Cancel any modes such as call tip or auto-completion list display. | |
bool |
Are there any redoable actions in the undo history? |
bool |
Are there any undoable actions in the undo history? |
Move caret left one character. | |
Move caret left one character extending selection to new caret position. | |
Move caret left one character, extending rectangular selection to new caret position. | |
Move caret right one character. | |
Move caret right one character extending selection to new caret position. | |
Move caret right one character, extending rectangular selection to new caret position. | |
Set the last x chosen value to be the caret x position. | |
Clear the selection. | |
Delete all text in the document. | |
Set all style bytes to 0, remove all folding information. | |
Clear all the registered images. | |
When key+modifier combination km is pressed perform msg. | |
When key+modifier combination km is pressed do nothing. | |
Drop all key mappings. | |
Perform one of the operations defined by the wx.stc.STC_CMD_* constants. | |
Colourise a segment of the document using the current lexing language. | |
Convert all line endings in the document to one mode. | |
Copy the selection to the clipboard. | |
Copy a range of text to the clipboard. | |
Copy argument text to the clipboard. | |
bool |
Do the 2nd phase and create the GUI control. |
void |
Create a new document object. |
Cut the selection to the clipboard. | |
Delete the selection or if no selection, the character before the caret. | |
Delete the selection or if no selection, the character before the caret. | |
Delete back from the current position to the start of the line. | |
Delete forwards from the current position to the end of the line. | |
Delete the word to the left of the caret. | |
Delete the word to the right of the caret. | |
int |
Find the document line of a display line taking hidden lines into account. |
Move caret to last position in document. | |
Move caret to last position in document extending selection to new caret position. | |
Move caret to first position in document. | |
Move caret to first position in document extending selection to new caret position. | |
int |
Allow for simulating a DnD DragOver. |
bool |
Allow for simulating a DnD DropText. |
Switch from insert to overtype mode or the reverse. | |
Delete the undo history. | |
End a sequence of actions that is undone and redone as a unit. | |
Ensure the caret is visible. | |
Ensure a particular line is visible by expanding any header line hiding it. | |
Ensure a particular line is visible by expanding any header line hiding it. | |
int |
Find the position of a column on a line taking into account tabs and multi-byte characters. |
int |
Find some text in the document. |
int |
On Windows, will draw the document into a display context such as a printer. |
Insert a Form Feed character. | |
int |
Returns the position of the opposite end of the selection to the caret. |
bool |
Does a backspace pressed when caret is within indentation unindent? |
bool |
Is drawing done first into a buffer or direct to the screen? |
Colour |
Get the foreground colour of the caret. |
Colour |
Get the colour of the background of the line containing the caret. |
bool |
Is the background of the line containing the caret in a different colour? |
int |
Get the time in milliseconds that the caret is on and off. |
bool |
Can the caret preferred x position only be changed by explicit movement commands? |
int |
Returns the width of the insert mode caret. |
int |
Returns the character byte at the position. |
int |
Get the code page used to interpret the bytes of the document as characters. |
int |
Retrieve the column number of a position, taking tab width into account. |
int |
Get the way control characters are displayed. |
(text, pos) |
Retrieve the text of the line containing the caret, and also theindex of the caret on the line. |
(text, index) |
Retrieve the text of the line containing the caret, and also the index of the caret on the line. |
Retrieve the UTF8 text of the line containing the caret, and also the index of the caret on the line. | |
int |
Returns the line number of the line with the caret. |
int |
Returns the position of the caret. |
void |
Retrieve a pointer to the document object. |
Colour |
Retrieve the colour used in edge indication. |
int |
Retrieve the column number which text should be kept within. |
int |
Retrieve the edge highlight mode. |
bool |
Retrieve whether the maximum scroll position has the last line at the bottom of the view. |
int |
Retrieve the position of the last correctly styled character. |
int |
Retrieve the current end of line mode - one of CRLF, CR, or LF. |
int |
Retrieve the display line at the top of the display. |
bool |
Is a header line expanded? |
int |
Retrieve the fold level of a line. |
int |
Find the parent line of a child line. |
int |
Get the highlighted indentation guide column. |
int |
Retrieve indentation size. |
bool |
Are the indentation guides visible? |
int |
Find the last child line of a header line. |
bool |
|
int |
Retrieve the degree of caching of layout information. |
int |
Returns the number of characters in the document. |
int |
Retrieve the lexing language of the document. |
String |
Retrieve the contents of a line. |
int |
Returns the number of lines in the document. |
int |
Get the position after the last visible characters on a line. |
int |
Retrieve the number of columns that a line is indented. |
int |
Retrieve the position before the first non indentation character on a line. |
wxCharBuffer |
Retrieve the contents of a line. |
int |
Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line). |
int |
Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line). |
int |
Retrieve the extra styling information for a line. |
Retrieve the contents of a line as UTF8. | |
bool |
Is a line visible? |
int |
Returns the size in pixels of the left margin. |
int |
Retrieve the marker mask of a margin. |
int |
Returns the size in pixels of the right margin. |
bool |
Retrieve the mouse click sensitivity of a margin. |
int |
Retrieve the type of a margin. |
int |
Retrieve the width of a margin in pixels. |
int |
Retrieve the last line number that has line state. |
int |
Get which document modification events are sent to the container. |
bool |
Is the document different from when it was last saved? |
bool |
Get whether mouse gets captured. |
int |
Retrieve the time the mouse must sit still to generate a mouse dwell event. |
bool |
Returns true if overtype mode is active otherwise false is returned. |
bool |
Get convert-on-paste setting |
int |
Returns the print colour mode. |
int |
Returns the print magnification. |
int |
Is printing line wrapped? |
String |
Retrieve a 'property' value previously set with SetProperty. |
String |
Retrieve a 'property' value previously set with SetProperty, with '$()' variable replacement on returned buffer. |
int |
Retrieve a 'property' value previously set with SetProperty, interpreted as an int AFTER any '$()' variable replacement. |
bool |
In read-only mode? |
int |
Retrieve the document width assumed for scrolling. |
int |
Get the search flags used by SearchInTarget. |
String |
Retrieve the selected text. |
wxCharBuffer |
Retrieve the selected text. |
Retrieve the selected text as UTF8. | |
int |
Returns the position at the end of the selection. |
int |
Get the mode of the current selection. |
int |
Returns the position at the start of the selection. |
int |
Get error status. |
int |
Get cursor type. |
bool |
Get internal focus flag. |
int |
Returns the style byte at the position. |
int |
Retrieve number of bits in style bytes used to hold the lexical state. |
int |
Retrieve the number of bits the current lexer needs for styling. |
wxMemoryBuffer |
Retrieve a buffer of cells. |
bool |
Does a tab pressed when caret is within indentation indent? |
int |
Retrieve the visible size of a tab. |
int |
Get the position that ends the target. |
int |
Get the position that starts the target. |
String |
Retrieve all the text in the document. |
int |
Retrieve the number of characters in the document. |
String |
Retrieve a range of text. |
wxCharBuffer |
Retrieve a range of text. |
Retrieve a range of text as UTF8. | |
wxCharBuffer |
Retrieve all the text in the document. |
Retrieve all the text in the document as UTF8. | |
bool |
Is drawing done in two phases with backgrounds drawn before foregrounds? |
bool |
Is undo history being collected? |
bool |
Returns the current UseAntiAliasing setting. |
bool |
Is the horizontal scroll bar visible? |
bool |
Retrieve whether tabs will be used in indentation. |
bool |
Is the vertical scroll bar visible? |
bool |
Are the end of line characters visible? |
int |
Are white space characters currently visible? Returns one of SCWS_* constants. |
int |
Retrieve whether text is word wrapped. |
int |
Retrive the start indent for wrapped lines. |
int |
Retrive the display mode of visual flags for wrapped lines. |
int |
Retrive the location of visual flags for wrapped lines. |
int |
|
int |
Retrieve the zoom level. |
Set caret to start of a line and ensure it is visible. | |
Set caret to a position and ensure it is visible. | |
Make a range of lines invisible. | |
Draw the selection in normal style or with selection highlighted. | |
Move caret to first position on line. | |
Move caret to first position on display line. | |
Move caret to first position on display line extending selection to new caret position. | |
Move caret to first position on line extending selection to new caret position. | |
Move caret to first position on line, extending rectangular selection to new caret position. | |
These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? except they behave differently when word-wrap is enabled: They go first to the start / end of the display line, like (Home|LineEnd)Display The difference is that, the cursor is already at the point, it goes on to the start or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. | |
| |
Colour |
Retrieve the foreground colour of an indicator. |
int |
Retrieve the style of an indicator. |
Set the foreground colour of an indicator. | |
Set an indicator to plain, squiggle or TT. | |
Insert string at a position. | |
Insert string at a position. | |
Insert UTF8 encoded text at a position. | |
Copy the line containing the caret. | |
Cut the line containing the caret. | |
Delete the line containing the caret. | |
Move caret down one line. | |
Move caret down one line extending selection to new caret position. | |
Move caret down one line, extending rectangular selection to new caret position. | |
Duplicate the current line. | |
Move caret to last position on line. | |
Move caret to last position on display line. | |
Move caret to last position on display line extending selection to new caret position. | |
Move caret to last position on line extending selection to new caret position. | |
Move caret to last position on line, extending rectangular selection to new caret position. | |
| |
| |
int |
Retrieve the line containing a position. |
int |
How many characters are on a line, not including end of line characters? |
Scroll horizontally and vertically. | |
Scroll the document down, keeping the caret visible. | |
Scroll the document up, keeping the caret visible. | |
Join the lines in the target. | |
int |
Retrieves the number of lines completely visible. |
Split the lines in the target into lines that are less wide than pixelWidth where possible. | |
Switch the current line with the previous. | |
Move caret up one line. | |
Move caret up one line extending selection to new caret position. | |
Move caret up one line, extending rectangular selection to new caret position. | |
bool |
Load the contents of filename into the editor |
Transform the selection to lower case. | |
int |
Add a marker to a line, returning an ID which can be used to find or delete the marker. |
Add a set of markers to a line. | |
Set the symbol used for a particular marker number, and optionally the fore and background colours. | |
Define a marker from a bitmap | |
Delete a marker from a line. | |
Delete all markers with a particular number from all lines. | |
Delete a marker. | |
int |
Get a bit mask of all the markers set on a line. |
int |
Retrieve the line number at which a particular marker is located. |
int |
Find the next line after lineStart that includes a marker in mask. |
int |
Find the previous line before lineStart that includes a marker in mask. |
Set the background colour used for a particular marker number. | |
Set the foreground colour used for a particular marker number. | |
Move the caret inside current view if it's not there already. | |
Insert a new line, may use a CRLF, CR or LF depending on EOL mode. | |
Move caret one page down. | |
Move caret one page down extending selection to new caret position. | |
Move caret one page down, extending rectangular selection to new caret position. | |
Move caret one page up. | |
Move caret one page up extending selection to new caret position. | |
Move caret one page up, extending rectangular selection to new caret position. | |
Move caret between paragraphs (delimited by empty lines). | |
| |
| |
| |
Paste the contents of the clipboard into the document replacing the selection. | |
Point |
Retrieve the point in the window where a position is displayed. |
int |
Given a valid document position, return the next position taking code page into account. |
int |
Given a valid document position, return the previous position taking code page into account. |
int |
Retrieve the position at the start of a line. |
int |
Find the position from a point within the window. |
int |
Find the position from a point within the window but return INVALID_POSITION if not close to text. |
Redoes the next action on the undo history. | |
Register an image for use in autocompletion lists. | |
Release a reference to the document, deleting document if it fades to black. | |
Replace the selected text with the argument text. | |
int |
Replace the target text with the argument text. |
int |
Replace the target text with the argument text after d processing. |
bool |
Write the contents of the editor to filename |
Scroll enough to make the given column visible | |
Scroll enough to make the given line visible. | |
Sets the current caret position to be the search anchor. | |
int |
Search for a counted string in the target and set the target to the found range. |
int |
Find some text starting at the search anchor. |
int |
Find some text starting at the search anchor and moving backwards. |
Select all the text in the document. | |
Duplicate the selection. | |
bool |
Is the selection rectangular? The alternative is the more common stream selection. |
long |
Send a message to Scintilla. |
Set the selection anchor to a position. | |
Sets whether a backspace pressed when caret is within indentation unindents. | |
If drawing is buffered then each line of text is drawn into a bitmap buffer before drawing it to the screen to avoid flicker. | |
Set the foreground colour of the caret. | |
Set the colour of the background of the line containing the caret. | |
Display the background of the line containing the caret in a different colour. | |
Get the time in milliseconds that the caret is on and off. | |
Stop the caret preferred x position changing when the user types. | |
Set the width of the insert mode caret. | |
Reset the set of characters for whitespace and word characters to the defaults. | |
Set the code page used to interpret the bytes of the document as characters. | |
Change the way control characters are displayed: If symbol is < 32, keep the drawn way, else, use the given character. | |
Sets the position of the caret. | |
Change the document object used. | |
Change the colour used in edge indication. | |
Set the column number of the edge. | |
The edge may be displayed by a line (EDGE_LINE) or by highlighting text that goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE). | |
Sets the scroll range so that maximum scroll position has the last line at the bottom of the view (default). | |
Set the current end of line mode. | |
Show the children of a header line. | |
Set some style options for folding. | |
Set the fold level of a line. | |
Set the colours used as a chequerboard pattern in the fold margin | |
| |
Set the highlighted indentation guide column. | |
Set a back colour for active hotspots. | |
Set a fore colour for active hotspots. | |
Enable / Disable underlining active hotspots. | |
Limit hotspots to single line so hotspots on two lines don't merge. | |
Set the horizontal scrollbar to use instead of the ont that's built-in. | |
Set the number of spaces used for one level of indentation. | |
Show or hide indentation guides. | |
Set up the key words used by the lexer. | |
| |
Sets the degree of caching of layout information. | |
Set the lexing language of the document. | |
Set the lexing language of the document based on string name. | |
Change the indentation of a line to a number of columns. | |
Used to hold extra styling information for each line. | |
Sets the size in pixels of the left margin. | |
Set a mask that determines which markers are displayed in a margin. | |
Sets the size in pixels of the right margin. | |
Set the left and right margin in the edit area, measured in pixels. | |
Make a margin sensitive or insensitive to mouse clicks. | |
Set a margin to be either numeric or symbolic. | |
Set the width of a margin to a width expressed in pixels. | |
Set which document modification events are sent to the container. | |
Set whether the mouse is captured when its button is pressed. | |
Sets the time the mouse must sit still to generate a mouse dwell event. | |
Set to overtype (true) or insert mode. | |
Enable/Disable convert-on-paste for line endings | |
Modify colours when printing for clearer printed text. | |
Sets the print magnification added to the point size of each style for printing. | |
Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE). | |
Set up a value that may be used by a lexer for some optional feature. | |
Set to read only or read write. | |
Remember the current position in the undo history as the position at which the document was saved. | |
Sets the document width assumed for scrolling. | |
Set the search flags used by SearchInTarget. | |
Set the background colour of the selection and whether to use this setting. | |
Select a range of text. | |
Sets the position that ends the selection - this becomes the currentPosition. | |
Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE) or by lines (SC_SEL_LINES). | |
Sets the position that starts the selection - this becomes the anchor. | |
Set the foreground colour of the selection and whether to use this setting. | |
Change error status - 0 = OK. | |
Sets the cursor to one of the SC_CURSOR* values. | |
Change internal focus flag. | |
Divide each styling byte into lexical class bits (default: 5) and indicator bits (default: 3). | |
Set the styles for a segment of the document. | |
Change style from current styling position for length characters to a style and move the current styling position to after this newly styled segment. | |
Sets whether a tab pressed when caret is within indentation indents. | |
Change the visible size of a tab to be a multiple of the width of a space character. | |
Sets the position that ends the target which is used for updating the document without affecting the scroll position. | |
Sets the position that starts the target which is used for updating the document without affecting the scroll position. | |
Replace the contents of the document with the argument text. | |
Replace the contents of the document with the argument text. | |
Replace the contents of the document with the UTF8 text given. | |
In twoPhaseDraw mode, drawing is performed in two phases, first the background and then the foreground. | |
Choose between collecting actions into the undo history and discarding them. | |
Specify whether anti-aliased fonts should be used. | |
Show or hide the horizontal scroll bar. | |
Indentation will only use space characters if useTabs is false, otherwise it will use a combination of tabs and spaces. | |
Show or hide the vertical scroll bar. | |
Make the end of line characters visible or invisible. | |
Make white space characters invisible, always visible or visible outside indentation. | |
Set the way the display area is determined when a particular line is to be moved to by Find, FindNext, GotoLine, etc. | |
Set the vertical scrollbar to use instead of the one that's built-in. | |
Set the background colour of all whitespace and whether to use this setting. | |
Set the set of characters making up whitespace for when moving or selecting by word. | |
Set the foreground colour of all whitespace and whether to use this setting. | |
Set the set of characters making up words for when moving or selecting by word. | |
Sets whether text is word wrapped. | |
Set the start indent for wrapped lines. | |
Set the display mode of visual flags for wrapped lines. | |
Set the location of visual flags for wrapped lines. | |
Set the way the caret is kept visible when going sideway. | |
Get and Set the xOffset (ie, horizonal scroll position). | |
Set the way the line the caret is on is kept visible. | |
Set the zoom level. | |
Make a range of lines visible. | |
Start notifying the container of all key presses and commands. | |
Set the current styling position to pos and the styling mask to mask. | |
Stop notifying the container of all key presses and commands. | |
Move caret to bottom of page, or one page down if already at bottom of page. | |
Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position. | |
Move caret to top of page, or one page up if already at top of page. | |
Move caret to top of page, or one page up if already at top of page, extending selection to new caret position. | |
Clear all the styles and make equivalent to the global default style. | |
Reset the default style to its state at startup | |
Set the background colour of a style. | |
Set a style to be bold or not. | |
Set a style to be mixed case, or to force upper or lower case. | |
Set a style to be changeable or not (read only). | |
Set the character set of the font in a style. | |
Set a style to have its end of line filled or not. | |
Set the font of a style. | |
Set style size, face, bold, italic, and underline attributes from the attributes of a wx.Font . | |
Set all font style attributes at once. | |
Set the font encoding to be used by a style. | |
Set the foreground colour of a style. | |
Set a style to be a hotspot or not. | |
Set a style to be italic or not. | |
Set the size of characters of a style. | |
Extract style settings from a spec-string which is composed of one or more of the following comma separated elements: | |
Set a style to be underlined or not. | |
Set a style to be visible or not. | |
If selection is empty or all on one line replace the selection with a tab character. | |
Make the target range start and end be the same as the selection range start and end. | |
int |
Retrieve the height of a particular line of text in pixels. |
int |
Measure the pixel width of some text in a particular style. |
Switch between sticky and non-sticky: meant to be bound to a key. | |
Switch a header line between expanded and contracted. | |
Undo one action in the undo history. | |
Transform the selection to upper case. | |
Set whether a pop up menu is displayed automatically when the user presses the wrong mouse button. | |
Display a list of strings and send notification when user chooses one. | |
Move caret to before first visible character on line. | |
Like VCHome but extending selection to new caret position. | |
Move caret to before first visible character on line. | |
| |
| |
int |
Find the display line of a document line taking hidden lines into account. |
int |
Get position of end of word. |
Move caret left one word. | |
Move caret left one word, position cursor at end of word. | |
Move caret left one word, position cursor at end of word, extending selection to new caret position. | |
Move caret left one word extending selection to new caret position. | |
Move to the previous change in capitalisation. | |
Move to the previous change in capitalisation extending selection to new caret position. | |
Move to the change next in capitalisation. | |
Move to the next change in capitalisation extending selection to new caret position. | |
Move caret right one word. | |
Move caret right one word, position cursor at end of word. | |
Move caret right one word, position cursor at end of word, extending selection to new caret position. | |
Move caret right one word extending selection to new caret position. | |
int |
Get position of start of word. |
int |
The number of display lines needed to wrap a document line |
Magnify the displayed text by increasing the sizes by 1 point. | |
Make the displayed text smaller by decreasing the sizes by 1 point. | |
Inherited from Control | |
Simulates the effect of the user issuing a command to the item. | |
VisualAttributes |
Get the default attributes for this class. (Static method) |
String |
Return a control's text. |
Sets the item's text. | |
Inherited from Window | |
bool |
Can this window have focus? |
bool |
Can this window be given focus by keyboard navigation? if not, the only way to give it focus (provided it accepts it at all) is to click it. |
Adds a child window. | |
Associate the window with a new native handle | |
Cache the best size so it doesn't need to be calculated again, (at least until some properties of the window change.) | |
Directs all mouse input to this window. | |
Centers the window. | |
Center with respect to the the parent window | |
<function CenterOnScreen at 0xb7bc94c4> is deprecated | |
Centers the window. | |
Center with respect to the the parent window | |
<function CenterOnScreen at 0xb7bc94c4> is deprecated | |
Clears the window by filling it with the current background colour. | |
Point |
Converts to screen coordinates from coordinates relative to this window. |
(x,y) |
Converts to screen coordinates from coordinates relative to this window. |
bool |
This function simply generates a EVT_CLOSE event whose handler usually tries to close the window. |
Point |
Converts a point or size from dialog units to pixels. |
Size |
Converts a point or size from dialog units to pixels. |
Point |
|
Size |
|
bool |
Destroys the window safely. |
bool |
Destroys all children of a window. |
bool |
Disables the window, same as Enable(false). |
Dissociate the current native handle from the window | |
Point |
Converts a point or size from dialog units to pixels. |
Size |
Converts a point or size from dialog units to pixels. |
Enables or disables eligibility for drop file events, EVT_DROP_FILES. | |
bool |
Enable or disable the window for user input. |
Window |
Returns the window or control that currently has the keyboard focus, or None. (Static method) |
Window |
Find a chld of this window by window ID |
Window |
Find a child of this window by name |
Sizes the window so that it fits around its subwindows. | |
Similar to Fit, but sizes the interior (virtual) size of a window. | |
Freezes the window or, in other words, prevents any updates from taking place on screen, the window is not redrawn at all. | |
AcceleratorTable |
Gets the accelerator table for this window. |
Size |
This method is similar to GetBestSize, except in one thing. |
bool |
Returns the current autoLayout setting |
Colour |
Returns the background colour of the window. |
int |
Returns the background style of the window. |
Size |
This function will merge the window's best size into the window's minimum size, giving priority to the min size components, and returns the results. |
Size |
This function returns the best acceptable minimal size for the window, if applicable. |
(width, height) |
This function returns the best acceptable minimal size for the window, if applicable. |
Size |
Return the largest of ClientSize and BestSize (as determined by a sizer, interior children, or other means) |
int |
GetBorder(self) -> int |
Window |
Returns the window which currently captures the mouse or None (Static method) |
Caret |
Returns the caret associated with the window. |
int |
Get the (average) character size for the current font. |
int |
Get the (average) character size for the current font. |
PyObject |
Returns a list of the window's children. |
Point |
Get the origin of the client area of the window relative to the window's top left corner (the client area may be shifted because of the borders, scrollbars, other decorations...) |
Rect |
Get the client area position and size as a wx.Rect object. |
Size |
This gets the size of the window's 'client area' in pixels. |
(width, height) |
This gets the size of the window's 'client area' in pixels. |
LayoutConstraints |
Returns a pointer to the window's layout constraints, or None if there are none. |
Sizer |
Return the sizer that this window is a member of, if any, otherwise None. |
Cursor |
Return the cursor associated with this window. |
VisualAttributes |
Get the default attributes for an instance of this class. |
Window |
Get the default child of this parent, i.e. |
DropTarget |
Returns the associated drop target, which may be None. |
EvtHandler |
Returns the event handler for this window. |
long |
Returns the extra style bits for the window. |
Font |
Returns the default font used for this window. |
Colour |
Returns the foreground colour of the window. |
(width, height, descent, externalLeading) |
Get the width, height, decent and leading of the text using the current or specified font. |
Window |
Returns the parent of the parent of this window, or None if there isn't one. |
long |
Returns the platform-specific handle (as a long integer) of the physical window. |
String |
Gets the help text to be used as context-sensitive help for this window. |
int |
Returns the identifier of the window. |
int |
|
Size |
|
int |
|
int |
|
Size |
|
int |
|
String |
Returns the windows name. |
Window |
Returns the parent window of this window, or None if there isn't one. |
Point |
Get the window's position. |
(x,y) |
Get the window's position. |
Rect |
Returns the size and position of the window as a wx.Rect object. |
int |
Returns the built-in scrollbar position. |
int |
Returns the built-in scrollbar range. |
int |
Returns the built-in scrollbar thumb size. |
Size |
Get the window size. |
Sizer |
Return the sizer associated with the window by a previous call to SetSizer or None if there isn't one. |
(width, height) |
Get the window size. |
(width, height) |
Get the width and height of the text using the current font. |
bool |
Return the themeEnabled flag. |
String |
Gets the window's title. |
ToolTip |
get the associated tooltip or None if none |
Rect |
Get the update rectangle region bounding box in client coords. |
Region |
Returns the region specifying which parts of the window have been damaged. |
Validator |
Returns a pointer to the current validator for the window, or None if there is none. |
Size |
Get the the virtual size of the window in pixels. |
(width, height) |
Get the the virtual size of the window in pixels. |
long |
Gets the window style that was passed to the constructor or Create method. |
long |
Gets the window style that was passed to the constructor or Create method. |
int |
|
bool |
Returns true if this window has the current mouse capture. |
bool |
Test if the given style is set for this window. |
bool |
Does the window have the scrollbar for this orientation? |
bool |
Returns True if this window's background is transparent (as, for example, for wx.StaticText ) and should show the parent window's
background. |
bool |
Equivalent to calling Show(False). |
int |
Test where the given (in client coords) point lies |
int |
Test where the given (in client coords) point lies |
This function is (or should be, in case of custom controls) called during window creation to intelligently set up the window visual attributes, that is the font and the foreground and background colours. | |
bool |
|
Sends an EVT_INIT_DIALOG event, whose handler usually transfers data to the dialog via validators. | |
Reset the cached best size value so it will be recalculated the next time it is needed. | |
bool |
Is the window in the process of being deleted? |
bool |
Returns true if the window is enabled for input, false otherwise. |
bool |
Returns true if the given point or rectangle area has been exposed since the last repaint. |
bool |
Returns true if the given point or rectangle area has been exposed since the last repaint. |
bool |
Returns true if the given point or rectangle area has been exposed since the last repaint. |
bool |
Returns true if the window is retained, false otherwise. |
bool |
Returns true if the window is shown, false if it has been hidden. |
bool |
Returns true if the given window is a top-level one. |
bool |
Invokes the constraint-based layout algorithm or the sizer-based algorithm for this window. |
Lowers the window to the bottom of the window hierarchy. | |
Disables all other windows in the application so that the user can only interact with this window. | |
Moves the window to the given position. | |
Moves this window in the tab navigation order after the specified sibling window. | |
Same as MoveAfterInTabOrder except that it inserts this window just
before win instead of putting it right after it. | |
Moves the window to the given position. | |
bool |
Does keyboard navigation from this window to another, by sending a wx.NavigationKeyEvent . |
int |
Generate a control id for the controls which were not given one. (Static method) |
int |
Get the id of the control following the one with the given autogenerated) id (Static method) |
EvtHandler |
Removes and returns the top-most event handler on the event handler stack. |
bool |
Pops up the given menu at the specified coordinates, relative to this window, and returns control when the user has dismissed the menu. |
bool |
Pops up the given menu at the specified coordinates, relative to this window, and returns control when the user has dismissed the menu. |
Phase 3 of the 2-phase create <wink!> Call this method after precreating the window with the 2-phase create method. | |
Call this function to prepare the device context for drawing a scrolled image. | |
int |
Get the id of the control preceding the one with the given autogenerated) id (Static method) |
Pushes this event handler onto the event handler stack for the window. | |
Raises the window to the top of the window hierarchy. | |
Mark the specified rectangle (or the whole window) as "dirty" so it will be repainted. | |
Redraws the contents of the given rectangle: the area inside it will be repainted. | |
bool |
Registers a system wide hotkey. |
Releases mouse input captured with wx.Window.CaptureMouse. | |
Removes a child window. | |
bool |
Find the given handler in the event handler chain and remove (but not delete) it from the event handler chain, return True if it was found and False otherwise (this also results in an assert failure so this function should only be called when the handler is supposed to be there.) |
bool |
Reparents the window, i.e the window will be removed from its current parent window (e.g. |
Point |
Converts from screen to client window coordinates. |
(x,y) |
Converts from screen to client window coordinates. |
bool |
If the platform and window class supports it, scrolls the window by the given number of lines down, if lines is positive, or up if lines is negative. |
bool |
If the platform and window class supports it, scrolls the window by the given number of pages down, if pages is positive, or up if pages is negative. |
Physically scrolls the pixels in the window and move child windows accordingly. | |
| |
Sets the accelerator table for this window. | |
Determines whether the Layout function will be called automatically when the window is resized. | |
bool |
Sets the background colour of the window. |
bool |
Returns the background style of the window. |
A 'Smart' SetSize that will fill in default size components with the window's best size values. | |
Sets the caret associated with the window. | |
This sets the size of the window client area in pixels. | |
This sets the size of the window client area in pixels. | |
This sets the size of the window client area in pixels. | |
Sets the window to have the given layout constraints. | |
This normally does not need to be called by application code. | |
bool |
Sets the window's cursor. |
Window |
Set this child as default, return the old default. |
Sets the position and size of the window in pixels. | |
Associates a drop target with this window. | |
Sets the event handler for this window. | |
Sets the extra style bits for the window. | |
Set's the focus to this window, allowing it to receive keyboard input. | |
Set focus to this window as the result of a keyboard action. | |
bool |
Sets the font for this window. |
bool |
Sets the foreground colour of the window. |
Sets the help text to be used as context-sensitive help for this window. | |
Associate this help text with all windows with the same id as this one. | |
Sets the identifier of the window. | |
A more convenient method than SetSizeHints for setting just the
max size. | |
A more convenient method than SetSizeHints for setting just the
min size. | |
Sets the window's name. | |
| |
| |
| |
Moves the window to the given position. | |
Sets the position and size of the window in pixels using a wx.Rect. | |
| |
Sets the position of one of the built-in scrollbars. | |
Sets the size of the window in pixels. | |
Allows specification of minimum and maximum window sizes, and window size increments. | |
Allows specification of minimum and maximum window sizes, and window size increments. | |
Sets the window to have the given layout sizer. | |
The same as SetSizer, except it also sets the size hints for the window based on the sizer's minimum size. | |
Sets the size of the window in pixels. | |
code to draw the windows' background instead if its own background drawing code. | |
Sets the window's title. | |
Set this child as temporary default | |
Attach a tooltip to the window. | |
Attach a tooltip to the window. | |
Deletes the current validator (if any) and sets the window validator, having called wx.Validator.Clone to create a new validator of this type. | |
Set the the virtual size of a window in pixels. | |
Allows specification of minimum and maximum virtual window sizes. | |
Allows specification of minimum and maximum virtual window sizes. | |
Set the the virtual size of a window in pixels. | |
Sets the style of the window. | |
Sets the style of the window. | |
Sets the variant of the window/font size to use for this window, if the platform supports variants, for example, wxMac. | |
bool |
Return true from here to allow the colours of this window to be changed by InheritAttributes, returning false forbids inheriting them from the parent window. |
bool |
Shows or hides the window. |
Reenables window updating after a previous call to Freeze. | |
bool |
Transfers values from child controls to data areas specified by their validators. |
bool |
Transfers values to child controls from data areas specified by their validators. |
bool |
Unregisters a system wide hotkey. |
Calling this method immediately repaints the invalidated area of the window instead of waiting for the EVT_PAINT event to happen, (normally this would usually only happen when the flow of control returns to the event loop.) Notice that this function doesn't refresh the window and does nothing if the window has been already repainted. | |
This function sends EVT_UPDATE_UI events to the window. | |
bool |
|
bool |
Validates the current values of the child controls using their validators. |
Moves the pointer to the given position on the window. | |
Inherited from EvtHandler | |
| |
Bind an event to an event handler. | |
| |
bool |
|
bool |
|
EvtHandler |
|
EvtHandler |
|
bool |
|
| |
| |
| |
| |
Disconencts the event handler binding for event from self. | |
Inherited from Object | |
String |
Returns the class name of the C++ class using wxRTTI. |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... |
Class Variable Summary | |
---|---|
Inherited from EditWindow | |
str |
revision = '1.10.2.3'
|
Instance Method Details |
---|
__init__(self,
editor,
parent,
id=-1,
pos=wx.Point(-1, -1),
size=wx.Size(-1, -1),
style=138412032)
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 16:45:24 2007 | http://epydoc.sf.net |