16 Topics

Member Avatar for
Member Avatar for robinlrandall

The following Python 2.7 Calendar program works nicely with a Frame and a Panel, but when I try to change to change the Frame to an MDIParentFrame and the Panel to an MDIChildFrame (or MDIClientWindow) I cannot get it to work. I went to this because I had trouble getting …

Member Avatar for Reverend Jim
0
59
Member Avatar for giancan

Dear all, I have a window with several textctrl. I am trying to intercept the mouse click in each control, open a filedialog and set the value of the specific control with the selected file. The problem is that I would like to avoid creating hundreds of similar functions for …

Member Avatar for Ene Uran
0
212
Member Avatar for vegaseat

This code snppet uses the wx.lib.filebrowsebutton.FileBrowseButton widget to pick a file, in this case a '.wav' sound file, and plays it with the wx.Sound widget.

Member Avatar for vegaseat
1
1K
Member Avatar for giancan

Dear friends, is there a way to execute a dos command in a frame inside a wx.window GUI (and not in the usual external window)? Thanks

Member Avatar for sneekula
0
1K
Member Avatar for vegaseat

This small code example shows you how to approach the beginning concept of an very simple "IDE" for Python.

0
802
Member Avatar for jtaylor408

I want to be able to have a set of panels of vertical panels that remain the same size, but I want to have a vertical scroll bar that will allow me to scroll in the window. Right now I'm using a wx.ScrolledPanel and adding panels to that and putting …

0
172
Member Avatar for sam.tubb.10

Hello, I am newish to wxPython and I am attmpting to make a text editor Everytime it attempts the open file code it gets this error: IOError: [Errno 22] invalid mode ('r') or filename: u'' WHY!!! here is the code... import wx import os wildcard = "Text file (*.txt)|*.txt;|"\ "All …

Member Avatar for TrustyTony
0
223
Member Avatar for ganeshrnet

Friends, kindly help me how to update the progress bar in WX Widgets python while copying folder in windows... i tried searching a lot.. please do help me out.. Thanks in advance! Ganesh R

Member Avatar for bishisht
0
886
Member Avatar for giancan

Dear all, I built 2 script to manage 2 different frames (which I will then convert to exe with py2exe). Frame 1 (GG1) is like this [CODE]import wx # begin wxGlade: extracode # end wxGlade class MyFrame(wx.Frame): functions here ... if __name__ == "__main__": app = wx.PySimpleApp(0) wx.InitAllImageHandlers() GG1 = …

Member Avatar for woooee
0
311
Member Avatar for Azmah

I'm looking at getting started with [URL="http://www.wxwidgets.org/"]wxWidgets[/URL]. I currently use Dev C++ as my IDE for C++ coding. wx Widgets looks very promising and could speed up my development if used. Though what the site doesn't state (at-least none that I've found) is whether it's an IDE of its own …

Member Avatar for Azmah
0
451
Member Avatar for giancan

Hi guys, I'm having problems with wxPython. If I put in the header of my files from wxPython.wx import * it works fine, even if I see a DeprecationWarning about it. If I write import wx (as also wxformbuilder would do) I get errors like name wxPySimpleApp is not defined …

0
97
Member Avatar for HiHe

I was trying to create a simple Python GUI with a label on a frame. I can't get the label's position and size to work: [code]# a simple wxPython GUI program # showing a label with color text # however, label position and size do not work! import wx class …

Member Avatar for vegaseat
0
309
Member Avatar for inamabilis

Hi All, Been coding Python on and off for a year now, but only just started looking at wx. Got a problem in a larger project I'm working on, trying to remove all items from a GridSizer - I've created the following test code to demonstrate the problem, but to …

Member Avatar for inamabilis
0
2K
Member Avatar for mirena

Hi there, I am very new to python and wx and all that and I have a problem with my program, I'm trying to save what's been drawn on the screen,but just cant make it work. Here is the code: [CODE] import wx class MPanel(wx.Window): def __init__(self, parent): wx.Window.__init__(self, parent) …

Member Avatar for vegaseat
0
173
Member Avatar for ihatehippies

why does this fail to call any event? [CODE=python] def StartTimer(self, timer = 1): timer_data = { 1: (self.TimeKeeper, False, 50), 2: (self.InterimSearch, True, 200), 3: (self.InterimCurSearch, True, 200), 4: (self.SetOpaque, False, 50), 5: (self.DisplayPhoto, True, 200) } function, singlefire, time = timer_data[timer] timer = str(timer) # class of constants …

0
148
Member Avatar for ihatehippies

I've been using the Aspects module to trace and patch routines on the fly in my wxPython app. The problem I've run in to occurs when wx binds an event to a function. ie: an event is binded to function <function func at 0x03969A30> after aspects.with_wrap() func now becomes <function …

0
134

The End.