代码改变世界

python浮窗

2018-07-27 21:58  muamaker  阅读(1363)  评论(0编辑  收藏  举报
import wx;
app = wx.App();
win = wx.Frame(None,title="老穆视频",pos=(900,20),size=(300,60),style=wx.STAY_ON_TOP)
win.Show();

#loadButton = wx.Button(win,label='Open',pos=(255,5),size=(80,25));

#saveButton = wx.Button(win,label='Save',pos=(315,5),size=(80,25));


#filename = wx.TextCtrl(win,pos=(5,5),size=(300,25));
richText = wx.TextCtrl(win,value="本视频由老穆工作室提供,版权所有。仿冒必究!",pos=(0,0),size=(300,60),style=wx.TE_MULTILINE | wx.HSCROLL);

richText.SetInsertionPoint(0)
 #设置richText控件的文本样式
richText.SetStyle(2,6,wx.TextAttr("white","black"))
points=richText.GetFont().GetPointSize()

app.MainLoop();