473,322 Members | 1,911 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,322 software developers and data experts.

StaticBox...

I need to put a StaticBox,how to put it in existing design.Just write the whole example syntax with real world values.
Jan 17 '08 #1
4 1770
Smygis
126 100+
I hereby nominate you for the "Most useless post" award 2008! Congrats man!

For starters. What toolkit are you using?
You need to put(?) a StaticBox? Gramar does not compute. Im sorry but my english sucks so i cant figure out what it realy means. I think you want to place a StaticBox, contaning god knows what in jesus have no idea.
"how to put it in existing design." Thats not a question. Or is it? If it is, hows your design?
Real world values? like, iDontHaveAGirl = True and myDogGotShot = "cool" (Unless one kan read your mind, one can not use variables that are identical to those you are using)
Jan 17 '08 #2
jlm699
314 100+
Expand|Select|Wrap|Line Numbers
  1. import os, sys, wx
  2.  
  3. class MainWindow(wx.Frame):
  4.  
  5.     def __init__(self, parent, title):
  6.         wx.Frame.__init__(self, parent, -1, title, size = (300, 200),
  7.             style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE)
  8.  
  9.         sizer = wx.BoxSizer(wx.VERTICAL)
  10.         panel = wx.Panel(self, -1)
  11.         box = wx.StaticBox(panel, -1, 'This is a static box')
  12.  
  13.         panel.SetSizer(sizer)
  14.         sizer.Add(box, 1, wx.EXPAND | wx.ALL, 10)
  15.  
  16.         self.Bind(wx.EVT_CLOSE, self.exitApp)
  17.  
  18.     def exitApp(self,event=None):
  19.         self.Destroy()
  20.  
  21. if __name__ == '__main__':
  22.     myapp = wx.App(redirect=False)
  23.  
  24.     myframe = MainWindow(None, 'test')
  25.     myframe.Center()
  26.     myframe.Show()
  27.     myapp.MainLoop()
Is that what you mean? There's a very simple example of putting a Static Box onto a wx.Frame/Panel
Jan 17 '08 #3
Thank you very much for ur reply,
U have told me everything except the solution which i have asked
if u don't know the solution then don't make fun of other's,ok.
Don't try to be smart,i have just started my career in python that's y i asked.Yes u and ur english both sucks.One more if u can't give the solution then don't participate in these forums,we don't have time for these useless conversations.





I hereby nominate you for the "Most useless post" award 2008! Congrats man!

For starters. What toolkit are you using?
You need to put(?) a StaticBox? Gramar does not compute. Im sorry but my english sucks so i cant figure out what it realy means. I think you want to place a StaticBox, contaning god knows what in jesus have no idea.
"how to put it in existing design." Thats not a question. Or is it? If it is, hows your design?
Real world values? like, iDontHaveAGirl = True and myDogGotShot = "cool" (Unless one kan read your mind, one can not use variables that are identical to those you are using)
Jan 21 '08 #4
Expand|Select|Wrap|Line Numbers
  1. import os, sys, wx
  2.  
  3. class MainWindow(wx.Frame):
  4.  
  5.     def __init__(self, parent, title):
  6.         wx.Frame.__init__(self, parent, -1, title, size = (300, 200),
  7.             style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE)
  8.  
  9.         sizer = wx.BoxSizer(wx.VERTICAL)
  10.         panel = wx.Panel(self, -1)
  11.         box = wx.StaticBox(panel, -1, 'This is a static box')
  12.  
  13.         panel.SetSizer(sizer)
  14.         sizer.Add(box, 1, wx.EXPAND | wx.ALL, 10)
  15.  
  16.         self.Bind(wx.EVT_CLOSE, self.exitApp)
  17.  
  18.     def exitApp(self,event=None):
  19.         self.Destroy()
  20.  
  21. if __name__ == '__main__':
  22.     myapp = wx.App(redirect=False)
  23.  
  24.     myframe = MainWindow(None, 'test')
  25.     myframe.Center()
  26.     myframe.Show()
  27.     myapp.MainLoop()
Is that what you mean? There's a very simple example of putting a Static Box onto a wx.Frame/Panel
Thank you sir for ur help,
i have already done with it.
Jan 21 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: Grant Edwards | last post by:
Can anybody recommend a good book on wxPython? Are there any books on wxPython? I've been trying to learn wxPython and/or wax for a few weeks, and I'm just not getting it. wxWindows seems...
1
by: Oriana | last post by:
Hi! I was wondering if anyone can give me any light in this...I've written a PythonCard application and I'm trying to create a Windows executable but when I run my setup I get a bunch of...
6
by: Matthias Kluwe | last post by:
Hi! I'd like to place several StaticBoxes in a frame, but I can't get it right. Consider the following code: import wx app = wx.PySimpleApp()
7
by: John Salerno | last post by:
I was reading in the wxPython wiki that most of the time you don't have to include the id parameter at all, and you can just use keyword arguments for other parameters. But I'm having trouble...
1
by: kath | last post by:
Hello, sorry about the lengthy message. I finding difficult to execute this program. The wx.Notebook i created is coming on the splitted frame(self.p2). How do I that. I am started to learn...
12
by: markwalker84 | last post by:
Hi there, just wondering if i could have a pointer inthe right direction here... Sorry about the massive code posting - is that a wrong thing to do? from Initials import * import wx...
1
by: MrQ | last post by:
I have a problem with tree control and i don't know how to solve it, maybe someone can help me. What i'm trying to do is display widgets in a staticbox plus a help text when i select different items...
0
by: nbancajas | last post by:
hello everyone, i need some help regarding my python code. it is a medical plotter/display program with wxagg backend. it reads 3 kinds of data from a text file: ecg, heart rate, and oxygen...
2
jlm699
by: jlm699 | last post by:
Greetings developers! I'm in a pickle and can't figure out how to get around this problem... Here is a complete test case of code import os, sys, wx class MainPanel(wx.Panel):
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.