Following this tutorial on WxPython, I've noticed that in the Find/Replace Dialog example there are extra panels where it doesn't seem like they're actually doing anything. In fact, they seem to mess up even more the layout (though that is probably some mistake I made somewhere) For example, the tutorial has this code:
panel = wx.Panel(...
Hey guys, sorry but this is going to be a big one.. ;)
I'm running into an annoying little snag right now. I'm creating an RSS-style app for work which will be placed on some large LCD displays across the office. The basic concept is to have a client/server setup where the user would use a custom editor to create the individual articles...
I have a wxPython window. How can I check its event handler table? (i.e. which handler is handling each event.)
...
hello
I'm trying to make a paint tool in wxpython. and i couldn't find a way to make an ( Eraser ) . how can i make an eraser tool - just like the one in windows paint - in wxpython ?
please help .
the idea or small code sample would be very helpful
thanks in advance
...
I've written this small app that draws lines between two points selected by the user and it works but how do I keep the lines I draw from disappearing whenever the window is minimized or gets covered by another open window?
class SimpleDraw(wx.Frame):
def __init__(self, parent, id, title, size=(640, 480)):
self.points = []
wx....
while i am creating each child frame it is visible as tabs in parent frame
i need each child frame has a title bar minimize button and close button
how can i achive it?
also
I need to check whether a child window is already exists or not
to avoid duplicate windows
thankz in advance
...
Hi,
When I run this code and focus on choice it is raise a error. I close
this message but it is come back again. I want to see only one time
this message. How can i do this? What is error in my code ?
Note:
I'm sorry for my English. I know it isn't good.
#! -*- coding:utf-8 -*-
import wx
class MyPanel(wx.Panel):
def __init__(self,...
I have two frames one parent and child.
the parent will invoke the child.
The program should not allow the user to access the parent until the user closes the child
How can i achive it?
Need a solution without hiding the parent
...
I am attempting to create my first OS-level GUI using wxPython. I have the book wxPython in Action and have looked at the code demos. I have no experience with event-driven programming (aside from some Javascript), sizers, and all of the typical GUI elements. The book is organized a little strangely and assumes I know far more about O...
I just completed a program that should (hopefully) play a GUI Tetris program. I've cleaned up all the syntax errors, but now when I double-click, or go through the Command Prompt to run the program a DOS window pops up for less than a second and disappears without ever running the program.
What's going on?
Heres a link to the code at...
Hi all,
I have a Linux-only wxPython application with a wxFrame that acts as a menu/toolbar, it can open up new windows that are independent of the toolbar itself.
Since the user can move any of these windows to any virtual workspace, I'm looking for a way to move the toolbar to the current workspace whenever the user activates a window....
I just downloaded wxPython, and was running some of the sample programs from here. However, on every line that uses a variable from wx.*, I get a "Undefined variable from import error"
For example, the following program generates five errors on lines 1,4,8, and two on line 5:
import wx
class MyFrame(wx.Frame):
""" We simply derive ...
What editors or IDEs offer decent autocompletion for wxPython on Windows or Linux? Are there any? I tried several and support is either non-existant or limited.
...
If I bind it in the following way:
wx.grid.EVT_GRID_CELL_CHANGE(self.mygrid, self.on_cell_change)
...
I currently have a dual-monitor setup with Eclipse on monitor 2. When I run the code that launches the wxPython GUI, I would like for this GUI to appear on monitor 1. Currently, the GUI consistently appears on monitor 2, covering Eclipse, and I have to drag it to monitor 1 every time. Is there a solution to this problem -- either a confi...
I am trying to make a subclass of wx.StaticText that has no background. I tried setting the background's alpha component with SetBackgroundColor, or using SetTransparent on various objects with no luck, but maybe it is only because I am a noobie :)
Anyway, I ended up subclassing wx.StaticText, modifying the OnPaint method so that no bac...
I currently have a GUI built in wxPython with several sections, one of which displays a .png image of a plot:
self.plot = wx.BitmapButton(self.pane_system, -1, wx.Bitmap("/home/myname/projects/newton/plot/src/graph.png", wx.BITMAP_TYPE_ANY))
In another part of the GUI, there is a place where I can edit parameters. The current setup is...
I am trying to get a bitmap of what my dc draws, but when I convert it to Image I get
File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_gdi.py", line 618, in ConvertToImage
return _gdi_.Bitmap_ConvertToImage(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "bmp.Ok()" failed at ..\..\src\msw\dib.cpp(148) in wxDIB:...
Here is an example program that illustrates my problem. The program starts a wxPython application and starts a SimpleXMLRPCServer in a thread. This all works fine. My problem is that I can't shut down the SimpleXMLRPCServer thread because it is blocked on the handle_request() call. I am developing on a Windows XP machine (I don't kno...
hello friends,
I need to validate the textboxes with wx.Textvalidator.
Any please help me to do this?
How can i use wx.FILTER_ALPHA with validators and if the user is giving a wrong input how can i give them a message?
i need to validate all the inputs when clicking on the save button?
can any one provide me a sample code for this?
...