Create a message

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Amie

    Create a message

    Hi,

    I would like to know if it's possible to display a message using
    python, if so can you show me an example.
    I saw something like:" from twisted.python import log
    log.msg" in some programs but am not too sure how it works

    Or provide me with the link that has info regarding that

    Thanks
    Amie
  • James Mills

    #2
    Re: Create a message

    On Wed, Oct 22, 2008 at 8:21 PM, Amie <sthembilengidi @gmail.comwrote :
    I would like to know if it's possible to display a message using
    python, if so can you show me an example.
    I saw something like:" from twisted.python import log
    log.msg" in some programs but am not too sure how it works
    Define "message".

    Message could be:
    * a GUI related/rendered message
    * a Web-based related/rendered message
    * a simple (stdout) printed message
    * a stored log message, syslog, etc

    Simplest example:
    >>print "Hello World"
    Hello World

    cheers
    James

    --
    --
    -- "Problems are solved by method"

    Comment

    • Amie

      #3
      Re: Create a message

      On Oct 22, 12:44 pm, "James Mills" <prolo...@short circuit.net.au>
      wrote:
      On Wed, Oct 22, 2008 at 8:21 PM, Amie <sthembileng... @gmail.comwrote :
      I would like to know if it's possible to display a message using
      python, if so can you show me an example.
      I saw something like:" from twisted.python import log
      log.msg" in some programs but am not too sure how it works
      >
      Define "message".
      >
      Message could be:
       * a GUI related/rendered message
       * a Web-based related/rendered message
       * a simple (stdout) printed message
       * a stored log message, syslog, etc
      >
      Simplest example:
      >
      >print "Hello World"
      >
      Hello World
      >
      cheers
      James
      >
      --
      --
      -- "Problems are solved by method"
      for example, I wanna display a message that contains a persons age
      from the database like so: "Your age is 25". kind of like a messagebox

      Comment

      • James Mills

        #4
        Re: Create a message

        On Wed, Oct 22, 2008 at 9:23 PM, Amie <sthembilengidi @gmail.comwrote :
        for example, I wanna display a message that contains a persons age
        from the database like so: "Your age is 25". kind of like a messagebox
        Amie, you're just picking random behavioral
        examples that you've seen in the software
        world and asking how to do them in Python.

        Please go through the Python tutorial,
        after that go through a few User Interface
        related tutorials such as Tkinter, or GTK, or
        similar.

        Once you have some background and a real
        problem to solve, we'll help you. This list is
        not designed to hold your hand and teach
        you everything about computer science /
        software.

        Have a pleasant evening,

        cheers
        James

        --
        --
        -- "Problems are solved by method"

        Comment

        Working...