wxpython

HyperTreeList index out of range issue?

Hi All When i tried to run the following code. I am getting error. import wx from wx.lib.agw.hypertreelist import HyperTreeList class test(wx.Frame): def __init__(self): wx.Frame.__init__(self, None, -1, title='htl', size=(955,550)) self.CenterOnScreen() self.tree = HyperTreeList(self, style = ...

How to use py2exe icon_resources in wxPython application?

I have a wxPython application I'm bundling into an exe using py2exe. I've defined an icon in the setup.py file using the following: setup( windows=[ { 'script': 'myapp.py', 'icon_resources': [(1, 'myicon.ico')] }, ], ) This works, but I'd like to be able to access that icon from my wxPy...

Escape key event problem in wxPython?

Hi All The following key event is not working. Any idea? class Frame(wx.Frame): def __init__(self): wx.Frame.__init__(self, None, -1, title='testing', size=(300,380), style= wx.MINIMIZE_BOX|wx.SYSTEM_MENU ...

Kiosk mode in wxpython?

Is there a way to create a 'kiosk mode' in wxpython under Windows (98 - 7) where the application disables you from breaking out of the app using Windows keys, alt-tab, alt-f4, and ctrl+alt+delete? ...

How can I produce student-style graphs using matplotlib?

I am experimenting with matplotlib at the moment. Some time ago I used Excel VBA code to produce images such as the one attached. You will notice it is not presented in a scientific/research style but rather as if produced by a school-student on graph paper - with three different grid-line styles. Is there a fairly straightforward way ...

Is it possible to delete/remove a wx.aui.AuiManager pane?

Hello, I want to remove a pane from the wx.aui.AuiManager. Is it possible? ...

please expain wx.grid.Grid.create()

can any one please expain me the functionality of this function wx.grid.Grid.create() i created a frame and inside that i create a grid using this function every thing is fine but while closing that frame my whole application is closing while closing i just need to distroy the frame only not the whole application thankz in advance...

How to set wxPython grid background color?

I'm working with a wxPython grid, but I cannot set the background color of it (the grid part that isn't filled with cells). I tried with grid.SetBackgroundColour, but without luck; the backcolor shown is always the default system color for windows. wx.version() -> 2.8.10.1 (msw-unicode) sys.version -> 2.5 (r25:51908, Sep 19 2006, 09:5...

How do you position a wx.MessageDialog (wxPython)?

Hi: Is there any reason why the position, pos, flag doesn't seem to work in the following example? dlg = wx.MessageDialog( parent=self, message='You must enter a URL', caption='Error', style=wx.OK | wx.ICON_ERROR | wx.STAY_ON_TOP, pos=(200,200) ) dlg.ShowModal() dlg.Destroy() The documentation is here: http://www...

Automatically adjustment of wxPython Frame Size

Hi All How to adjust the wxPython Frame Size automatically when screen resolution change? Actually, i have just written a wxPython application, currently Frame size is fixed. Due to this application/frame size is very large on some screen resolutions. So, how to resize/adjust automatically depending on the screen resolution size? Rega...

wxPython and localisation

I'd like to write a wxPython application that would run in different languages, updating itself automatically (with no need to close it and open it back) whenever I change the language. Is it possible to make a system that recognises and edits every widget that needs to be updated? ...

Display formatted text in a window using python

I make a program in wxpython which displays questions to the user and a radiobox with answers. Questions and answers should be in a database and is formatted text using some mathematics (paranthesis, root squares etc). Could you propose me what widget I should use for such a text and what could be the database? Thanks. ...

wxPython Frame disable/enable?

Hi All I have created a wx.Frame(lets call it mainFrame). This frame contains a button on it, when the button is clicked, a new frame(lets call it childFrame) is created. I want to know that how to disable the mainFrame when childFrame is created and enable the mainFrame again when childFrame distroyed/closed? Regars, ...

How to clear wxpython frame content when dragging a panel?

Hello, I have 3 panels and I want to make drags on them. The problem is that when I do a drag on one this happens: How can I refresh the frame to happear its color when the panel is no longer there? This is the code that I have to make the drag: def onMouseMove(self, event): (self.pointWidth, self.pointHeight) = event.GetPositio...

How to recovery source python code (.py) from .pyo file?

I need to convert a compiled python code (.pyo) to its source . I look in depython.net, but there is a problem. A warning; "File version older than 2.4." What should I do? Thanks. ...

Is it possible to put a wx.window (frame/panel) over a wx.MenuBar?

Hi, I want to know if it's possible to put a frame or a panel over a menubar using wxpython? Thanks in advance! ...

How can we change a wx.MenuBar background and foreground colour using wxpython?

Hello, I want to change the wxpython menubar colours. How can I do it? Thanks in advance :) ...

matplotlib: how to refresh figure.canvas

Hello, I can't understand how to refresh FigureCanvasWxAgg instance. Here is the example: import wx import matplotlib from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas from matplotlib.figure import Figure class MainFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self, None, wx.NewId(...

save data in wxRichTextCtrl

I have found only two methods (SaveFile, LoadFile) which save in a file. How in wxRichTextCtrl to save XML the data directly in a variable? ...

HyperTreeList Fix Width Column

How to make a fixed width column in HyperTreeList? So, that user can't resize it. ...