⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 embedded_sample.py

📁 Wxpython Implemented on Windows CE, Source code
💻 PY
字号:
import wx
from wx.py import shell, version

class MyPanel(wx.Panel):
    def __init__(self, parent):
        wx.Panel.__init__(self, parent, -1, style=wx.SUNKEN_BORDER)

        text = wx.StaticText(self, -1,
                            "Everything on this side of the splitter comes from Python.")
        
        intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % version.VERSION
        pycrust = shell.Shell(self, -1, introText=intro)
        #pycrust = wx.TextCtrl(self, -1, intro)

        sizer = wx.BoxSizer(wx.VERTICAL)
        sizer.Add(text, 0, wx.EXPAND|wx.ALL, 10)
        sizer.Add(pycrust, 1, wx.EXPAND|wx.BOTTOM|wx.LEFT|wx.RIGHT, 10)

        self.SetSizer(sizer)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -