2011년 10월 14일 오후 4:43, Gadget/Steve GadgetSteve@live.co.uk님의 말:
2011년 10월 14일 오후 4:11, 최원준 wonjunchoi001@gmail.com 님
의 말:
2011년 10월 14일 오후 4:07, Gadget/Steve GadgetSteve@live.co.uk 님
의 말:
2011년 10월 14일 오후 2:33,
최원준 wonjunchoi001@gmail.com 님
의 말:
2011년 10월 14일 오후
2:22, Gadget/Steve GadgetSteve@live.co.uk 님
의 말:
I think when I create new
message in mailing list, and
when I reply to any issue,
it posts to top.
2011년
10월 14일 오전 12:21,
Gadget/Steve GadgetSteve@live.co.uk 님
의 말:
On
13/10/2011
09:42, 최원준
wrote:
I
didn’t intend
to post to
top. sorry.
and thank you.
2011/10/13
Andrea Gavana
andrea.gavana@gmail.com
as you see in
the
screenshot,
the parent of
textctrl has
label. I am
not sure what
control can be
this in
wxpython.
could you let
me know what
is this?
No
special
control, is a
wx.StaticText
(for the
label) beside
a wx.TextCtrl,
both of them
in an
horizontal
wx.BoxSizer.
Please do not
top-post your
replies.
Andrea.
you just did :)
-- Steven Sproat, BSc
[http://www.whyteboard.org/](http://www.whyteboard.org/)
–
To unsubscribe,
send email to wxPython-users+unsubscribe@googlegroups.com
or visit [http://groups.google.com/group/wxPython-users?hl=en](http://groups.google.com/group/wxPython-users?hl=en)
Just to clarify, in
case the terminology
may be unfamiliar to
some, top posting is
writing a reply with
the new text above
that of the question,
bottom posting is
writing with the new
text after the
question - like this.
The general preference
in this newsgroup,
(and many others), is
bottom posting as you
can read the whole
conversation in the
latest message.
–
To unsubscribe, send
email to wxPython-users+unsubscribe@googlegroups.com
or visit [http://groups.google.com/group/wxPython-users?hl=en](http://groups.google.com/group/wxPython-users?hl=en)
--
To unsubscribe, send email
to wxPython-users+unsubscribe@googlegroups.com
or visit [http://groups.google.com/group/wxPython-users?hl=en](http://groups.google.com/group/wxPython-users?hl=en)
Unless you are using a **very**
unusual client you just need to
scroll to the bottom and click
there before you start typing -
almost all mail clients will let
you do that - some, like
Thunderbird, you can set this as
the default. On windows
machines you should be able to
press ctrl-end to get to the end
of the message.
Gadget/Steve
–
To unsubscribe, send email to
wxPython-users+unsubscribe@googlegroups.com
or visit [http://groups.google.com/group/wxPython-users?hl=en](http://groups.google.com/group/wxPython-users?hl=en)
thank you for the tip!
I made wx.BoxSizer and StaticText and
TextCtrl.
self.h_sizer2 =
wx.BoxSizer(wx.HORIZONTAL)
self.text2 = wx.StaticText(self,
label=“F”, pos=(0,50))
self.text = wx.StaticText(self,
label=“F”, pos=(50,50))
self.edit2 = wx.TextCtrl(self,
size=wx.Size(0, -1), pos=(100,50),
style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER)
self.h_sizer2.Add(self.text2, 0,)
self.h_sizer2.Add(self.edit2, 1,)
self.SetSizer(self.h_sizer2)
but I want to make more than one StaticText +
TextCtrl in BoxSizer.
how can I do this?
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit [http://groups.google.com/group/wxPython-users?hl=en](http://groups.google.com/group/wxPython-users?hl=en)
Just create and add as many static texts and text
controls as you need, if you would like them laid
out as:
Static Ctrl
Static Ctrl
then you will need to change from a Box sizer to a
Grid sizer.
Gadget/Steve
–
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit [http://groups.google.com/group/wxPython-users?hl=en](http://groups.google.com/group/wxPython-users?hl=en)
should I use Grid sizer? what about this?
v_sizer = wx.BoxSizer(wx.VERTICAL)
h_sizer = wx.BoxSizer(wx.HORIZONTAL)
h_sizer2 = wx.BoxSizer(wx.HORIZONTAL)
self.text = wx.StaticText(self, label="F")
self.edit = wx.TextCtrl(self, size=wx.Size(100, -1),
pos=(100,50), style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER)
h_sizer.Add(self.text, 0,)
h_sizer.Add(self.edit, 1)
v_sizer.Add(h_sizer)
v_sizer.Add(h_sizer2)
self.SetSizer(v_sizer)
the count of h_sizer can be more. and randomize. I am not sure
this way is more efficient than using wx.GridSizer.
--
To unsubscribe, send email to
wxPython-users+unsubscribe@googlegroups.com
or visit [http://groups.google.com/group/wxPython-users?hl=en](http://groups.google.com/group/wxPython-users?hl=en)
Well you definiately do not need h_sizer2 - unless you are trying
to add a space. I think that you will find a grid sizer simpler to
code and it does have the advantage that if the size of the static
texts and or text controls differs then alignment will be neater,
you also probably don’t need the pos parameter in the text control,
use the sizer align flags instead.
Gadget/Steve
–
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en
I have checked some grid sizer example as you recomended me. and I am not sure this way is right.
when I had resized the form, the size of text control couldn’t be resized.
and I like to set textctrl width as same as main panel’s width.
and I wonder I can delete the specific textctrl in Grid sizer.
class combinePanel(wx.Panel):
def init(self, parent, ID=-1, label=“”,
pos=wx.DefaultPosition, size=(200, 25)):
wx.Panel.init(self, parent, ID, pos, size,
wx.NO_BORDER, label)
self.label = label
self.text = wx.StaticText(self, label="F")
self.edit = wx.TextCtrl(self, pos = (10, -1), style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER)
class TestFrame(wx.Frame):
def init(self):
wx.Frame.init(self, None, -1, “Resizing Flex Grid Sizer”)
sizer = wx.FlexGridSizer(rows=9, cols=1, hgap=0, vgap=0)
for label in labels:
bw = combinePanel(self, label=label)
sizer.Add(bw, 0, wx.ALIGN_TOP)
sizer.
self.SetSizer(sizer)
self.Fit()
···
On 14/10/2011 8:15 AM, 최원준 wrote:
On 14/10/2011 > > > > 7:01 AM, 최원준 wrote:
On 14/10/2011 12:23 AM, > > > > > > > 최원준 wrote:
On 13/10/2011 > > > > > > > > > 3:49 PM, Steven > > > > > > > > > Sproat wrote:
On 13 > > > > > > > > > > > > October 2011 > > > > > > > > > > > > 10:37, 최원준 <wonjunchoi001@gmail.com> > > > > > > > > > > > > wrote: