text alignment

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

    text alignment

    Hi every one. What is the similar python WX style property for CSS
    text-align?

    I need this item text to start from the right direction:

    aaa= html.HtmlWindow (self, -1, style=wx.SIMPLE _BORDER, size=(250, 60))
    aaa.LoadPage('. ./../aa.html')


    Thanks!
  • Gandalf

    #2
    Re: text alignment

    On Jun 17, 6:43 pm, Gandalf <goldn...@gmail .comwrote:
    Hi every one. What is the similar python WX style property for CSS
    text-align?
    >
    I need this item text to start from the right direction:
    >
    aaa= html.HtmlWindow (self, -1, style=wx.SIMPLE _BORDER, size=(250, 60))
            aaa.LoadPage('. ./../aa.html')
    >
    Thanks!
    *right to the left direction...

    And I'm using pythin 2.5 on XP (I forget to mention...)

    Comment

    • Mike Driscoll

      #3
      Re: text alignment

      On Jun 17, 11:45 am, Gandalf <goldn...@gmail .comwrote:
      On Jun 17, 6:43 pm, Gandalf <goldn...@gmail .comwrote:
      >
      Hi every one. What is the similar python WX style property for CSS
      text-align?
      >
      I need this item text to start from the right direction:
      >
      aaa= html.HtmlWindow (self, -1, style=wx.SIMPLE _BORDER, size=(250, 60))
              aaa.LoadPage('. ./../aa.html')
      >
      Thanks!
      >
      *right to the left direction...
      >
      And I'm using pythin 2.5 on XP (I forget to mention...)

      The HtmlWindow widget can only display simple html. So, while you
      cannot use CSS, you should be able to use the simple html alignment
      directives. Check out the following site for pointers:



      If you want to be able to use CSS and javascript, you'll want to use
      the ActiveX_IEHtmlW indow (wx.lib.iewin) widget instead as it embeds
      Internet Explorer.

      Mike

      Comment

      • Gandalf

        #4
        Re: text alignment

        On Jun 17, 7:49 pm, Mike Driscoll <kyoso...@gmail .comwrote:
        On Jun 17, 11:45 am, Gandalf <goldn...@gmail .comwrote:
        >
        On Jun 17, 6:43 pm, Gandalf <goldn...@gmail .comwrote:
        >
        Hi every one. What is the similar python WX style property for CSS
        >text-align?
        >
        I need this item text to start from the right direction:
        >
        aaa= html.HtmlWindow (self, -1, style=wx.SIMPLE _BORDER, size=(250, 60))
                aaa.LoadPage('. ./../aa.html')
        >
        Thanks!
        >
        *right to the left direction...
        >
        And I'm using pythin 2.5 on XP (I forget to mention...)
        >
        The HtmlWindow widget can only display simple html. So, while you
        cannot use CSS, you should be able to use the simple html alignment
        directives. Check out the following site for pointers:
        >

        >
        If you want to be able to use CSS and javascript, you'll want to use
        the ActiveX_IEHtmlW indow (wx.lib.iewin) widget instead as it embeds
        Internet Explorer.
        >
        Mike
        well thanks it seems useful...
        My question is about general items in WX and how to position them
        inside an element without using CSS. It's only coincidence My item is
        HtmlWindow

        Comment

        • Gandalf

          #5
          Re: text alignment

          since you brought up this issue, please tell me where can I fine
          menual for this library?
          can i generate dynamic GUI from it?
          If not, Is there any way to generate dynamic GUI (one that can change
          according to the user input) with HTML-CSS- javascript similar
          environment?

          Comment

          • Mike Driscoll

            #6
            Re: text alignment

            On Jun 17, 12:59 pm, Gandalf <goldn...@gmail .comwrote:
            On Jun 17, 7:49 pm, Mike Driscoll <kyoso...@gmail .comwrote:
            >
            >
            >
            On Jun 17, 11:45 am, Gandalf <goldn...@gmail .comwrote:
            >
            On Jun 17, 6:43 pm, Gandalf <goldn...@gmail .comwrote:
            >
            Hi every one. What is the similar python WX style property for CSS
            text-align?
            >
            I need this item text to start from the right direction:
            >
            aaa= html.HtmlWindow (self, -1, style=wx.SIMPLE _BORDER, size=(250, 60))
                    aaa.LoadPage('. ./../aa.html')
            >
            Thanks!
            >
            *right to the left direction...
            >
            And I'm using pythin 2.5 on XP (I forget to mention...)
            >
            The HtmlWindow widget can only display simple html. So, while you
            cannot use CSS, you should be able to use the simple html alignment
            directives. Check out the following site for pointers:
            >>
            If you want to be able to use CSS and javascript, you'll want to use
            the ActiveX_IEHtmlW indow (wx.lib.iewin) widget instead as it embeds
            Internet Explorer.
            >
            Mike
            >
            well thanks it seems useful...
            My question is about general items in WX and how to position them
            inside an element without using CSS. It's only coincidence My item is
            HtmlWindow
            Positioning the widgets within a container widgets (such as a
            wx.Window, wx.Panel or wx.Frame) is usually done with sizers.
            Something like this:

            mySizer.Add(myW idget, 0, wx.ALIGN_RIGHT)

            I've written a few tutorials on aligning widgets in various types of
            sizers. You might find them helpful. There are located here:
            Learn the Python programming language from beginner to advanced with Mike Driscoll


            You might also find this site useful too: http://www.zetcode.com/wxpython/layout/

            Mike

            Comment

            • Mike Driscoll

              #7
              Re: text alignment

              On Jun 17, 1:20 pm, Gandalf <goldn...@gmail .comwrote:
              since you brought up this issue, please tell me where can I fine
              menual for this library?
              You want the manual for wxPython? Go to the download page on the
              Official wxPython page and get the Docs & Demos package:


              That include the wxWidgets Reference. Also see: http://wxpython.org/onlinedocs.php

              can i generate dynamic GUI from it?
              Not sure what you mean by this. If you know how to create a "dynamic
              GUI" with html/ajax or some such based on the user's interactions with
              your website, than it should work in the embedded browser just as well
              as it would in a non-embedded one.

              If not, Is there any way to generate dynamic GUI (one that can change
              according to the user input) with HTML-CSS- javascript similar
              environment?

              Mike

              Comment

              • Gandalf

                #8
                Re: text alignment

                On Jun 17, 8:43 pm, Mike Driscoll <kyoso...@gmail .comwrote:
                On Jun 17, 1:20 pm, Gandalf <goldn...@gmail .comwrote:
                >
                since you brought up this issue, please tell me where can I fine
                menual for this library?
                >
                You want the manual for wxPython? Go to the download page on the
                Official wxPython page and get the Docs & Demos package:http://wxpython.org/download.php
                >
                That include the wxWidgets Reference. Also see:http://wxpython.org/onlinedocs.php
                >
                can i generate dynamic GUI from it?
                >
                Not sure what you mean by this. If you know how to create a "dynamic
                GUI" with html/ajax or some such based on the user's interactions with
                your website, than it should work in the embedded browser just as well
                as it would in a non-embedded one.
                >
                If not, Is there any way to generate dynamic GUI (one that can change
                according to the user input) with HTML-CSS- javascript similar
                environment?
                >
                Mike
                Hi Mike, I was referring to the ActiveX_IEHtmlW indow which you talked
                about, when I asked you for a tutorial.
                I have lots of experience on developing web application so if I could
                implement some of my knowledge for developing none web application it
                can save me trouble

                thanks

                Comment

                Working...