You should have experience with GUI programming or 2D-programming.
If not, it is difficult.
If not, it is difficult.
#!/usr/bin/python3 import wx # wxpython 4.x app = wx.App() window = wx.Frame(None, title = "wxPython Frame", size = (300,200)) panel = wx.Panel(window) txt = "Hello World" label = wx.StaticText(panel, label = txt, pos = (100,50)) dc = wx.ScreenDC() dc.SetFont(label.GetFont()) size = dc.GetTextExtent(txt) txtwh = "width=%d height=%d" % (size.width, size.height) label = wx.StaticText(panel, label = txtwh, pos = (100,100)) window.Show(True) app.MainLoop()