StaticBox...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sarabhjeet
    New Member
    • Jan 2008
    • 17

    StaticBox...

    I need to put a StaticBox,how to put it in existing design.Just write the whole example syntax with real world values.
  • Smygis
    New Member
    • Jun 2007
    • 126

    #2
    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)

    Comment

    • jlm699
      Contributor
      • Jul 2007
      • 314

      #3
      [CODE=python]import os, sys, wx

      class MainWindow(wx.F rame):

      def __init__(self, parent, title):
      wx.Frame.__init __(self, parent, -1, title, size = (300, 200),
      style=wx.DEFAUL T_FRAME_STYLE | wx.NO_FULL_REPA INT_ON_RESIZE)

      sizer = wx.BoxSizer(wx. VERTICAL)
      panel = wx.Panel(self, -1)
      box = wx.StaticBox(pa nel, -1, 'This is a static box')

      panel.SetSizer( sizer)
      sizer.Add(box, 1, wx.EXPAND | wx.ALL, 10)

      self.Bind(wx.EV T_CLOSE, self.exitApp)

      def exitApp(self,ev ent=None):
      self.Destroy()

      if __name__ == '__main__':
      myapp = wx.App(redirect =False)

      myframe = MainWindow(None , 'test')
      myframe.Center( )
      myframe.Show()
      myapp.MainLoop( )[/CODE]

      Is that what you mean? There's a very simple example of putting a Static Box onto a wx.Frame/Panel

      Comment

      • sarabhjeet
        New Member
        • Jan 2008
        • 17

        #4
        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.





        Originally posted by Smygis
        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)

        Comment

        • sarabhjeet
          New Member
          • Jan 2008
          • 17

          #5
          Originally posted by jlm699
          [CODE=python]import os, sys, wx

          class MainWindow(wx.F rame):

          def __init__(self, parent, title):
          wx.Frame.__init __(self, parent, -1, title, size = (300, 200),
          style=wx.DEFAUL T_FRAME_STYLE | wx.NO_FULL_REPA INT_ON_RESIZE)

          sizer = wx.BoxSizer(wx. VERTICAL)
          panel = wx.Panel(self, -1)
          box = wx.StaticBox(pa nel, -1, 'This is a static box')

          panel.SetSizer( sizer)
          sizer.Add(box, 1, wx.EXPAND | wx.ALL, 10)

          self.Bind(wx.EV T_CLOSE, self.exitApp)

          def exitApp(self,ev ent=None):
          self.Destroy()

          if __name__ == '__main__':
          myapp = wx.App(redirect =False)

          myframe = MainWindow(None , 'test')
          myframe.Center( )
          myframe.Show()
          myapp.MainLoop( )[/CODE]

          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.

          Comment

          Working...