#Lots of programmers like to leave the task of project management #up to the IDE. But this can be dangerous, as many times the IDE #will get into trouble with the project management, especially as #the complexity grows.
my only need for an ide is a gui interface similar to that of vbasic forms or powerbuilder's painter. I'd be then happy if it converts the form into tk or even curses. It's a pain aligning widgets, especially if a user/customer dictates the layout. I'm still searching maybe someone has found one...
Glade might be what you are looking for... it seems to work well on Windows and Linux and once you have designed your interface and saved it you can do something like this:
···
--
require 'gtk2'
require 'libglade2'
class SignalHandler
def method_missing(method, *args)
puts "#{method}: #{args}"
end
def on_QuitMenuItem_activate(*args)
Gtk.main_quit
end
end
if $0 == __FILE__
# initialize gtk
sigmap = SignalHandler.new
Gtk.init
# instantiate the main window
glade = GladeXML.new('gladetest.glade', nil, 'gladetest')
window = glade['MainWindow']
# connect the signal handlers
window.signal_connect("destroy") { sigmap.on_QuitMenuItem_activate }
glade.signal_autoconnect_full do |source, target, signal, handler, data|
source.signal_connect(signal) { sigmap.send(handler, data) }
end
# show the main window
window.show
# start the main event loop
Gtk.main end
--
#Lots of programmers like to leave the task of project management #up to the IDE. But this can be dangerous, as many times the IDE #will get into trouble with the project management, especially as #the complexity grows.
my only need for an ide is a gui interface similar to that of vbasic forms or powerbuilder's painter. I'd be then happy if it converts the form into tk or even curses. It's a pain aligning widgets, especially if a user/customer dictates the layout. I'm still searching maybe someone has found one...
oops ... copy and paste munged the last "end" ... it should be on a line by itself... sorry!
Tim Ferrell wrote:
···
Glade might be what you are looking for... it seems to work well on Windows and Linux and once you have designed your interface and saved it you can do something like this:
--
require 'gtk2'
require 'libglade2'
class SignalHandler
def method_missing(method, *args)
puts "#{method}: #{args}"
end
def on_QuitMenuItem_activate(*args)
Gtk.main_quit
end
end
if $0 == __FILE__
# initialize gtk
sigmap = SignalHandler.new
Gtk.init
# instantiate the main window
glade = GladeXML.new('gladetest.glade', nil, 'gladetest')
window = glade['MainWindow']
# connect the signal handlers
window.signal_connect("destroy") { sigmap.on_QuitMenuItem_activate }
glade.signal_autoconnect_full do |source, target, signal, handler, data|
source.signal_connect(signal) { sigmap.send(handler, data) }
end
# show the main window
window.show
# start the main event loop
Gtk.main end
--
#Lots of programmers like to leave the task of project management #up to the IDE. But this can be dangerous, as many times the IDE #will get into trouble with the project management, especially as #the complexity grows.
my only need for an ide is a gui interface similar to that of vbasic forms or powerbuilder's painter. I'd be then happy if it converts the form into tk or even curses. It's a pain aligning widgets, especially if a user/customer dictates the layout. I'm still searching maybe someone has found one...
This is getting way off topic, but I've found that Glade might be
nifty when you're first getting started with GUI programming but you
really want to start moving towards packing all the widgets manually.
···
On 9/8/05, Tim Ferrell <Tim.Ferrell@s0nspark.com> wrote:
Glade might be what you are looking for... it seems to work well on
Windows and Linux and once you have designed your interface and saved it
you can do something like this: