wxpython

wxWidgets transparent background image?

I'm attempting to create a window with a transparent PNG background with no success, how would I go about it? Setting wx.Frame.SetShape allows for non-box shapes, but transparency effects like shadows still have a background behind them. For example, the Photoshop splash screen. ...

How to add items to wx.ScrolledPanel?

I want to add dinamically already captured images in hierarchical structure ( one after one). I want to add them to wx.ScrolledPanel ScrolledPanel definition - updated self.hbox = wx.BoxSizer(wx.HORIZONTAL) #self.sizer.Add(self.hbox) self.scroll = scrolled.ScrolledPanel(self, id = -1, pos = wx.DefaultPosition, size = (500, ...

wxPython and py2app, CreateActCtx error 0x00000008 (Not enough disk space available)

I've been developing an application that uses wxPython as the GUI librar, and py2exe so that I can easily distribute it, however I have just now tested py2exe and the following error appears when the executable is launched. 12:13:08: Debug: src/helpers.cpp(140): 'CreateActCtx' failed with error 0x00000008 (Not enough disk space availabl...

Place a Button in ListCtrl - wxPython

Is is possible to place a button inside of a ListCtrl item with wxPython? Right now I have a ListCtrl that has data with a file name and size, and I want the user to be able to click a button, to download the file. If this isn't possible, is there a way to display an image in the ListCtrl, and then make it clickable so that I can bind an...

Scroll to the end (right) in wx.ScrolledPanel

I add dinamically images to wx.ScrolledPanel. I add them sizer which is inside ScrolledPanel. I want to scroll ScrollBar automatically to the end. It is possible? I've read that self.scroll.SetupScrolling(scroll_x=True, scroll_y=False, scrollToTop=False) can resolve this problem, but in my application it doesn't work. Scrolled Panel...

Are there an GUI libraries for Python that allow you to compile to an EXE (windows) and APP(Mac)?

I'm working on an application that I need to be cross-platform. I'd like to use Python for it, and am looking for GUI toolkits that make interface programming simple and easy. After a slight hunt, I found PythonCard. This looks like it fits the bill perfectly, but I'm not sure if it will be possible to compile this down to an appropri...

wxPython wxProgressDialog randomly skips

Strange problem - I'm using wxPython version 2.8 with Python version 2.6. I'm inserting thousands of records into a database and using wxProgressDialog.Update to keep up with the status of the process. The code looks like this: (keepgoing, skip) = self.frame.dialog.Update(prog, msg + ...

"no matching architecture in universal wrapper" problem in wxPython?

I am running Python 2.7 under Mac OS 10.6.4, and I just installed wxPython from the wxPython2.8-osx-unicode-2.8.11.0-universal-py2.7.dmg binary. I am getting a weird error on the import wx line in my Python scripts. FYI, I can import the wx module just fine from PyCrust. I don't really see what I have done wrong here. Could anyone please...

How come this way of ending a thread is not working?

I just came out with my noob way of ending a thread, but I don't know why it's not working. Would somebody please help me out? Here's my sample code: import wx import thread import time import threading class TestFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self, parent = None, id = -1, title = "Testing", pos=(35...

Placing a Button in UltimateListCtrl using wxPython

I'm new to Pythong and I have been trying to get a button within UltimateListCtrl. I still can't figure out what I'm doing wrong. Here is my code: try: from agw import ultimatelistctrl as ULC except ImportError: # if it's not there locally, try the wxPython lib. from wx.lib.agw import ultimatelistctrl as ULC self.table = ULC....

Why can't I change the system default python the way Apple says I can?

On this help page http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/python.1.html Apple says: CHANGING THE DEFAULT PYTHON Using % defaults write com.apple.versioner.python Version 2.5 will make version 2.5 the user default when running the both the python and pythonw commands (...

how to do a zoom in/out with wxpython

how to do a zoom in/out with wxpython? what are the very basics for this purpose? I googled this, but could not find much, thanks!! ...

Suppress wxPython GridTableBase refresh?

How can I make the code snippet below refresh when I want? For example, if I run it as it is now, the table.SetValue(0,0,'test') line will update the grid straight away. Is there anyway to change this behavior so that I can do an arbitrary amount of changes to the GridTableBase, and then ask for a refresh? If so, how can I change the co...

Is it possible to auto-resize a frame according to a grid in wxPython?

First, is it possible to do a static auto-resize of the frame according to the grid? As in, when the script is run the frame is resized according to the grid, but if the grid is resized later on the frame stays the same size. Second, is it possible to make the frame dynamically resize according to the grid? As in, the frame will resize ...

Python Software design....

I am starting to use python,more. Is there a good way to keep python disk access to a minimum. Seems to me that everytime a *.py file runs, it hits a hard disk. Is there way to avoid hitting the harddisk, and keep *.py file in memory and access it there. Would creating a small gui using Wxframe, keep code in memory, and reuse work ...

binding events with wxpython

I have the wxPyhon following code self.button1 = wx.Button(self, id=-1, label='Button1',pos=(8, 8), size=(175, 28)) self.button2 = wx.Button(self, id=-1, label='Button2',pos=(16, 8), size=(175, 28)) self.button1.Bind(wx.EVT_BUTTON, self.onButton) self.button1.Bind(wx.EVT_BUTTON, self.onButton) and I need to process the buttons on t...

HtmlWindow doesn't display page in wxpython notebook layout

I have a project set up as a notebook layout using wxpython. I am trying to create a help panel. The HtmlWindow object doesn't display the html page on the panel. No errors are displayed and a call to HtmlWindow.GetOpenedPage() returns the page name. import wx import wx.html as html class HelpPanel(wx.Panel): def __init__(self, ...

Best interface paradigm for time interval selection?

I'm working on a small project that involves selecting time intervals and then using them for my nefarious purposes (which basically boils down to making a robot voice shout things at me). However, I can't decide on a proper paradigm for choosing these intervals. The required data is as follows: Action (Text) Starting At (Time, can be...

Terminating a wxPython app cleanly

Hi, I'm working on a wxPython app which has multiple frames and a serial connection. I need to be able to exit the app cleanly, closing the serial connection as the app terminates. What is the best way to do this? Should this be handled by a subclass of wxApp? Thanks, Josh ...

Python/GAE social network / cms?

Hi, After much research, I've come up with a list of what I think might be the best way of putting together a Python based social network/cms, but have some questions about how some of these components fit together. Before I ask about the particular components, here are some of the key features of the site to be built: a modern almo...