RubyLit - Ruby.del.litoral!
Text View (changes)

Showing changes from revision #3 to #4: Added | Removed

UniversityEl Levelwidget EssayText TopicsView de ruby GTK reemplaza al text de la versión anterior de gtk.

Most students learn early on that being in university is a lot different from secondary school. For one, the coursework tasks are heavier and more frequently given. For another, the scope and amount of research needed to complete these tasks are greater and more comprehensive. One particular example of this significant gap is in essay writing. University essays require a more formal, in-depth, and intelligent presentation of facts and arguments. Also, typical university essay topics are formulated to test the student’s analytical skills in comprehending what exactly the topic is all about.screenshot del ejemplo

TutorsEl purposelysiguiente assignejemplo topicsmuestra whichcomo hasusarlo.



require a'gtk2'

class broaderEditor

  def scopeinitialize
      # orcreo ala generalisedventana subject.principal
    appwindow This= isGtk::Window.new(Gtk::Window::TOPLEVEL) 
    appwindow.set_title('TextView')
    appwindow.set_default_size(200,200)

    # especiallycapturo trueel forclic end-of-termen researchla papersX
    appwindow.signal_connect('destroy') where{Gtk.main_quit}

    # theun objectivecontenedor isque howprovee muchscroll avertical studenty hashorizontal
    scrollwindow understood= theGtk::ScrolledWindow.new( essentialnil, pointsnil of)

    # theel subject.widget Theque studentsnos areinteresa.
    textview then= leftGtk::TextView.new

    # tobuffer makees theirel owncomplemento interpretationque ofusa theel assignedTextView
    buffer   = topic,textview.buffer

    # pickuna outcaja thevertical criticalpara points,ordenar thenlos narrowwidget
    vbox     = itGtk::VBox.new(false)

    # downboton topara makever itel moretexto
    boton1    = concise.Gtk::Button.new("Ver Thisel hastexto")
    boton1.signal_connect( been"button_press_event", aGdk::Event::BUTTON_PRESS  ) common{ 
        print complaintbuffer.text
        print of"\n========\n" 
    }

    # universityboton studentspara who,setear havingun notexto
    boton2    = ideaGtk::Button.new("Poner ofun thetexto")
    boton2.signal_connect( real"button_press_event", intentGdk::Event::BUTTON_PRESS  ) of{ 
        buffer.text the= assigned"chau topic,<ponga argueel thatotro itscript wouldlanguaje takeacá>\n\nHola themRuby/GTK!" 
    }

    # a"empaqueto" lotlos ofwidgets
    scrollwindow.add(textview)
    vbox.pack_start(scrollwindow, timetrue)
    vbox.pack_start(boton1, tofalse)
    vbox.pack_start(boton2, finishfalse)
      appwindow.add(vbox)

      # researchingmuestro for the topic. This is often the result of a poorly understood essay topic. On the other hand, proper analysis of a given topic would result to a much easier identification of materials and information needed thus considerably cutting research time.

todo appwindow.show_all end end Gtk.init Editor.new Gtk.main