wxpython

IPython on wxPython

走远了吗. 提交于 2019-12-23 12:02:03
问题 I have been trying to find a way to have an IPython Shell in an wx.Frame . Searching around in the library code or Google wxPython based IPython widget ipython shell wxpython haven't helped me much either. Is there any widget that IPython provides that can be used with wx, to integrate an IPython shell into my Frame ?? 回答1: According to the IPython docs, there is a wxPython frontend: http://ipython.org/ipython-doc/rel-0.10.2/html/install/install.html However, I can't really tell if that's

Is IronPython a 100% pure Python variant?

限于喜欢 提交于 2019-12-23 12:01:25
问题 I just downloaded the original Python interpreter from Python's site. I just want to learn this language but to start with, I want to write Windows-based standalone applications that are powered by any RDBMS. I want to bundle it like any typical Windows setup. I searched old posts on SO and found guys suggesting wxPython and py2exe. Apart from that few suggested IronPython since it is powered by .NET. I want to know whether IronPython is a pure variant of Python or a modified variant.

wxPython - Python GUI

偶尔善良 提交于 2019-12-23 09:30:22
踩坑wxpython - pythonGUI 这是我用的第二个 GUI,第一个是 tkinter ,因为最近装不上了所以只好学习 wxpython 。 第一个坑 error : The wx.App object must be created first! 这是因为IDLE是用Tkinker开发的,它会和wxWidget的mainloop()冲突。参考 wxPython 进行GUI 设计解决PyNoAppError: The wx.App object must be created first! 所见即所得的编辑器wxFormBuilder 直接可以向窗口添加组件,还可以设计布局。自动编译成多种语言供选择。 强烈推荐 pyinstaller 最近 pyinstaller 突然变得不好用了?我用到的库只有 pandas wxpython ,使用 pyinstaller 打包的时候弄到20多万行还没结束。准备使用py2exe发现只支持 python3.3 or later 。没办法,装个 anaconda3-5.0.1 试一试。 几个常用选项 -F, –onefile 打包成一个exe文件。 -D, –onedir 创建一个目录,包含exe文件,但会依赖很多文件(默认选项)。 -c, –console, –nowindowed 使用控制台,无界面(默认) -w, –windowed

Handling unhandled exception in GUI

喜你入骨 提交于 2019-12-23 07:27:37
问题 I am mostly writing a small tools for tech savvy people, e.g. programmers, engineers etc. As those tools are usually quick hacks improved over time I know that there are going to be unhandled exceptions and the users are not going to mind. I would like the user to be able to send me the traceback so I can examine what happened and possibly improve the application. I usually do wxPython programming but I have done some Java recently. I have hooked up the TaskDialog class to the Thread

TextCtrl providing an out of bound exception in wxPython

这一生的挚爱 提交于 2019-12-23 05:25:14
问题 I am new to WX, so I decided to make a program that will periodically write out a line of text to the screen based on an outside input. The basis of the program contains a basic window with the multiline text control covering the entire window. The only other method I have in the frame is to print out what ever the method listen_event gets as a new line for the multiline TextCtrl. Thats it, as proof the code is below: class Frame(wx.Frame): def __init__(self): wx.Frame.__init__(self, None,

how use artists with patch rectangle to move 2 retcngale in same time

亡梦爱人 提交于 2019-12-23 05:17:55
问题 i use rectangle patch in two zoom panel1 and zoom panel 2 the idea is to have to rectangle patch in to panel the two rectangle can move in the same time when i move the rectangle in zooom 1 is move in the same time and same area in the zoom panel 2 how can i use rectangle artist with matplotlib in this exemple import wx from numpy import arange, sin, pi,cos import numpy as np import matplotlib import matplotlib.pyplot as plt from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as

Record webcam video with wxpython open-Cv using control buttons?

筅森魡賤 提交于 2019-12-23 05:12:37
问题 I have managed to stream a webcam video inside a Wx-Python window using Open-CV but i want to record that video using control buttons. Let me know how to capture a webcam video while a click a button? import wx import vlc import numpy as np import time import os import user import cv2.cv class MainWindow(wx.Panel): def __init__(self, parent,capture): wx.Panel.__init__(self, parent) mainSizer = wx.BoxSizer(wx.VERTICAL) # video videoWarper = wx.StaticBox(self,size=(640,480)) videoBoxSizer = wx

WrapSize and Scrollbar : widgets not drawn at startup won't draw later

独自空忆成欢 提交于 2019-12-23 03:53:13
问题 By using the accepted solution from ScrolledPanel with vertical scrollbar only and WrapSizer, here is a way of putting some custom MyControl into WrapSizer with a vertical scrollbar : Unfortunately, the items that are not drawn at startup won't draw later, even after moving the scrollbar. Here only the first 9 buttons (among 20) are drawn : import wx import wx.lib.scrolledpanel as scrolled class MyControl(wx.PyControl): def __init__(self, parent, i): wx.PyControl.__init__(self, parent, wx.ID

Python and Interactive Zoom Plot with Matplotlib

≡放荡痞女 提交于 2019-12-23 03:53:06
问题 I am using a Matplotlib plot (with Basemap) inside of a wxPython pane. I have got the plot (US map with scatter plot of cities). I am trying to do some interactive zoom capabilities (select a box on the map and "zoom" into that area only). I have managed to get the toolbar to show, but when i click on the buttons, nothing happens. Seems like the toolbar is just there for show. Any Thoughts? Here is my code: # Set up area for plotting Basemap Plot and scatter plot self.figure = Figure(None,dpi

wxpython notebook inside boxsizer

假装没事ソ 提交于 2019-12-23 03:28:16
问题 What is wrong with this code? I am trying to place a notebook on a panel that is being controlled by a boxsizer. I am new to wxpython and can't figure out what I am doing wrong. When I run it it just makes a mess in the corner :( import wx class TestNoteBook(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title, size=(600, 500)) panel = wx.Panel(self) hsizer = wx.BoxSizer(wx.HORIZONTAL) leftpanel = wx.Panel(panel) notebook = wx.Notebook(leftpanel)