Below is the base class of my pythoncard application
class MyBackground(model.Background):
def on_initialize(self, event):
# if you have any initialization
# including sizer setup, do it here
self.setLayout()
def setLayout(self):
sizer1 = wx.BoxSizer(wx.VERTICAL) # main sizer
for item...
scrollingwindow as main frame for the application is not supported yet for pythoncard. how can i add scrollbars to main frame(background)?
...
I would like to use the middle mouse button to drag an image in an application written in Python and using PythonCard/wxPython for the GUI.
The latest version of PythonCard only implements a "left mouse button drag" event and I am trying to modify PythonCard to handle a "middle mouse button drag" as well.
Here is the relevant code from...
How do I change the mouse cursor to indicate a waiting state using Python and PythonCard?
I didn't see anything in the documentation.
...
I want to do some validation whenever the value of a textfield changes. I don't see an on change event mentioned in the documentation though.
...
I have a CustomDialog I made to let the user configure settings. Normally I want this to be launched from a menu item within the main application which works fine.
But during the install, I want to launch just the dialog to let the user configure the settings. Is there a way I can have both?
...
There are similar questions to this one, but I'd like to see a clarified answer. I'm building a simple GUI with PythonCard to wrap a command line process. Specifically, it's a wrapper for a series of ANT Tasks and other custom operations so non-devs can use it.
I'd like to redirect the output of the subprocess to a TextArea in the windo...
Hi
I have created a textarea in my python project using Pythoncard
The problem is, I don't know how to call it in my project to change the text. It's called myTextArea.
Thanks
...
I'm working on a python application and have chosen to build the gui with PythonCard. I have need to have the user select a file to open, and in the context, selecting more than 1 file doesn't make sense. I can successfully create a file dioalog with
dialog.fileDialog(self, 'Open Input File', '', '')
And I would imagine I need to us...
so heres whats up. I'm making a little program for myself that 1)takes a name of a row from a drop down box and makes a query with it and 2) displays query results into a multi-column list.
i have the gui setup i need to sript the drop box with the query names and then have the results go into the list i set up in the gui
heres the code...
Here is a sample resource file for PythonCard:
{ 'application':{ 'type':'Application',
'name':'Test Sounds',
'backgrounds':
[
{ 'type':'Background',
'name':'Test Sounds',
'title':'Test Sounds',
'position':( 5, 5 ),
'size':( 300, 200 ),
'components':
[
{ 'type':'TextField', 'name':'fldFile...