Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
wx
- Page 1
Re: wx
Programming
Software Development
12 Years Ago
by Lardmeister
… Windows machine: '''wxp_combobox1.py test the
wx
.ComboBox() widget
wx
.ComboBox(parent, id, value, pos, size…write/edit your own selection self.combo.Bind(
wx
.EVT_TEXT_ENTER, self.onAction) # create an output…drop down marker" self.label =
wx
.StaticText(self,
wx
.ID_ANY, s, pos=(10, 10))…
wx
Programming
Software Development
12 Years Ago
by lewashby
import
wx
app =
wx
.App() win =
wx
.Frame(None) win.Show() app.MainLoop() Why does the above code only work in python2.7 and not 3?
Re: wx
Programming
Software Development
12 Years Ago
by TrustyTony
What do you mean do not work? What is the error message, what versions of
wx
you have installed in Python 2.7 and what in Python 3. Are you sure you switch between the versions properly (wxversion.select)?
wx Event Help
Programming
Software Development
16 Years Ago
by lllllIllIlllI
…(self, message=aboutinfo, caption='About', style=
wx
.ICON_INFORMATION|
wx
.STAY_ON_TOP|
wx
.OK) if aboutbox.ShowModal() ==
wx
.ID_OK: aboutbox.Destroy() def transferEvent(self,event): self…
wx.Checkbox - Associate Data with a Checkbox
Programming
Software Development
13 Years Ago
by madtowneast
….AddPage(tab,slabel) sizer =
wx
.BoxSizer(
wx
.VERTICAL) sizer.Add(nestedNotebook, 1,
wx
.ALL|
wx
.EXPAND, 5) self.SetSizer(sizer…, data):
wx
.Panel.__init__(self, parent=parent, id=
wx
.ID_ANY) sizer =
wx
.BoxSizer(
wx
.VERTICAL) nestedNotebook =
wx
.Notebook(self,
wx
.ID_ANY) for…
wx.TextCtrl and setting a custom style
Programming
Software Development
18 Years Ago
by dunderhead
…
wx
.TOP|
wx
.LEFT|
wx
.RIGHT|
wx
.EXPAND,30) bs.AddSpacer(
wx
.Size(10,10)) self.editor =
wx
.TextCtrl(self.panel, style=
wx
.TE_MULTILINE|\
wx
.TE_PROCESS_TAB|
wx
….TE_RICH) bs.Add(self.editor,1,
wx
.EXPAND|
wx
.LEFT|
wx
.RIGHT,30)…
wx.ListCtrl help
Programming
Software Development
15 Years Ago
by tweak
…quot;phonebook.db", "c") menubar =
wx
.MenuBar() first =
wx
.Menu() first.Append(101, "New Contact...","….number,(1,1)) self.ok =
wx
.Button(self,
wx
.ID_OK, 'OK') self.cancel =
wx
.Button(self,
wx
.ID_CANCEL, 'Cancel') grid.Add(self.…
wx.Paint
Programming
Software Development
18 Years Ago
by Blujacker
…(0, 1) self.radic.AddGrowableCol(0, 1) sizer2=
wx
.BoxSizer(
wx
.HORIZONTAL) sizer2.Add(
wx
.StaticText(self.okno,label=" f(y)= "….Add(self.vstup,1,0,
wx
.ALL) sizer.Add(sizer2,0,
wx
.EXPAND) sizer3=
wx
.BoxSizer(
wx
.HORIZONTAL) button1=
wx
.Button(self.okno,label="…
Re: wx.Paint
Programming
Software Development
18 Years Ago
by jrcagle
…? Anyways, here's a working version: [code=Python] import
wx
class MyFrame(
wx
.Frame): PENS = ['blue','red','green','black','purple'] def __init__….sizer.Add(self.text_sizer,0,
wx
.EXPAND) # Add button self.button_sizer =
wx
.BoxSizer(
wx
.HORIZONTAL) self.button1=
wx
.Button(self,label="Show"…
Re: wx Event Help
Programming
Software Development
16 Years Ago
by Fuse
… the textbox when programme loads), but decided instead to use
wx
.SearchCtrl.
wx
.SearchCtrl is a subclass of wxTextCtrl, so it inherits…
Re: wx Event Help
Programming
Software Development
16 Years Ago
by Fuse
… the focus.[/quote] [url]http://www.wxpython.org/docs/api/
wx
.MouseEvent-class.html[/url] Add event.Skip() to the end…
Re: wx Event Help
Programming
Software Development
16 Years Ago
by Fuse
… the first link: [url]http://www.wxpython.org/docs/api/
wx
.MouseEvent-class.html[/url]
Re: wx Event Help
Programming
Software Development
16 Years Ago
by Fuse
…%20Style%20Guide[/url] So you should probably replace -1 with
wx
.ID_ANY. I'd do that in the tutorial but I…
Re: wx Event Help
Programming
Software Development
16 Years Ago
by lllllIllIlllI
yeah i replaced all the -1's in the program with
wx
.ID_ANY and thanks for the help with the ampersand sign
wx.StaticText & wx.TextCtrl
Programming
Software Development
14 Years Ago
by Megabyte89
…style=
wx
.MINIMIZE_BOX |
wx
.SYSTEM_MENU |
wx
.CAPTION |
wx
.CLOSE_BOX |
wx
.CLIP_CHILDREN) self.panel =
wx
.Panel(self) self.Centre() fnameLabel =
wx
.…=(200, -1)) fnameLabel.SetFont(
wx
.Font (10,
wx
.SWISS,
wx
.NORMAL,
wx
.BOLD)) self.fname.SetInsertionPoint(0)…
wx.StyledTextCtrl and box sizers
Programming
Software Development
14 Years Ago
by ShadyTyrant
…myEditor = editor.SyntaxControl(self) sizer =
wx
.BoxSizer(
wx
.VERTICAL) sizer.Add(myEditor, 0,
wx
.EXPAND) self.SetAutoLayout(True) self.SetSizer(…Hello world sample", "About Test App",
wx
.OK |
wx
.ICON_INFORMATION, self) def OnExit(self, event): self.Close()…
Re: wx.Checkbox - Associate Data with a Checkbox
Programming
Software Development
13 Years Ago
by woooee
…e":}}}}} # # create one panel and menu class NestedPanelOne(
wx
.Panel): #---------------------------------------------------------------------- # First notebook that creates the tab to … def __init__(self, parent, label, data):
wx
.Panel.__init__(self, parent=parent, id=
wx
.ID_ANY) # # and then the function called…
wx.lib.plot, PlotCanvas, and wx.DC drawing problem
Programming
Software Development
10 Years Ago
by deonis
….canvas), self.buffer) vbox_sizer =
wx
.BoxSizer(
wx
.VERTICAL) vbox_sizer.Add(self.plot_window, 1,
wx
.EXPAND|
wx
.ALIGN_LEFT) main_panel.SetAutoLayout(True) main_panel.…Left Mouse Down at Point:", x, y dc =
wx
.BufferedDC(
wx
.PaintDC(self.plot_window.canvas), self.buffer) dc.Clear() # …
Re: wx.media.MediaCtrl
Programming
Software Development
18 Years Ago
by Blujacker
…=os.getcwd(), defaultFile="", style=
wx
.OPEN |
wx
.CHANGE_DIR ) if dlg.ShowModal() ==
wx
.ID_OK: path = dlg.GetPath() self.doLoadFile…s: Unsupported format?" % path, "ERROR",
wx
.ICON_ERROR |
wx
.OK) else: folder, filename = os.path.split(path)…
Re: wx.media.MediaCtrl
Programming
Software Development
18 Years Ago
by vegaseat
…=os.getcwd(), defaultFile="", style=
wx
.OPEN |
wx
.CHANGE_DIR ) if dlg.ShowModal() ==
wx
.ID_OK: path = dlg.GetPath() self.doLoadFile…s: Unsupported format?" % path, "ERROR",
wx
.ICON_ERROR |
wx
.OK) else: folder, filename = os.path.split(path)…
Re: wx.media.MediaCtrl
Programming
Software Development
17 Years Ago
by vpalexander
….getcwd(), defaultFile="", style=
wx
.OPEN |
wx
.CHANGE_DIR ) if dlg.ShowModal() ==
wx
.ID_OK: path = dlg.GetPath() self… Unsupported format?" % path, "ERROR",
wx
.ICON_ERROR |
wx
.OK) else: folder, filename = os.path.split(path…
wx stops responding
Programming
Software Development
16 Years Ago
by ihatehippies
…, label = 'Load') transferBtn =
wx
.Button(background, label = 'Transfer') inputArea =
wx
.TextCtrl(background) transferArea =
wx
.TextCtrl(background, style =
wx
.TE_READONLY |
wx
.TE_MULTILINE) exOneBtn =
wx
.Button(background, label…
Re: wx.Paint
Programming
Software Development
18 Years Ago
by Blujacker
….body) File "C:\Python24\lib\site-packages\
wx
-2.6-msw-unicode\
wx
\_gdi.py", line 4100, in DrawLineList return…, pens, []) File "C:\Python24\lib\site-packages\
wx
-2.6-msw-unicode\
wx
\_gdi.py", line 4042, in _DrawLineList return…
Re: wx.lib.plot, PlotCanvas, and wx.DC drawing problem
Programming
Software Development
10 Years Ago
by vegaseat
…4*math.pi: break # set up the plotting canvas plot_canvas =
wx
.lib.plot.PlotCanvas(self) # get client usable size of frame… width=1) # assign lines, title and axis labels gc =
wx
.lib.plot.PlotGraphics([sin_lines, cos_lines], 'red=sin(x*x) blue…
Re: wx.Paint
Programming
Software Development
18 Years Ago
by Blujacker
… exapmle, same program in Tkinter is faster. I thought, that
wx
is waster then Tkinter, so i think there is some…
wx.ListBox Problem
Programming
Software Development
14 Years Ago
by cleve23
…Frame aka window') #panel=
wx
.Panel(self) self.sp =
wx
.SplitterWindow(self) self.p1 =
wx
.Panel(self.sp, style=
wx
.SUNKEN_BORDER) self.p2 = stc…) mylist=['sex', 'toy', 'yx'] cunt=
wx
.ListBox(self.p1, -1,
wx
.DefaultPosition, self.sizer,mylist,
wx
.LB_SINGLE) cunt.SetSelection(1) if __name__…
Re: wx.StaticText & wx.TextCtrl
Programming
Software Development
14 Years Ago
by cghtkh
Your description was not very clear, not sure how you want to layout your control. You can try this below, it adds some padding. [CODE] sizer.Add(fnameLabel, 0,
wx
.ALIGN_RIGHT|
wx
.TOP|
wx
.LEFT, 5) sizer.Add(self.fname, 0,
wx
.RIGHT|
wx
.TOP|
wx
.LEFT, 5) [/CODE]
Re: wx.StaticText & wx.TextCtrl
Programming
Software Development
14 Years Ago
by Megabyte89
…] sizer.Add(fnameLabel, 0,
wx
.ALIGN_RIGHT|
wx
.TOP|
wx
.LEFT, 5) sizer.Add(self.fname, 0,
wx
.RIGHT|
wx
.TOP|
wx
.LEFT, 5) [/CODE][/QUOTE] Thank…
Re: wx.Menu()
Programming
Software Development
18 Years Ago
by vegaseat
… self.SetStatusText("This is a statusbar") menu =
wx
.Menu() # information string shows up in statusbar menu.Append(… and an about message dialog.", "About",
wx
.OK |
wx
.ICON_INFORMATION) dlg.ShowModal() dlg.Destroy() def menuOpen(self,e):…
Re: wx.ListBox Problem
Programming
Software Development
14 Years Ago
by vegaseat
…, parent, -1, mytitle, size=mysize) split1 =
wx
.SplitterWindow(self, -1, style=
wx
.SP_LIVE_UPDATE) self.listbox =
wx
.ListBox(split1, -1, choices=mychoices) self.listbox… the multiline text control mytext = '\n'.join(mychoices*10) app =
wx
.App(0) mytitle = 'drag the splitter sash' mysize = (400, 300…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC