Search Result

Collapse
17 results in 0.0025 seconds.
Keywords
Members
Tags
wxpython
  •  

  • How to add canvases to a sizer and refresh the parent frame?

    I am using wxPython. I need to be able to add and remove panels/canvases on demand, but I don't know how to refresh the entire parent frame (the base starting window). I tried fooling with the Full_Repaint option, but got no where. The method I am using, to add and (hopefully) refresh the frame, Add_Canvas(), starts at line 50.

    Code:
    canvas_List = [Cone_Canvas, CubeCanvas]
    
    class MainWindow(wx.Frame):
        def __init__(self,
    ...
    See more | Go to post

  • How do I bind a button action to affect a pyopengl object in a separate panel?

    The program will start and work fine until I press the Rotate button to activate the Button_EVT function. It begins to lag and when the lag drops off, the sphere still hasn't changed position.

    Code:
    from OpenGL.GLUT import *
    from OpenGL.GLU import *
    from OpenGL.GL import *
    from wx.glcanvas import GLCanvas
    import wx
     
     
    class myGLCanvas(GLCanvas):
        def __init__(self, *args, **kwargs):
    ...
    See more | Go to post

  • How to compare a wxPython class attribute inside of a function. :P

    The text_2 attribute is stored in a weird way apparently.
    When I ask for input(self.text _2), I get the following:
    <wx._controls.S taticText;proxy of <Swig Object of type 'wxStaticText *' at 0x2x37798>

    Any idea how I can test the str value against another string? Basically I'm just trying to cycle between two different labels...but I can't figure this out. :P :/

    Code:
        import wx
        import
    ...
    See more | Go to post

  • Item Checking not possible with UltimateListCtrl in ULC_VIRTUAL mode

    Following is the system and software info

    Platforms: Windows XP and OSX Lion
    Activestate Python 2.7.2
    wxPython2.9-osx-cocoa-py2.7 (for OSX)
    wxPython2.9-win32-py27 (for Windows XP)


    I am trying to create a UltimateListCtr l using ULC_VIRTUAL and ULC_REPORT mode. I would like to know how can I put a checkbox beside the first column of every row and catch the event when a user checks the box. I was able...
    See more | Go to post

  • plomon
    started a topic Sort items in UltimateListCtrl

    Sort items in UltimateListCtrl

    I want to create an ultimate list ctrl based table where the user can sort the columns by clicking on the column header. Here's the code I attempted:

    Code:
    import wx
    import wx.lib.mixins.listctrl as listmix
    from wx.lib.agw import ultimatelistctrl as ULC
    
    APPNAME='Sortable Ultimate List Ctrl'
    APPVERSION='1.0'
    MAIN_WIDTH=300
    MAIN_HEIGHT=300
     
    musicdata = {
    0 : ("Bad
    ...
    See more | Go to post

  • plomon
    started a topic Button Label change on EVT_BUTTON in wxpython!!!

    Button Label change on EVT_BUTTON in wxpython!!!

    Some system info before proceeding further:

    Platform: Mac OS X 10.7.1
    Python Version: ActiveState Python 2.7.1
    wxPython Version: wxPython2.9-osx-cocoa-py2.7

    I want the button label to be changed while performing a task

    So, here is what I did/want:

    Code:
    self.run_button=wx.Button(self.panel,ID_RUN_BUTTON,label='Install')
    self.Bind(wx.EVT_BUTTON, self.OnRun,id=ID_RUN_BUTTON)
    ...
    See more | Go to post

  • plomon
    started a topic wxMessageBox with an auto-close timer in wxPython

    wxMessageBox with an auto-close timer in wxPython

    Platform and Python installation info:

    Platforms: Windows, OS X
    Python: Active State Python 2.7
    wxPython: Version 2.9


    Here is a sample code in which I use a wxMessageBox:

    Code:
    import wx,os
    
    class Frame(wx.Frame):
        def __init__(self, parent, id, title):
            wx.Frame.__init__(self, parent, id, title, size=(100, 100),style=wx.MINIMIZE_BOX | wx.SYSTEM_MENU | wx.CAPTION
    ...
    See more | Go to post

  • plomon
    started a topic How to uninstall wxpython 2.8 from Mac OSX 10.6

    How to uninstall wxpython 2.8 from Mac OSX 10.6

    Some details of my machine and installed packages before proceeding further:

    Mac OSX version: 10.6.6
    Python version: Activestate Python 2.7.1
    wxpython version: wxpython 2.8 (uses Carbon API hence limited to 32-bit mode arch only)


    I installed wxPython2.8-osx-unicode-py2.7 from wxpython website using their .dmg installer file. This package uses the Carbon API and hence is limited to 32-bit mode...
    See more | Go to post

  • Nala Flores
    started a topic wx Python problem; attribute error

    wx Python problem; attribute error

    im try to activate a tutorial code for wxPython,
    the calculator.py.. .but it gives me the next message

    File "C:\Users\AOFU\ Desktop\A-PYTHON\calculat or.py", line 184, in <module>
    app = MyApp(0)
    File "C:\Python27\li b\site-packages\wx-2.8-msw-unicode\wx\_cor e.py", line 7978, in __init__
    self._Bootstrap App()
    File "C:\Python27\li b\site-packages\wx-2.8-msw-unicode\wx\_cor e.py",...
    See more | Go to post

  • PyGIS
    started a topic GUI programming in python

    GUI programming in python

    HI:

    i want to start learning GUI programming in python but i dont know which tools or library (tkinter ، pyqt ، WXpython) is best . which one is easy to learn ?

    please help me .
    sincerely
    See more | Go to post

  • How to add "select all" and "select none" buttons to MultiChoiceDialog in wxPython?

    Is it possible to add "select all" and "select none" buttons to MultiChoiceDial og in wxPython?
    See more | Go to post

  • how to create a button that is connected with many frames

    please correct my code using boa constructor

    ------------frame1---------------
    Code:
    #Boa:Frame:Frame1
     
    import wx
    import Frame2
    import Frame3
    
     
    def create(parent):
        return Frame1(parent)
     
    [wxID_FRAME1, wxID_FRAME1BUTTON1, wxID_FRAME1BUTTON2, wxID_FRAME1PANEL1, 
    ] = [wx.NewId() for _init_ctrls in range(4)]
    
    class Frame1(wx.Frame):
    ...
    See more | Go to post

  • askalottaqs
    started a topic tabbing between textctrl's

    tabbing between textctrl's

    in all my research everyone is saying that pressing tab by default gets u to the next textctrl, but when i try to do that, i get the error sound "ting", and it doesn't, what is a way to have the tab navigate through textctrls?

    another thing is that the cursor is not on the first textctrl by default, is there a way to set it in the Frame?

    thank you all

    T
    See more | Go to post

  • askalottaqs
    started a topic classes and wx python

    classes and wx python

    i know everyone keeps saying that one needs to be using classes and not just functions, but so far i haven't had any problems with functions aside from the fact that everyone's using them and when i see the help in any of the forums it's all in classes form,

    my question is

    im working basically with wx python, mainly doing interfaces for applications and nothing too fancy, connecting small databases and what not,
    ...
    See more | Go to post

  • Apostle
    started a topic Off topic: Inno Setup & wxPython

    Off topic: Inno Setup & wxPython

    I don't know where to post it inBytes, but since I'm used to Python forum, I hope someone will help me here. Advices of as to where I should post this are valid!

    I have made a project, compiled it with py2exe and packed fine with Inno setup. The setup installs fine and adds both desktop and start menu Icon.

    The problem is when I click the shortcuts, I get error as attached image shows "see log for more details"...
    See more | Go to post
Working...