How to implement an editable wxListCtrl (for all columns)?
When I am creating wxListCtrl in report view with wxLC_EDIT_LABELS flag, only the first column of the control is editable. Is there a way to make all columns editable? ...
When I am creating wxListCtrl in report view with wxLC_EDIT_LABELS flag, only the first column of the control is editable. Is there a way to make all columns editable? ...
Hi All, We want to support localization of the static text (labels, button labels, etc) to Japanese and Chinese in wxpython. We want only static text within the GUI elements to be changed, hard coding of Japanese or Chinese characters in the label(static text fields) would do the work for us. Any help on how to pursue this would be help...
Is there a trick to sizing controls for wx.lib.CUstomTreeCtrl? I've been trying to create my own custom controls (just panels with sub-controls in them) and add them as items in my CustomTreeCtrl, but when the tree renders, it's as if the panels aren't expanded to the appropriate size. I can set the panel size manually by using SetSize...
I have created an application with python and wxpython. I would like to display a help file in pdf, ps or dvi format in GNU/Linux. Could use the distribution pdf viewer, but not so easy when you don't know which they have. Any ideas on how to solve this? ...
Hello, I'm using Python and I want to do a drag & drop interface. For example, with a large picture whose size is bigger then the screen, I want to click on it and drag it to see other parts. Something like "google maps"! In google maps if we click two times we do "zoom" but if we click one time and while pressed, we move the mouse, we...
Hello all! I am a very new/inexperienced Python programmer. I teach maths and am trying to create a GUI graph-plotting package suitable for schoolchildren. As well as plotting a graph, I would ideally like to render the equation a user enters [eg. y = (x^2)/3] in a nicely formatted style - ideally updating in real-time as the user enter...
dc.SetPen(wx.Pen(wx.BLACK, 0)) dc.SetBrush(wx.Brush("C0C0C0")) dc.DrawRectangle(50,50,50,50) This is my best attempt at drawing a 50x50, gray box with no border. However, setting the pen width to 0 doesn't seem to accomplish anything, and setting the brush only changes the fill from pure white to pure black. Here's it in the context o...
import wx class TestDraw(wx.Panel): def __init__(self,parent=None,id=-1): wx.Panel.__init__(self,parent,id) self.SetBackgroundColour("#FFFFFF") self.Bind(wx.EVT_PAINT,self.onPaint) def onPaint(self, event): event.Skip() dc=wx.PaintDC(self) dc.BeginDrawing() width=dc.GetS...
When I use IPython along with the -wthread option, it spawns a python subprocess, which appears as a Mac OS X application. My problem is that when I send commands to that application (for example plotting with matplotlib), the window is updated behind all my other windows. I would like to be able to call a python command to switch this ...
I want to incorporate DRAG feature in program where in I can drag (hand cursor) the canvas which is placed on a panel. DRAG feature will help me see a full picture if the image is out of bound on the axis or if the image is zoomed in. Currently I am using wxmpl library which is a integration of matplotlib and wxPython. but it seems like...
The wx.Cursor class automatically scales the image I give it to 32x32 and I need to use a cursor that is larger than that. On http://support.microsoft.com/kb/307213 I saw what might be the reason for this behavior Although cursors can, in theory, be any size, the system imposes a standard size that is exposed by means of the ...
I would like to create an application that has 3-4 frames (or windows) where each frame is attached/positioned to a side of the screen (like a task bar). When a frame is inactive I would like it to auto hide (just like the Windows task bar does; or the dock in OSX). When I move my mouse pointer to the position on the edge of the screen w...
I want to define several plugins. They all inherit from the superclass Plugin. Each plugin consists on a wx.Panel that have a more specific method called "draw". How can I define a class as a Panel and afterwards call that class in my frame? I've tried like this: class Panel(wx.Panel): def __init__(self, parent): wx.Panel...
hello do you guys have any idea how to edit the the labels in the second column in a wx.ListCtrl here is the code that i used to create that list .. Note that the first column is the only editable one . how can i make the other one editable too? self.lCUsers=wx.ListCtrl(self,style=wx.LC_EDIT_LABELS | wx.LC_REPORT |wx.LC_VRULES | wx....
Hello, this code: import wx app = None class Plugin(wx.Panel): def __init__(self, parent, *args, **kwargs): wx.Panel.__init__(self, parent, *args, **kwargs) self.SetBackgroundColour((11, 11, 11)) self.name = "plugin" self.Bind(wx.EVT_ENTER_WINDOW, self.onMouseOver) self.Bind(wx.EVT_LEAVE_W...
What would you recommend in terms of removing controls from a wx.Panel ? I have a list of dicts of controls, something like: [ 'cb': wx.CheckBox, 'label': wx.StaticText, 'input': wx.TextCtrl ] and I am trying to remove them when something happens so I can add new ones. The way I do it is: # remove previous controls for c in s...
Greetings all, I have a wxPython project (created with wxFormBuilder) that contains two panels, each of which contain a wxListCtrl. When loading the list control, each can have different columns displayed. Since the lists are contained in the panels, they both have the same ID, and the same routine is for both the list's populate rout...
I'm using wxStyledTextCtrl from wxPython, a wrapper around the Scintilla component. Is there any way to get alternate row coloring on it (odd rows in one background color and even rows in another color)? I'm using the builtin python styler to highlight keywords. ...
Hello, I have this superclass: import wx class Plugin(wx.Panel): def __init__(self, parent, *args, **kwargs): wx.Panel.__init__(self, parent, *args, **kwargs) self.colorOver = ((89,89,89)) self.colorLeave = ((110,110,110)) self.SetBackgroundColour(self.colorLeave) self.SetForegroundColour(se...
Hello, I have this code: import wx class Plugin(wx.Panel): def __init__(self, parent, *args, **kwargs): panel = wx.Panel.__init__(self, parent, *args, **kwargs) self.colorOver = ((89,89,89)) self.colorLeave = ((110,110,110)) self.colorFont = ((131,131,131)) self.SetBackgroundColour(self.colo...