User Profile

Collapse

Profile Sidebar

Collapse
2inshix
2inshix
Last Activity: Jan 8 '13, 08:19 PM
Joined: May 6 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Need help displaying text underneath bar on an tkinter embedded matpotlib bar graph

    I was successful on embedding a matpotlib bar graph onto tkinter, however I can seem to find a way to disply text underneat each bar. The desired result would be text displaying the content of each bar underneath, for example
    bar 1, bar 2, bar 3, bar 4, bar 5, any help would be greatly apperciated.

    Happy holidays to all the programming community!

    Code:
    #!/usr/bin/env python
    import matplotlib
    matplotlib.use('TkAgg')
    ...
    See more | Go to post

  • Ok!

    I tried it and it worked right away!

    I'm a happy man!

    Happy holidays everyone!
    See more | Go to post

    Leave a comment:


  • thanks bvdet I think I understand but I won't know for sure until I give it a shot. I'll let you know how it went!

    Cheers,

    happy holidays.
    See more | Go to post
    Last edited by 2inshix; Dec 20 '11, 04:51 AM. Reason: typo

    Leave a comment:


  • 2inshix
    started a topic Pass text variables to Labels in Tkinker GUI?

    Pass text variables to Labels in Tkinker GUI?

    I'm trying to put together this GUI, it's my first attempt. It's mostly a collage of code I put together from samples I found here and there.

    So, far so good, except I can't seem to be able to figure out how to pass "text variables" from an array to labels.

    #If you go to def printLabels(sel f), and def on_move(), you will see what I mean:),

    Thanks a million. (I'm just learnig to #program, sorry about...
    See more | Go to post
    Last edited by 2inshix; Dec 19 '11, 12:33 AM. Reason: Spellin/grammar/typos

  • thank you dwblas,
    I took me a while but I was able to find the way to handle
    japanese unicode.
    Inside a program, of course,
    We need these lines at the top of the page: (This what you were talking about in your reply)
    Code:
    # -*- coding: cp932 -*-
    
    import codecs
    Once we have that, we need to add the character "u" before every unicode string like thus:
    Code:
    u'日本語'
    ...
    See more | Go to post

    Leave a comment:


  • Hello, Oralloy,
    Yes, you're s right! That was very silly of me wasn't it! (laughs)
    That problem is solved, but there's a new issue. Once the selection is made, that selection remains persistant; meaning it won't allow a new button selection, even after a page refresh. Can you think of a quick fix just from what you see above?

    Any suggestions would be greatly appreciated.

    Cheers
    See more | Go to post

    Leave a comment:


  • 2inshix
    started a topic Need help passing a value from an HTML form.

    Need help passing a value from an HTML form.

    I have this code which imports a file depending on user's selection (3 radio buttons romaji, hiragana,kanji)
    The way it is now, checkImport() returns the last option (from handlers) no matter which button is selected. What changes Do I have to do the Javascript to activate the 3 selections? Any help will be greatly appreciated. Cheers!
    Code:
        whichlang = "English"
        def checkImport():
            if UserLogin.whichlang
    ...
    See more | Go to post

  • 2inshix
    started a topic Can someone provide some help with unicode please.

    Can someone provide some help with unicode please.

    I'm using python 2.6.5 on windows vista and for some reason I'm having trouble trying to get python to recognize unicode input.( A friend tried the exact same code on linux and it works fine)
    Code:
    >>> verb=u"とぶ"
    >>> verb[-1]==u"ぶ"
    False
    >>>

    Does anyone have any idea what's happening here?
    Isn't that supposed to yield True and not False?

    ...
    See more | Go to post
    Last edited by bvdet; May 29 '10, 04:41 PM. Reason: Add code tags

  • 2inshix
    replied to Problem trying to append data.
    Hello, bvdet,
    Thank you for all your help. Sorry about the failing error.
    A experimented and tried as many thing as I could come up with and
    eventually I was able sole the problem.
    The problem was mostly an issue with indentation.
    Now, I'm ready to start working on the next phase of the program.

    Thank so much for all your support.
    This will be the first place I go for help next time I get...
    See more | Go to post

    Leave a comment:


  • 2inshix
    replied to Problem trying to append data.
    Hello, bvdet,
    Thank you for your quick support.
    I haven't figured out how to attach a new file in order to be able to upload a more complete file.
    But I you'd be kind enough to go ahead and add the next three lines to the code, the code should run.
    Thank you so very much for all your help.
    Cheers

    exceptions = ["asuru"]
    verbList = ""
    replace: verbfile = ["no...
    See more | Go to post

    Leave a comment:


  • 2inshix
    started a topic Problem trying to append data.

    Problem trying to append data.

    Hello, I'm new to this website. I want to thank everyone here for the wonderful
    help you are providing to the community.
    I stated teaching myself programming in python only a few weeks back and
    I'm trying to add new features to a japanese verb conjugator (a program a friend wrote for me)
    . I succeeded in making a few improvements to the original code but I seem to be stucked trying to append a particular list. I'd really...
    See more | Go to post
No activity results to display
Show More
Working...