Yesterday I came across this article..
http://programminglanguagefaqs.blogspot.com/2009/11/why-organizations-dont-use-python.html
Well, Some points mentioned there stuck my mind...so let's discuss here why any small scale organizations do not prefer Python and go for Java or any other languages??
...
Hi, I have a chat client that continuously polls a server and fetches new messages.
From my def __init__() I have:
wx.CallAfter(self.pollServer)
Which is defined:
def pollServer(self):
t = self.updateMessages()
time.sleep(5)
self.pollServer()
Now printing the messages into the Terminal shows that it works but the GUI i...
I'm trying to create a panel, with four boxes containing some data. These four boxes should have a predefined static size. What I have so far is four boxes that is overlapping to some extent.
Any ideas?
Code:
import wx
class MyFrame(wx.Frame):
def __init__(self, *args, **kwargs):
wx.Frame.__init__(self, *args, **kwargs)
self.p...
Hi, I need to make a StaticText red, what should I use?
...
Hi, I have a timer, and need to know if any of the keys is pressed on any cycle. How do I do it?
...
I want to pop up a window directly beneath the current line (the line with the insertion cursor) in a RichTextCtrl. Is there a way to get the screen coordinate of a specific character or line in the control? There doesn't seem to be, but that's such a glaring omission I figure I must be missing something.
I have lines of varying height...
Just out of curiosity, aside from their respective sites, have any of you guys found a better resource for figuring out wxPython/wxGlade?
I figured I'd ask while I'm chewing on something else, I plan on using those tools to create a GUI for the project I've started.
...
Hi
I am writing a PAINT like application using python.I am new to python, am using wxpython for GUI. I have to create a toolbox for the (lines, circle etc etc options).Using the toolbar creation example from python wiki. But cannot understand how the addsimpletool works
import wx
class MyToolBar(wx.Frame):
def init(self, parent, ...
I was trying to get my first wxWindow application to work and I ran into following difficulty:
I create wxPanel and add a wxNotebook object to it. Then I add a page to notebook created from another wxPanel object. How do I access a value of TextCtrl from first wxPanel in the second one?
import wx
class BasicApp(wx.App):
def OnInit(se...
I am working on a simulation in Queueing Theory, within a wxPython GUI. (Project link.) What would be a good tool for visualizing the simulations? The visualization should consist of simple objects, such as clients, servers, a facility and a population. They should all be represented by simple boxes or something like that. There will be ...
Here's the general layout of my GUI:
||Title||||||||||||||||||x|
| |words|
| |blah |
| . . . . | |
| | |
| . | |
| |bttn |
|||||||||||||||||||||||||||
Basically, there are two large panes, the left which resizes according to h...
Hi I am drawing a circle using wxpython for a project.Please look through the code and tell me what I am doing wrong it's not even showing any error but not drawing the circle either. I am just getting a blank window.
import wx
class SketchFrame(wx.Frame):
def __init__(self, parent):
wx.Frame.__init__(self, parent, -1, "Sk...
I wrote a python app and it needs python2.6. I'm trying to get it to run in Backtrack 4 which is a pen-testing linux distro based on debian/ubuntu. I'v managed to install python2.6 along side of python2.5. Now I'm trying to install wxPython for 2.6 from the repos but I can't get it to install it for python2.6 rather than 2.5. Is there so...
How do I highlight a row after an update of the underlying PyGridTableBase? I can't seem to get my head around it.
I am able to create alternate row highlighting lines when the table is first drawn:
### Style the table a little.
def GetAttr(self, row, col, prop):
attr = gridlib.GridCellAttr()
if self.is_header(row):
...
I have Windows Vista 64-bit SP2. I am trying to use wxPython for GUI development with Python, because all my research pointed to that as the way to go. I have downloaded and installed the win64 wxPython. I get the same error every time.
Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "cop...
It seems that wxToolBar is not behaving like native OSX apps does.
In most native OSX apps, you can drag the window around by dragging the toolbar, where the space is not occupied by buttons. In wxWidgets apps I can only move the window by dragging the title bar. Is there some way to fix that in wx(python)?
...
I want to be able to resize an html window but keep the scroll position. This example almost works, but flickers.
To test:
- load a good sized html file using the Load Html File button
- scroll down
- resize the window.
The window keeps its same position through resizes, but it flickers horribly. The code for htmlwindow is resetting t...
Hi!
I have MyTextCtrl(wx.TextCtrl) class that always sets wx.TE_RICH style for its objects (I need colourful letters :) and support for arabic letters), but when someone pastes or drops formatted text into MyTextCtrl its style is preserved (for example fontsize=150) which is thing I don't want to happen.
Is there any way to ignore or r...
I'm having trouble toggling panes with the AUIManager.
Here's basically what I'm doing:
class foo(wx.Frame):
def __init__(self, parent, title):
wx.Frame.__init__(self,parent,wx.ID_ANY,title,size=wx.Size(800,600))
self.menubar = wx.MenuBar()
self._mgr = wx.aui.AuiManager(self)
self._mgr.AddPane(self....
Hi
I have created different shapes like circle/rect etc in my program using BufferedPaintDC on event. Now i want to save the file as I click the saveas button in the menu option. For that I am using memoryDC and save the contents as bmp file.
def Saveas(self,event):
dlg = wx.FileDialog(self, "Choose a file", self.dirname, "", "*.*...