Search Result

Collapse
25 results in 0.0043 seconds.
Keywords
Members
Tags
gui
  •  

  • 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

  • dnskhdka
    started a topic Making graphics appear on the desktop

    Making graphics appear on the desktop

    I am a newbie in python programming. My script needs to have a rectangle with some text appear on the desktop but I can't figure out how to do this. Can someone help?
    See more | Go to post

  • Jindra
    started a topic cleanup actions on sys.exit()

    cleanup actions on sys.exit()

    Hello,
    I wrote a GUI app in Jython (using Java Swing) which uses database. The application remains connected for its whole run time until the main window is closed (JFrame, using defaultCloseOpe ration = JFrame.EXIT_ON_ CLOSE).
    Now, when exiting, I would like to make sure I explicitly close the database connection. Is there any function, like _atexit() in C, where I could place my code?
    Thank you very much.
    See more | Go to post

  • Eric Miles
    started a topic Buttons not performing correctly
    in Java

    Buttons not performing correctly

    My Mortgage Calculator program worked fine, until I added more functions. I added new fields for the new functions and changed my calculations for a calculate button, but it does not work. The rest of the program is fine. I commented out my else if exit command, because that would close my program when I hit the calculate button.

    Code:
    import java.awt.*;
    	import java.awt.event.*;
    	import javax.swing.*;
    	import java.text.DecimalFormat;
    ...
    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

  • 2inshix
    started a topic Pass text variables to Labels in Tkinker GUI?

    Pass text variables to Labels in Tkinker GUI?

    I'm trying to put together this GUI, it's my first attempt. It's mostly a collage of code I put together from samples I found here and there.

    So, far so good, except I can't seem to be able to figure out how to pass "text variables" from an array to labels.

    #If you go to def printLabels(sel f), and def on_move(), you will see what I mean:),

    Thanks a million. (I'm just learnig to #program, sorry about...
    See more | Go to post
    Last edited by 2inshix; Dec 19 '11, 12:33 AM. Reason: Spellin/grammar/typos

  • Calling a matlab gui from python using pymatlab without allowing python to close it

    Before proceeding further, my system configuration is as follows:
    Mac OS X 10.6.6
    MATLAB 2010b
    ActiveState Python 2.7

    I have a gui built using matlab. I wrote the following python script
    to open that matlab gui using pymatlab python module:

    Code:
    from pymatlab.matlab import MatlabSession 
    session = MatlabSession() 
    session.run('cd ~/ratter/ExperPort') 
    session.run('addpath(genpath(pwd))')
    ...
    See more | Go to post

  • karimkhan
    started a topic How to add button in visual c++ gui ?
    in C

    How to add button in visual c++ gui ?

    Hi friend , I am working in one visual c++ based software , and i want to add button in that , so i am making change in .rc file , its name is cgui.rc , button button I added is not getting visible when I build the software code , Can anyone say how to add this button ? and in menu I am adding one more option which I can see in the gui after running the code , but i dont know how to do back side coding for that menu item ....

    i am...
    See more | Go to post

  • maximus tee
    started a topic How to create progress bar?

    How to create progress bar?

    hi,

    i'm using python 2.5 and am creating a GUI with a Reset button that will reset in 30s. When i click on the reset button it will show a progress bar. Pls advise.

    thanks
    maximus
    See more | Go to post

  • How to launch another program from GUI button?

    hi all,

    i wrote a simple GUI with 2 buttons. Button1 is to launch another program. Button2 is to run test. When I click Button1, it will launch another program. After launching the program, my GUI window is still waiting until i exit the program. How can the GUI window gain control after launching another program? i used os.system to launch the other program. pls help.

    thanks
    maximus
    See more | Go to post

  • Pierre Damme
    started a topic super slow GUI on split MS access database

    super slow GUI on split MS access database

    Hi,
    I have a split database (tables (1.3MB) on server and GUI (7MB) on both server and laptop).

    When opening the GUI using a vpn connection on the laptop the application loads very slowly and when i open a form (from a menu in the GUI) it takes forever to load.

    when it has loaded the form and i choose a record from a dropdown list in the form it takes forwever again to load.

    It seems like there...
    See more | Go to post

  • Alex1980
    started a topic update of elements in GUI (TKinter)

    update of elements in GUI (TKinter)

    hi,
    here's the situation: I'm trying to build a GUI for a Genetic Algorithm that has a number of elements (labels) updated every iteration of the run.

    I've tried doing it in the widget (Label) (1) and in the mainframe (2), but neither worked.

    (1)
    Code:
    Label(mainframe.update_idletasks(),textvariable=best,bg='#321000',fg='#000fff000',font=("Helvetica",x1)).grid(column=1,row=1)
    (2)
    Code:
    mainframe =
    ...
    See more | Go to post

  • urbn
    started a topic Visual studios interface menu name.

    Visual studios interface menu name.

    I've been searching for this answer for a few hours now. I even went to a local book store and looked through all their visual studio realted books.

    What is the name of the drop down menu in visual studios below the tabs of files your working on that displays the "Client objects & events" or "General" and "Decelarati ons" drop down menus.

    Is it something like the "object viewer"?...
    See more | Go to post

  • Running a process in background and making a GUI

    I need to read a log file (real-time) and select only data that I need(filtering) and make a GUI to display the data.

    I am getting stuck at the point of being able to process both the log file and the perl script simultaneously. For instance, if I invoke the process(which runs infinitely, since its real-time) in the perl script, the perl script is temporarily suspended. I want the process to run in the background and the perl script...
    See more | Go to post

  • ooneguy
    started a topic java Gui actionListener help
    in Java

    java Gui actionListener help

    I'm trying to write a java gui program that contains 3 different tabbed pane, 1 tabbed pane consists JComboBox. When i choice using JComboBox, the result will be shown because I using actionListener to create JComboBox result. What i want to do is when I choice JComboBox in one of tabbed pane, it would also show result in another tabbed pane as I have 3 tabbed pane in my program. I've been trying all the ways i know but i can't write it. Please help...
    See more | Go to post
Working...