I have a wxPython program where I want to be able to drag groups of controls around to reorder them. Each group of controls is on a panel, and I want the panel object to handle the drag-and-drop.
Currently it works if you click and drag on the panel itself, but it doesn't work if you click on any control inside the panel. This is beca...
I'm doing a little wxPython work today and I've got this piece of code (I've stripped out the irrelevant parts):
def CreateRowOne(self, pan):
hbox1 = wx.BoxSizer(wx.HORIZONTAL)
hbox1.Add(wx.Button(pan, -1, "250 Words"), 1, wx.EXPAND | wx.ALL)
hbox1.Add(wx.Button(pan, -1, "500 Words"), 1, wx.EX...
I can't use wx.ProgressDialog because I need to add extra contents to the dialog box (a pause button and information about what is currently being processed). Is there a control for just the progress bar that I can use in my own dialog box?
I could of course draw something simple myself, but since the program needs to run on Mac OS X, ...
I'm having trouble figuring out how to get the sizers in wxPython to work the way I want them to (aside: am I the only one who thinks that wxPython is poorly documented?). I've got 4 buttons and a textctrl that I want arranged like so:
==============================================
|WINDOW TITLE _ [] X|
|=======...
I need to add httpd support to this sample wxpython code.
It parses the url and display different images.
What's the easiest way to do this?
import wx
a = wx.PySimpleApp()
wximg = wx.Image('w.png',wx.BITMAP_TYPE_PNG)
wxbmp=wximg.ConvertToBitmap()
f = wx.Frame(None, -1, "Show JPEG demo")
f.SetSize( wxbmp.GetSize() )
wx.StaticBitmap(f,-...
//if I use BoxSizer instead of StaticBoxSizer, the button is clickable.
//if there is a radio button under StaticBoxSizer, it is clickable,
//but the button is not
row1 = wx.StaticBoxSizer(wx.StaticBox(panel, -1, 'this is row one'), orient=wx.HORIZONTAL)
row1.Add(label1,0,wx.TOP | wx.RIGHT,7)
row1.Add(self.fileCtrl)
row2 = wx.BoxSizer(wx...
Hi all!
Is there a way to set the "sticky" bit for a frame/window, with wxPython?
(wxPython 2.8.9.1 under Ubuntu Jaunty)
...
Is there an opensource library/package available that we could use to parse an xHTML/css file into wxPython layout instructions (inside a larger python program)? For the Pythics project, we need a better parser than the one written by our primary programmer, but his attempts to improve it are both making things better (stops ignoring CSS...
I'm trying to pre-populate a wxPython DatePicker with a value using the following code:
month, day, year = runData[2][0:8].split('/')
displayDate = wx.DateTimeFromDMY(int(day), int(month) - 1, int(year))
self.datePicker.SetValue(displayDate)
Here are the printed values:
runData[2] = 12/16/09 00:00
month, day, year = 12 16 09
display...
I'm building an app that uses global shortcut keys (using python-keybinder), but there's a problem. The frame pops up and raises properly but doesn't have focus. I have to click on frame.
After I press my keyboard shortcut my frame appears, but it is not focused. I can see that the frame I was focused on previously (e.g. my Firefox fra...
I am on Windows7, using Python 2.6 and wxPython 2.8.10.1. I am trying to get this Open File dialog to work but am running into a weird error. This looks like a valid wildcard string to me, but whenever I choose a file and click 'Ok' on the File Dialog, I get this:
Traceback (most recent call last):
File "D:\Projects\python\wxTest.py",...
Hi, I'm starting to learn both Python and wxPython and as part of the app I'm doing, I need to have a simple browser on the left pane of my app. I'm wondering how do I do it? Or at least point me to the right direction that'll help me more on how to do one. Thanks in advance!
EDIT:
a sort of side question, how much of wxPython do I need...
Is it better to do it all at once? I'm very new to wxPython and I'm thinking it would be better to write the program in a way familiar to me, then apply the wxPython gui to it after I'm satisfied with the overall design of the app. Any advice?
...
Hi everyone!
I have a wxPython application that needs to know when a certain file gets deleted, but I'd like to do it without having to use a "polling" technique.. Since this is a Linux-only app, I thought I could use GIO, but it looks like it needs a call to gtk.main() and I can't do that because that'd stop the execution flow on the wx...
I'm trying to build a level editor for a game I'm working on. It pulls data from a flat file and then based on a byte-by-byte search it'll assemble a grid from pre-set tiles. This part of the app I should have no issues with. The problem is that my test version of the editor which just loads a 16x16 grid of test tiles from 00 to FF is lo...
I've been trying to learn wxpython and I see this id when creating widgets like:
menubar = wx.MenuBar()
file = wx.Menu()
file.Append(-1, 'Quit', 'Quit application')
menubar.Append(file, '&File')
I've read something that says when it is set to -1, its automatically generated but what's the real use of id and how will it be useful to th...
How do I add data to an item in a wxlistbox control?
Lets say I have a record of items, I wanna add their id from the database as the data of the item:
Label Data
--------------
Shoes 1
Watch 2
Bags 3
...
I am very new to wxPython and facing a problem as given below.
I need to have 2 panels horizontaly inside a frame.
As of now I can put 2 panels in the frame using a box sizer. In one panel I have an image displayed and in other panel I have some controls like text ctrl or check box and stuff.
But when I resize the frame, the panels ge...
I am trying to get either the strings checked or the integers from a check list. I cannot seem to get it anywhere. In the code below, you'll see a bunch of un-commented code, those are just different ways I've tried. I thought I would leave them in case any one's suggestions have to do with it. I am very new to GUI-programming and wx. Th...
hello
first of all .. sorry if my english was bad. its my 3rd language
im working on a paint software that draw over images and save them again ( for commenting propose ) i use pile and wxpython.
but im still having problems with some features ..
what is the ideal way to make the undo option ?
another question .. when the user scal...