473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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!
Jun 27 '08 #1
7 2743
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...)
Jun 27 '08 #2
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:

http://www.htmlite.com/lite008.php

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

Mike
Jun 27 '08 #3
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:

http://www.htmlite.com/lite008.php

If you want to be able to use CSS and javascript, you'll want to use
the ActiveX_IEHtmlWindow (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
Jun 27 '08 #4
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?
Jun 27 '08 #5
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:
http://www.htmlite.com/lite008.php
If you want to be able to use CSS and javascript, you'll want to use
the ActiveX_IEHtmlWindow (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(myWidget, 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:
http://www.blog.pythonlibrary.org

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

Mike
Jun 27 '08 #6
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
Jun 27 '08 #7
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_IEHtmlWindow 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
Jun 27 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Harry | last post by:
CSS Description: Table contains a column of td cells with links. Achieved: 1. Entire link cells highlight when hovered. 2. The entire area of these cells are clickable. Problem:
6
by: Colin Walls | last post by:
I am writing some HTML and CSS that will eventually be produced by a program for running fencing tournaments. Everything is fine apart from column alignment for numbers. Have a look at...
0
by: Sam | last post by:
Hi guys, I tried to use DataGridTextBoxColumn alignment property to format my data in the datagrid and I don't quite get what I'd like it to be. The problem is that when I set the alignment...
2
by: John Smith | last post by:
Hi all; Putting "Due" into the column header of a datagrid. Font is a proportional fort. When the alignment is left, there is some space between the column separator bar and the D in Due....
3
by: Simon Abolnar | last post by:
Is it possible to align headers and text in different way. Because with: dgts.GridColumnStyles(0).Alignment = HorizontalAlignment.Center alignment is set for all column (header and text). ...
7
by: Terry Brown | last post by:
I have a problem where, depending on the text of a button, the display of that text seems to change size or alignment. Here is the code: HomeScoreNameButton.ForeColor = Color.Green;...
0
by: Terry Brown | last post by:
I have a problem where, depending on the text of a button, the display of that text seems to change size or alignment. Here is the code: HomeScoreNameButton.ForeColor = Color.Green;...
0
by: VorTechS | last post by:
I'm having a problem with an inherited label, applying text rotation to aligned text. If text rotation is applied to the aligned text, the alignment goes 'nuts'. I can find no logic to what is...
6
by: rn5a | last post by:
When the EditCommandColumn in a DataGrid is clicked, all the BoundColumns get replaced by TextBoxes so that users can alter the data. By default, the Text in the TextBoxes are left-aligned. Is...
15
by: Matthew | last post by:
Hi, I'm mainly a coder, PHP at the moment, but from time to time need to design and use some css. I've a css text alignment issue. Mostly to align text neatly in the past I've used tables....
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.