超级网迷

超级网迷+ 电脑迷+ 音乐迷
个人资料
博文
个人经验呵,与大家分享:-)
如果要选中一个单词、段落或者任意篇幅的文字,传统的方法是,从开始处按住鼠标左键,拖动鼠标一直到结束的地方再抬起。如果篇幅太长,手很累有木有?下面说说我的办法:【选中单词】鼠标双击英文单词,单词选中了有木有?如果是中文的话,该办法只能选中一个字。【选中任意篇幅】从开始处单击一下鼠标左键,按下SHIFT键,再到结束[阅读全文]
阅读 ()评论 (0)
一直在找这类工具,今天终于找到了MPRESS:
http://www.matcode.com/mpress.htm
试了试,感觉很好用!
2015.06.25[阅读全文]
阅读 ()评论 (0)
比如,想删除文件sample.txt的4和6行之间的内容,保存为newtxt.txt,可以这样:
解法1)sed'4,6d'sample.txt>newtxt.txt
[注:如果是windows环境,请安装GitBashforwindows]
解法2)用UltraEdit打开文件sample.txt,创建并运行宏:
ColumnModeOff
HexOff
GotoLine41
Loop3
SelectLine
DeleteLine
EndLoop
最后保存为newtxt.txt。
解法3)用python:
withopen("n:\\deskt...[阅读全文]
阅读 ()评论 (0)
(2015-02-05 07:10:36)
说到Office自动化,就避免不了与组件Microsoft.Office.Interop打交道。
这个链接总结得很全:
http://www.bettersolutions.com/csharp/CVN390/QR544112423.htm
2015.02.05[阅读全文]
阅读 ()评论 (0)
具体步骤就是:
首先,添加一个manifest文件到.NET项目。添加新项目>选“ApplicationManifestFile”。
或者,直接创建一个空白的文件“app.manifest”。 其次,按如下修改它:
===============================================
requestedExecutionLevellevel="requireAdministrator"uiAccess="false"
===============================================
详见链接...[阅读全文]
阅读 ()评论 (0)
MultiplekeyeventcombinationSolution[阅读全文]
阅读 ()评论 (0)
Thebuilt-inversionwithRedHat6.2ispython2.6.6.OntopoftheOS,Iinstalledpython2.7.3.However,thenewlyinstalledversionhasanissue:Thepythoninterpretershelldoesnotsupportrecallofthelastcommand.Thefollowingarethestepstofixit:
1)Inyour~/.bashrc,addvariable"PYTHONSTARTUP":
exportPYTHONSTARTUP=$HOME/.pythonstartup
2)Putyourpythoncodein$HOME/.pythonstartup,like:
importrlcompleter
...[阅读全文]
阅读 ()评论 (0)


默认情况下,按Tab或者Shift+Tab键时会自动Focus到该滑动条上。如何才能禁止它呢?
下面的方法值得一试:
1)首先初始化UI时:
self.m_slider.Bind(wx.EVT_SET_FOCUS,self.onFocus)
2)在处理该事件时:
defonFocus(self,event):
#print"slideronfocus"
self.m_nextButton.SetFocus()
event.Skip()
那个m_nextButton是希望Focus的下一个control。
【结语】还是希望能有一个...[阅读全文]
阅读 ()评论 (0)
~~~~~~~~~~~Step1:wxWidgets~~~~~~~~~~~~~~~~
1)DownloadsourcearchiveofwxWidget3.0.1(wxWidgets-3.0.1.tar.bz2,size19.1MB)fromsourceforge.net
https://sourceforge.net/projects/wxwindows/files/3.0.1/wxWidgets-3.0.1.tar.bz2
orfromhttp://www.wxwidgets.org/downloads/
Toexpandtarball,use"tar-xvf"
2)Followtheguidetocompileandinstall:
http://wiki.wxwidgets.org/Compiling_and_ge...[阅读全文]
阅读 ()评论 (0)
##########Myexamplepythonscript################################
##Purpose:ToshowhowtowriteStringIOobjecttoanimagefile
##Date:2014-06-22
###############################################################
fromPILimportImage
fromStringIOimportStringIO
#Readsourceimage
im=Image.open("n:\\desktop\\s.png")
#Initiateabufferobject(empty)
fil=StringIO()
#Savet...[阅读全文]
阅读 ()评论 (0)
[1]
[2]
[3]
[4]
[5]
[>>]
[首页]
[尾页]