Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #205804

Re: advice sought for program with GUI

From "Thomas Schmitt" <scdbackup@gmx.net>
Newsgroups linux.debian.user
Subject Re: advice sought for program with GUI
Date 2019-02-28 10:20 +0100
Message-ID <xwq1b-2sa-3@gated-at.bofh.it> (permalink)
References <xwp58-1Tg-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

mick crane wrote:
> I've done pieces of simple calculations on 2D images in the past but when I
> go back and look at them think " now what does that do and what did I type
> to make it work".
> I'm thinking that if I do something now I should make a little GUI with
> buttons to click on that are self explanatory.

If there is already a program with full functionality but complicated
user interface, then i'd consider Tcl/Tk for the graphical frontend.

Tcl is not the most comfortable programming language, but Tk is about
the most easy GUI definition language that i know:
------------------------------------------------------------------------
#!/usr/bin/wish

proc say_test {} {
  set echo_result [exec /bin/echo "TEST"]
  puts "Output of external program: $echo_result"
}

proc end_program {} {
  puts "Ending"
  exit 0
}

frame .test_frame

label .head_line -text "--- Headline ---"
pack .head_line -in .test_frame

button .test_button -text "Test" -command "say_test"
pack .test_button -in .test_frame

button .end_button -text "End" -command "end_program"
pack .end_button -in .test_frame

pack .test_frame
------------------------------------------------------------------------

Have a nice day :)

Thomas

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

advice sought for program with GUI mick crane <mick.crane@gmail.com> - 2019-02-28 09:20 +0100
  Re: advice sought for program with GUI <tomas@tuxteam.de> - 2019-02-28 09:50 +0100
  Re: advice sought for program with GUI Curt <curty@free.fr> - 2019-02-28 10:10 +0100
    Re: advice sought for program with GUI Brian <ad44@cityscape.co.uk> - 2019-02-28 10:50 +0100
      Re: advice sought for program with GUI Curt <curty@free.fr> - 2019-02-28 11:30 +0100
        Re: advice sought for program with GUI Brian <ad44@cityscape.co.uk> - 2019-02-28 12:50 +0100
  Re: advice sought for program with GUI <tomas@tuxteam.de> - 2019-02-28 10:20 +0100
    Re: advice sought for program with GUI "Thomas Schmitt" <scdbackup@gmx.net> - 2019-02-28 12:50 +0100
      Re: advice sought for program with GUI <tomas@tuxteam.de> - 2019-02-28 13:10 +0100
  Re: advice sought for program with GUI "Thomas Schmitt" <scdbackup@gmx.net> - 2019-02-28 10:20 +0100

csiph-web