Paste text across multiple text boxes

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

    #1

    Paste text across multiple text boxes

    I've written a python program that analyzes some data. However, I would
    like to make it easier to input data from the user. Currently, I have
    nine text boxes arranged vertically, and the user types a number into
    each of the boxes. This can be a little tedious, so I've envisioned a
    way speed up the process.

    I would like the user to be able to copy a vertical list of data (from
    excel or notepad) and paste it into the first textbox on my program.
    When they do this, I want each number to go into its respective box
    (the first number into the first box, and so on). I'm using wx.TextCtrl
    boxes, but haven't been able to find a way to do this.

    Is there a way to intercept the pasted data so I can control how it
    goes into my text boxes? Or is there another way to make this work?

    Thanks!

  • Simon Hibbs

    #2
    Re: Paste text across multiple text boxes

    This link seems to have some relevent code.



    Simon Hibbs

    Comment

    • dpryan

      #3
      Re: Paste text across multiple text boxes

      Thanks! This will get me started.

      Simon Hibbs wrote:
      This link seems to have some relevent code.
      >

      >
      Simon Hibbs

      Comment

      Working...