hello .
im doing a software that paints over images and save them ( for commenting propose ) .
i used the code below to display image to be drown upon.
the problem is:
how can i zoom in and out ? .
or should i use another way to display that image ?
bitmap=wx.bitmap(path,wx.BITMAP_TYPE_ANY)
buffer =wx.EmptyBitmap(500,500,32)
dc = wx....
I'm designing an application that I want to run in the background. There isn't any user interaction necessary, so I want the app to run invisibly save for a systray icon. I want that icon to have a menu that just opens the config/help files in notepad. Could someone point me in the right direction or provide an example?
...
I'm trying to make a cherrypy application with a wxpython ui. The problem is both libraries use closed loop event handlers. Is there a way for this to work? If I have the wx ui start cherrypy is that going to lock up the ui?
...
I am facing a problem in my code given below. I have 2 panels Image Panel (that covers 70% frame's width) and control panel (that covers remaining 30% frame's width). I add these panel into the horizontal box sizer but both the panels start from left edge of the frame i.e. they overlap instead of of being adjacent. Please run the code gi...
I am creating a AuiMDIParent frame and inside that parent frame I have a AuiMDIChild Frame. Inside the child frame I have a panel which displays an image. My problem is that when I run my code (given below) I get the desired result, but when I try to close the main window that is the parent frame, nothing happens. Then when I close the c...
I have one frame where one TextCtrl and a button. I would like to enter a value in that TextCTrl and to be displayed in another frame TextCTrl and use that value for computation in that new frame as well. Any idea would be appreciated.
...
hello
I need to draw over image (to comment over it) in a scrolled panel. I'm having troubles with it since it doesn't behave right when I zoom it in or out. it stops drawing , and then it shows it after a while in a wrong place. right in the upper left corner of the window. and doesn't draw lines correctly .
below is the code for the (o...
I cannot seem to grasp how I would get the strings from a text Ctrl box. I am very new to this, so any help is greatly appricated. Here is the practic code:
import wx
class citPanel(wx.Panel):
def __init__(self, parent, id):
wx.Panel.__init__(self, parent, id)
wx.StaticText(self, -1, "Choose put you would like:"...
Have been wondering about this for days now:
I have a basic wxpython program like this:
from MyModule import *
class Form(wx.Panel):
def __init__(self, parent, id):
self.gauge = wx.Gauge(...)
...
def ButtonClick(self, event):
proc = LongProcess()
while (LongProcess):
self.gauge.SetValue(LongProcess.status)
...
I have a list of file locations stored as strings. I want to be able to open a separate window for all of the different strings. What would be the best way to do that? Essentially, You click a button, the strings are constructed and they are left in a list. When I was prototyping, I built a small program to display the contents of one st...
Whenever I handle EVT_PAINT event by binding it to a function some problem occures the frame/window opens up but it cannot be closed when I click on the close option on the top-right corner of the frame.
Can any one tell me what can be the reason for this ??? Apart form that there is a lot of flicker that occures.
The purpose of the cod...
Hello my StackOverflow friends. I have been doing wxPython tutorials and reading the documentation, so far I like it. I wanted to make a simple app first. What this app would do is send a command to a micro controller to turn a relay on or off.
I have a global variable to get the COM port to be used (Instead of hardcoding COM1 in for...
Okay, I have an application written with cherrypy, and I want to build a wxpython gui for it. The problem is that both modules use a close loop for event handling, which (I assume) means while one is running the other will be locked.
I asked for some advice and it was suggested that I merge the two event loops rather than using the stoc...
I have a little program that goes to news aggregater's, gets the hrefs, and returns in a window. I want to have multiple windows open if multiple sites are choosen, right now, it will only go to the first one in a list, and completes perfectly. I assume I am not passing the the contents of the list properly to the next step in my program...
hello
what is the easiest way to drag an image ( or text) in a wx window ?
i need steps or a small example on how to do that.
thanx in advance
...
hai guyz
I need to create a login window
for that window i need a title bar for dragging but it should not be a resized
I need a fixed size for this window
...
Hello, I want to create a dynamic image with python.
There are three panels in the frame, title panel, image panel, and information panel. The image changes dynamically in the image panel. I use the OnTimer to update the image. There are two OnTimer, one in image panel, and the other in main frame. The OnTimer() in main frame will call t...
I want to draw two plots describing the color distribution of the dynamic image. I tried to build all these three share the same axes but failed. And the plot flashes not displays continuously. Thanks.
import wx
import sys, time, os, gc
import wx.lib.colourselect as cs
import matplotlib.cm as cm
import numpy as npy
import matplotlib.py...
I don't know if this is a stupid question, but is there any way to not show focus in wxPython? For example, I built a simple GUI with a few buttons and I don't want the dotted rectangle to show up on the button I have just clicked.
If I remember correctly in Excel VBA you could just set TakeFocusOnClick tag to False. What would be the ...
Hey, I have a wxpython frame object with a status bar. I can do self.SetStatusText() without any trouble, but when I do self.GetStatusText() I get this error:
Traceback (most recent call last):
File
"D:\python\code\test.pyw",
line 87, in <module>
frame = mainframe() File "D:\python\code\test.pyw",
line 40, in __init__
...