demo (2)

demo (2)



■-J '-2J 'ii


PyCrustEditor.py x SciTE

File Edit Search View Tools Options Help

©class Editor(wxStyledTextCtrl):

......PyCrust Editor based on

revision = _version_

def init (self, parent.


wxStyledTextCtrl id):_

def config(self) def setStyles(self, faces) def QnKeyDown(self, event) def OnCharCself, event):

......Keypress event handler

key = event. KeyCodeO currpos = sel f .GetCurrentPosO stoppos = self.promptPos[1] if currpos >= stoppos: if key == 46:

#    The dotor period key activates auto completion.

#    Get the command between the prompt and the cursor.

#    Add a dot to the end of the command.

command = self.GetTextRange(stoppos, currpos) +

self.write( ’ . *)

if self.autoComplete: self.autoCompleteShow(command) elif key == 40:

#    "(" The left paren activates a cali tip and cancels

#    an active auto completion.

if self.AutoCompActive(): self.AutoCompCancel O

#    Get the command between the prompt and the cursor.

#    Add the to the end of the command.

command = self.Get

else


else


self.write(' (' ] if self.autoCa' ; •

# Allow the normal ■ event.Skip()


GetCurrentPos


GetTextRanae


GetCurrentLine GetCurLine GetTextl enath


ow(command)


pass

def setStatusText(self, text):

......Display status information


Wyszukiwarka

Podobne podstrony:
zad4 $ LOGOlSoft Comfortiag File Edit Format View Tools Window Help^ąą*s _i Constants (=) ^ Digital
bez tytułu $ LOGO!Soft Comfortaa File Edit Format View Tools Window Help□ - & -& ■ @ x  
f13 19 ^ttsnapple - Netscape Chat File Edit Search Browser Commands Option Window Help •
f25 3 GoldWave^T°Txl File Edit Effects View Jools Options Window Help :11 51 ‘ r* j ’
gold wave File Edit Effect View Tool Options Window Help i D & i i ■O Ol * 1 B 11 • N * p m m
image003 m File Edit Setup View Window Run Help m File Edit Setup View Window Run Help - Port D §£ Q
image005 e File Edit Setup View Window Run Help ^]j9
slide0106 image119 C++Builder 4 - Projectl333 File Edit Search View Project Run Component Database J
to File Edit Search View Refactor Project Run Component lools Window Help O 2 fault Layout-1 fi ą O.
hi Adobe Reader - [prPN_EN_1996_1_116.pdf] File Edit Vievv Document Tools Window Help hi Adobe Reade
devcpp2 ^,Dev-C++ 4 - Project 1 - [Untitledl)IM* File Edit Search View Project Execute Options Jools
devcpp ^ Dev-C++ 4 File Edit Search View Project Execute Options Jools Window Help O <Q> *
31056 Install (2) Ć* tmscxe2 - C++Builder XE2 - Welcome Page File Edit Search View Refactor Project
&Delphi 5 - VisualForms50 i I ► File Edit Search View Project Run Component Database lools HelpS

więcej podobnych podstron