Questions tagged [pythoncard]

PythonCard is a cross-platform GUI construction kit for building desktop applications using the Python language.

PythonCard is a cross-platform GUI construction kit for building cross-platform desktop applications on Windows, Mac OS X, and Linux. PythonCard relies on wxPython for its GUI functions. Last version of PythonCard is 0.8.2 from 2006. Development seems to have been stopped from that point.

27 questions
13
votes
3 answers

How can I pass configuration variable values into the pyodbc connect command?

I have a .ini (configuration file) where I have mentioned the server name, Database Name, UserName and Password with which I can connect my app to the MSSQL self.db = pyodbc.connect( 'driver={SQL…
Prasanth
  • 339
  • 1
  • 6
  • 19
7
votes
3 answers

How to send a value from Arduino to Python and then use that value

I am in the process of building a robot that is remote controlled using Python to send control messages via the Internet through a simple GUI. I have gotten part of my code working pretty well, the GUI and control systems, but I am stuck. I am…
3
votes
1 answer

How to access Windows on_screen keyboard accessory through Python

I am creating a touch screen project through "Python Card". To fill data in a text box, can I bring the Windows on-screen keyboard to my program instead of creating a soft keyboard myself? I am trying to get the Windows on-screen keyboard using…
shiva
  • 88
  • 1
  • 8
3
votes
2 answers

How to give Start, stop, capture and close buttons in Opencv Cam window in Python

How to give start, stop, capture, and close buttons in video capture window to start, to stop, to take snapshot, to close the window? I am using the below code to to open camera for video streaming: import cv2.cv as cv cv.NamedWindow("camera",…
PSSR
  • 471
  • 1
  • 10
  • 18
2
votes
1 answer

adding scrollbars to pythoncard application

scrollingwindow as main frame for the application is not supported yet for pythoncard. how can i add scrollbars to main frame(background)?
altunyurt
  • 2,821
  • 3
  • 38
  • 53
2
votes
1 answer

Pythoncard item setsize

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…
altunyurt
  • 2,821
  • 3
  • 38
  • 53
2
votes
2 answers

Capture a Image from a live video streaming and display the image in a static text box using python

I am using a parking camera where i need to capture a image of a Number plate from a live video streaming. I developed a python GUI and i need to capture and display the image, text of the Number plate as well in the same GUI. Could any one help me…
1
vote
1 answer

How can I handle a mouseMiddleDrag event in PythonCard?

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…
JcMaco
  • 1,258
  • 3
  • 16
  • 31
1
vote
1 answer

How do I dynamically get a list of all PythonCard components in a GUI class?

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 ), …
Jace Browning
  • 11,699
  • 10
  • 66
  • 90
1
vote
0 answers

catch text field event with command name in pythoncard

I am generating a text field component dynamically with the below code widgetDefn = {'type':'TextField', 'name':'somename', 'font': {'style': 'bold', 'faceName': u'Arial','size': 9,'foregroundColor':(0, 0, 255)}, …
PSSR
  • 471
  • 1
  • 10
  • 18
1
vote
1 answer

Python - Trying to Get My Sound File To Play On Startup of Application

I have used the following code and I am not sure why it is not working. from PythonCard import model playSound = 1 class MainWindow(model.Background): pass app = model.Application(MainWindow) app.MainLoop() if playSound == 1: s =…
1
vote
2 answers

Python wx (Python Card) logging subprocess output to window

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…
Jon W
  • 15,480
  • 6
  • 37
  • 47
0
votes
1 answer

How to set the screen resolution in pythoncard

I want to set the resolution of my application as per the resolution of the system screen its running on. i want to be on top and also in full screen covering even the taskbar as i am using windows. i want the app to open like the ATM interface, so…
Prasanth
  • 339
  • 1
  • 6
  • 19
0
votes
1 answer

How to Pass variable in pythoncard from one file to another?

This is the way i call a .py file within a folder from a .pyw file outside, i am able to do that successfully, but want to know how can i pass variable from this .pyw file to the .py file within a folder. if int(verfyUser) == int(Username): …
Prasanth
  • 339
  • 1
  • 6
  • 19
0
votes
1 answer

PythonCard - Can I launch a CustomDialog Stand Alone?

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…
Greg
  • 45,306
  • 89
  • 231
  • 297
1
2