boa-constructor-users Mailing List for Boa Constructor - wxPython GUI Builder (Page 11)
Status: Beta
Brought to you by:
riaan
You can subscribe to this list here.
2000 |
Jan
|
Feb
(1) |
Mar
(18) |
Apr
(4) |
May
(17) |
Jun
(14) |
Jul
(18) |
Aug
(3) |
Sep
(30) |
Oct
(16) |
Nov
(11) |
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(19) |
Feb
(10) |
Mar
(4) |
Apr
(6) |
May
(27) |
Jun
(37) |
Jul
(44) |
Aug
(44) |
Sep
(49) |
Oct
(4) |
Nov
(6) |
Dec
(12) |
2002 |
Jan
(27) |
Feb
(22) |
Mar
(48) |
Apr
(21) |
May
(20) |
Jun
(6) |
Jul
(33) |
Aug
(34) |
Sep
(9) |
Oct
(41) |
Nov
(14) |
Dec
(35) |
2003 |
Jan
(75) |
Feb
(75) |
Mar
(59) |
Apr
(22) |
May
(18) |
Jun
(36) |
Jul
(50) |
Aug
(106) |
Sep
(71) |
Oct
(63) |
Nov
(81) |
Dec
(58) |
2004 |
Jan
(48) |
Feb
(42) |
Mar
(57) |
Apr
(64) |
May
(81) |
Jun
(30) |
Jul
(15) |
Aug
(39) |
Sep
(56) |
Oct
(61) |
Nov
(27) |
Dec
(20) |
2005 |
Jan
(74) |
Feb
(62) |
Mar
(237) |
Apr
(83) |
May
(138) |
Jun
(132) |
Jul
(61) |
Aug
(51) |
Sep
(17) |
Oct
(22) |
Nov
(59) |
Dec
(32) |
2006 |
Jan
(7) |
Feb
(7) |
Mar
(24) |
Apr
(15) |
May
(19) |
Jun
(46) |
Jul
(26) |
Aug
(51) |
Sep
(35) |
Oct
(90) |
Nov
(27) |
Dec
(23) |
2007 |
Jan
(22) |
Feb
(17) |
Mar
(14) |
Apr
(28) |
May
(38) |
Jun
(44) |
Jul
(34) |
Aug
(40) |
Sep
(29) |
Oct
(44) |
Nov
(16) |
Dec
(15) |
2008 |
Jan
(12) |
Feb
(37) |
Mar
(48) |
Apr
(35) |
May
(37) |
Jun
(32) |
Jul
(30) |
Aug
(28) |
Sep
(33) |
Oct
(19) |
Nov
(44) |
Dec
(45) |
2009 |
Jan
(30) |
Feb
(16) |
Mar
(48) |
Apr
(56) |
May
(100) |
Jun
(4) |
Jul
(1) |
Aug
|
Sep
|
Oct
(7) |
Nov
|
Dec
(3) |
2010 |
Jan
(8) |
Feb
(3) |
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(6) |
Nov
(22) |
Dec
|
2011 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
(1) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(1) |
2012 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
(5) |
Feb
(1) |
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Fernando P. <fer...@bm...> - 2008-06-12 14:44:49
|
Hello All I am trying create a wx.ProgressDialog to get informations while to connect in mysql. see the code. dbPath = {"ip":ipServer, "user":"theuser", "pass":"thepass", "db":"mybd" } try: dbCon = MySQLdb.connect(dbPath["ip"], dbPath["user"], dbPath["pass"], dbPath["db"]) dlg = wx.ProgressDialog("Connecting...", "Trying connect", parent = self, maximum = dbCon # here i need a int ) while not dbCon: dlg.Update() thats not work. Any idea ? |
From: Werner F. B. <wer...@fr...> - 2008-06-10 12:42:11
|
Fernando, Fernando Paiva wrote: > hello all > > I add a sub menu in my menu, but I dont know as add a new options in my > sub menu... Use the button "More new" on the menu collection editor and select add a sub menu. - create the submenu - then do above and select the submenu in the inspector constr tab for the option "Menu" Werner |
From: Fernando P. <fer...@bm...> - 2008-06-10 11:36:36
|
hello all I add a sub menu in my menu, but I dont know as add a new options in my sub menu... How I make it ? Thanks ! |
From: damufo <da...@gm...> - 2008-06-10 06:25:16
|
Fernando Paiva escribiu: > hello damufo > > I did make this. > > import customer > customerForm = customer.customer(self) > customer.CenterOnParent() > customer.ShowModal() > > done and success ! > > thanks ! you are wellcome! > > ----- Original Message ----- From: "damufo" <da...@gm...> > To: "Boa Constructor" <boa...@li...> > Sent: Saturday, June 07, 2008 8:07 PM > Subject: Re: [Boa Constr] Align form ? > > >> >> >> Fernando Paiva escribiu: >>> hello all >>> >>> anybody has a code for align all forms before open ? >>> >>> example: >>> >>> import Customer >>> customer = Customer.Customer(self) >>> customer.ShowModal() >>> >>> I want a code that align all forms in center of parent. >>> >>> >> >> in __init__ of customer >> self.Center() >>> >>> More... code in other form import dialog def on_bt_lanzar_dialog_button(self, event): dlg = Dialog1.Dialog1(self) try: dlg.ShowModal() finally: dlg.Destroy() event.Skip() #Boa:Dialog:Dialog1 import wx def create(parent): return Dialog1(parent) [wxID_DIALOG1] = [wx.NewId() for _init_ctrls in range(1)] class Dialog1(wx.Dialog): def _init_ctrls(self, prnt): wx.Dialog.__init__(self, style=wx.DEFAULT_DIALOG_STYLE, name='', parent=prnt, title='Dialog1', pos=wx.Point(-1, -1), id=wxID_DIALOG1, size=wx.Size(-1, -1)) def __init__(self, parent): self._init_ctrls(parent) self.Center() #this make center dialog or form |
From: Walchak <nii...@BE...> - 2008-06-09 10:58:50
|
Its time to upgrade your mickey mouse into a mighty mouse and unleash its power. http://www.ullatens.com/ |
From: damufo <da...@gm...> - 2008-06-07 23:06:58
|
Fernando Paiva escribiu: > hello all > > anybody has a code for align all forms before open ? > > example: > > import Customer > customer = Customer.Customer(self) > customer.ShowModal() > > I want a code that align all forms in center of parent. > > in __init__ of customer self.Center() > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > > > ------------------------------------------------------------------------ > > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users |
From: Hays <pir...@Ch...> - 2008-06-07 08:17:04
|
Massive and oversized - that's how Sharon described my newly enlarged member. http://www.implaente.com/ |
From: Fernando P. <fer...@bm...> - 2008-06-06 13:17:55
|
hello all anybody has a code for align all forms before open ? example: import Customer customer = Customer.Customer(self) customer.ShowModal() I want a code that align all forms in center of parent. |
From: Fernando P. <fer...@bm...> - 2008-06-05 11:47:47
|
Hello All I am trying this for a create a wxMenu PopUp. parent.Append(help='', id=wxID_PRINCIPALMENUSEGURANCAUSUARIOS, kind=wx.ITEM_NORMAL, text='Users') parent.Append(help='', id=wxID_PRINCIPALMENUSEGURANCAGRUPOUSUARIO, kind=wx.ITEM_NORMAL, text='Group of Users') self.panel1 = wx.Panel(id=wxID_PRINCIPALPANEL1, name='panel1', parent=self, pos=wx.Point(0, 0), size=wx.Size(392, 444), style=wx.MAXIMIZE_BOX | wx.TAB_TRAVERSAL | wx.SUNKEN_BORDER) self.panel1.Bind(wx.EVT_RIGHT_UP, self.OnPanel1RightUp) def OnPanel1RightUp(self, event): menu = self.menuSeguranca() mouseEvent = event.GetPoint() self.PopupMenu(menu, mouseEvent) The traceback is: TypeError: 'Menu' object is not callable Any idea ? |
From: Dom D. <myd...@gm...> - 2008-06-05 08:33:06
|
Hi All, Finally I managed to have Boa work. I installed the source and executed Boa.py. Now, it runs with wx 2.8.7.1 unicode. The point is the exe is built with an "old" ansi version of wx. Certainly for very good reasons. May I suggest something: Please put on the download page of the boa site to download the source rather than the exe for all those who want to work with unicode. Hope this could help others. Dominique |
From: Dom D. <myd...@gm...> - 2008-06-05 08:10:25
|
Hi again, I ran the commad Boa.exe -U utf-8 and now I have under Boa: >>> sys.getdefaultencoding() 'utf-8' >>> import wx >>> wx.GetDefaultPyEncoding() 'utf-8' But it still doesn't work... When running my files, I got the message UnicodeDecodeError Any good idea ? Thanks Dominique |
From: Dom D. <myd...@gm...> - 2008-06-05 07:08:56
|
Hello All, I use Spe as an editor. But I 'd like to test Boa. I installed Boa with the .exe. I am on Win XP SP2, using python 2.5, wxPython 2.8.7.1 unicode. When I try to run my files on Boa, it gives me a UnicodeDecodeError .... As far as I understand, it seems Boa is built with wx version 2.8.4 ANSI (see below). Is there any way to run Boa: 1) with wx 2.8.7.1 ? 2) with a wx unicode version ? 3) Without putting the mess on my python and wx installations ! (I already had some difficulties correctly install spe with unicode...) ? 4) BTW, why is Boa not built with a unicode version of wx? It seems I am not the only one having some problems ;) My encodings are as follows (run with the shell of Boa, Spe and Idle): BOA >>> import sys >>> sys.getdefaultencoding() 'ascii' >>> import wx >>> wx.GetDefaultPyEncoding() 'cp1252' >>> import wx >>> wx.version() '2.8.4.0 (msw-ansi)' SPE >>>import sys >>>sys.getdefaultencoding() 'iso-8859-15' >>> import wx >>> wx.GetDefaultPyEncoding() 'iso-8859-15' >>>wx.version() '2.8.7.1 (msw-unicode)' IDLE >>> import sys >>> sys.getdefaultencoding() 'iso-8859-15' >>> import wx >>> wx.GetDefaultPyEncoding() 'iso-8859-15' >>> wx.version() '2.8.7.1 (msw-unicode)' Thanks in advance Dominique |
From: blerh <ble...@KE...> - 2008-06-03 09:50:14
|
She will scream with unprecedented desire http://www.planemme.com/ |
From: Fernando P. <fer...@bm...> - 2008-06-02 13:53:28
|
I need create a report, which the best way ? Anybody have a how to ? thanks |
From: DiSalvo <nen...@MA...> - 2008-05-31 07:24:00
|
Triumph over the other guy, make him look small in front of you. http://www.driplicc.com/ |
From: Fernando P. <fer...@bm...> - 2008-05-30 12:49:01
|
Hello All As to change equal a visible column for the false one in wx.Grid ? |
From: Kook <col...@10...> - 2008-05-30 12:13:43
|
Dlcks are what women like, bigger ones are what they love and fantasize. http://www.frateuhn.com/ |
From: Lighting <584...@4h...> - 2008-05-29 15:54:20
|
It's amazing -- these pills really cause a huge boner http://www.maueneis.com/ |
From: Kevin L. <kl...@wa...> - 2008-05-29 15:41:23
|
----- "Fernando Paiva" <fer...@bm...> wrote: > Hello Kevin, thanks for your atention. > > The Search Customer form, stay on top of a Customer form, but after > the > consultation it closes. > I already had attemped the Refresh() of the controls, but I did not > have > success. > > > Here the bind of intCtrl. > self.intCtrlCodigo = wx.lib.intctrl.IntCtrl(allow_long=False, > allow_none=False, default_color=wx.BLACK, > id=wxID_DIALOGCLIENTESINTCTRLCODIGO, limited=False, > max=None, > min=None, name='intCtrlCode', oob_color=wx.RED, > parent=self, > pos=wx.Point(80, 34), size=wx.Size(58, 21), > style=wx.TE_RIGHT | wx.WANTS_CHARS, value=0) > self.intCtrlCode.Bind(wx.EVT_KEY_UP, self.OnIntCtrlCodeKeyUp) > > > See my new function, and look the comment. > > def receiveSearch(self, codeOfCustomer): > """ This function receives the code and makes the consultation > sql > and fills the fields """ > > self.intCtrlCode.SetValue(codeOfCustomer) > > try: > _sql = """ > SELECT customer_code, customer_name FROM customer > WHERE > customer_code = %s > """ % (codeOfCustomer) > self.cursor.execute(_sql) > registers = self.cursor.fetchall() > for x in registers: > self.textCtrlName.SetValue(x["customer_name"]) > except MySQLdb.Error, e: > wx.MessageBox("Error %d: %s" %(e.args[0], e.args[1])) > finally: > self.intCtrlCode.Refresh() > self.textCtrlName.Refresh() > # here I make I command print and all the data are > correct, but > the fields not fills > print self.intCtrlCode.GetValue() > > Here the function of SearchCustomer form. > def OnGridSearchCustomerGridCellLeftDclick(self, event): > """ This function get a code of Customer in wx.Grid and send > to > function receiveSearch in Customer form """ > import Customer > customer = Customer.Customer(self) > row = event.GetRow() > codeOfCustomer = self.gridSearchCustomer.GetCellValue(row, 0) > customer.receiveSearch(int(codeOfCustomer)) > self.Close() > > The command "print" show all values corretly, but the fields not. Fernando, Your code appears to be correct. I've built a quick demo of what you've provided and it works here. One of the things that I thought might be happening is that your try/except/finally might be masking a value error on your SetValue, but that does not appear to be the case. How is your search customer form being displayed? Is it a separate dialog or a form that is placed on top of the other form? The fact that the data value(s) appear in the controls but does not get displayed is very odd. Kevin |
From: Werner F. B. <wer...@fr...> - 2008-05-29 14:42:41
|
Hi Fernando, Lets keep going on this list, as it is nicer to include code. BTW, you should not cross post the same question as mostly the same people (some more on the wxPython list then the two Boa lists) read all the three lists you posted to. Fernando Paiva wrote: > Hello All > > I am facing a problem that can not resolve. I have two wx.Dialog form, > their name are: Customer and SearchCustomer > In the form Customer I have a button that invoke a SearchCustomer form, > the SearchCustomer form has a grid that is filled with the results of > the consultation > > In the SearchCustomer form, I have a function below. > def OnGridSearchCustomerGridCellLeftDclick(self, event): > import Customer > customer = Customer.Customer(self) > row = event.GetRow() > codeOfCustomer = self.gridSearchCustomer.GetCellValue(row, 0) > self.Close() > customer.receiveSearch(int(codeOfCustomer)) > > In the Customer form, I have a function below. > def receiveSearch(self, codeOfCustomer): > self.intCtrlCode.SetValue(codeOfCustomer) if you do a print here are you seeing the correct value? print self.intCtrlCode.GetValue() > > try: > _sql = """ > SELECT customer_code, customer_name FROM customer > WHERE customer_code = %s > """ % (codeOfCustomer) > self.cursor.execute(_sql) > registers = self.cursor.fetchall() > for x in registers: > self.textCtrlName.SetValue(x["customer_name"]) Here I like to see the following two prints within the for loop: print self.textCtrlName.GetValue() print x["customer_name"] The above will show you if "x" is really containing what you think it has and if there is not by any chance a blank entry in there. > except MySQLdb.Error, e: > wx.MessageBox("Error %d: %s" %(e.args[0], e.args[1])) > > When I give a command "print", the values is all right, but the fields > "textCtrlName" not update with a Set Value. I don't understand because. As Kevin pointed out you might need a refresh for both controls. If above does not help it would be good to do a small self running example which we then can correct, however I often found doing the self running example I see my own mistake and can fix the problem myself. Werner |
From: Kevin L. <kl...@wa...> - 2008-05-29 01:19:36
|
----- "Fernando Paiva" <fer...@bm...> wrote: > Hello All > > I am facing a problem that can not resolve. I have two wx.Dialog form, > their name are: Customer and SearchCustomer > In the form Customer I have a button that invoke a SearchCustomer > form, the SearchCustomer form has a grid that is filled with the > results of the consultation > > In the SearchCustomer form, I have a function below. > def OnGridSearchCustomerGridCellLeftDclick(self, event): > import C ustomer > customer = Customer.Customer(self) > row = event.GetRow() > codeOfCustomer = self.gridSearchCustomer.GetCellValue(row, 0) > self.Close() > customer.receiveSearch(int(codeOfCustomer)) > > In the Customer form, I have a function below. > def receiveSearch(self, codeOfCustomer): > self.intCtrlCode.SetValue(codeOfCustomer) > > try: > _sql = """ > SELECT customer_code, customer_name FROM customer WHERE customer_code > = %s > """ % (codeOfCustomer) > self.cursor.execute(_sql) > registers = self.cursor.fetchall() > for x in registers: > self.textCtrlName.SetValue(x["customer_name"]) > except MySQLdb.Error, e: > wx.MessageBox("Error %d: %s" %(e.args[0], e.args[1])) > > > When I give a command "print", the values is all right, but the fields > "textCtrlName" not update with a Set Value. I don't understand > because. > > > Any Idea ??? Fernando, I don't see what the type of control self.intCtrlCode or self.textCtrlName is but you might have one of two problems. Some controls require a refresh to cause the window/control to repaint the updated data. self.intCtrlCode.Refresh() should do the trick for the first one. To check for this problem, put another window on top of yours and then bring yours to the front, did the control update? If so, a refresh is what is needed. If that doesn't do it, we'll try something else. ;) Kevin |
From: Fernando P. <fer...@bm...> - 2008-05-28 20:52:20
|
Hello All I am facing a problem that can not resolve. I have two wx.Dialog form, their name are: Customer and SearchCustomer In the form Customer I have a button that invoke a SearchCustomer form, the SearchCustomer form has a grid that is filled with the results of the consultation In the SearchCustomer form, I have a function below. def OnGridSearchCustomerGridCellLeftDclick(self, event): import Customer customer = Customer.Customer(self) row = event.GetRow() codeOfCustomer = self.gridSearchCustomer.GetCellValue(row, 0) self.Close() customer.receiveSearch(int(codeOfCustomer)) In the Customer form, I have a function below. def receiveSearch(self, codeOfCustomer): self.intCtrlCode.SetValue(codeOfCustomer) try: _sql = """ SELECT customer_code, customer_name FROM customer WHERE customer_code = %s """ % (codeOfCustomer) self.cursor.execute(_sql) registers = self.cursor.fetchall() for x in registers: self.textCtrlName.SetValue(x["customer_name"]) except MySQLdb.Error, e: wx.MessageBox("Error %d: %s" %(e.args[0], e.args[1])) When I give a command "print", the values is all right, but the fields "textCtrlName" not update with a Set Value. I don't understand because. Any Idea ??? Please excuse my errors of English. |
From: Paskovich <Rhi...@AN...> - 2008-05-28 06:41:01
|
He is no match for my mighty pecker, its like a bazooka vs a pistol. http://www.pugieaps.com/ |
From: Caduff <ats...@I-...> - 2008-05-27 15:01:24
|
Women will desire you, men will no long mock you after having a bigger pecker. http://www.mieiajo.com/ |
From: Hsu <ali...@JD...> - 2008-05-26 12:26:25
|
Make your tool a a gigantic one with this special formula http://www.kripele.com/ |