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

Dyna grid

Szia !

A következő a gondom:

Adott egy wx form, ami alapot képez, egyfajta template.
Ezt szeretném felhasználni, és kiegészíteni úgy, hogy a rajta lévő
grid-ek dinamikusan jöjjenek létre.

Sajnos ezt nem sikerült megcsinálnom, az új komponens nem látszódik
a formon, pedig show-val iratom ki.
(tehát: megjelenik a form, majd gombnyomásra elkészül(né)nek a grid-ek).

Pl. gombnyomásra akarok egy új gridet:

def OnClick2(self,event):
g=wxGrid(self, -1) # new grid
g.CreateGrid(10,10)
g.Show(1)
self.mainsizer.Add(g, 0, wxALL|wxEXPAND, 8) # I want to show
#self.mainsizer.Fit(self)
self.SetSizer(self.mainsizer)
self.mainsizer.SetSizeHints()

De nem jelenik meg. Miért ?


Egy másik kérdés: hogyan lehet egy grid-et törölni, hogy utána
megint jöhessen a creategrid ??? Egyenkként kell törölni, és
hozzáadni a sorokat, oszlopokat ?
Előre is köszi:
KK

----------------------------------------------
Üdv,
Kepes Krisztian -> mailto:Ke*************@peto.hu


Jul 18 '05 #1
2 1955
Kepes Krisztian wrote:

From my, I've seen this problem before and am going to guess what the
question is department...

def OnClick2(self, evt):
g=wxGrid(self, -1) # new grid
g.CreateGrid(10,10)
g.SetSize((200,300)) # doesn't matter just set a size...
self.mainsizer.Add(g, 0, wxALL|wxEXPAND, 8) # I want to show
h,w = self.GetSize() # tweak the main sizer
self.SetSize((h, w+1))
self.SetSize((h, w))
De nem jelenik meg. Miért ?
Egy másik kérdés: hogyan lehet egy grid-et törölni, hogy utána
megint jöhessen a creategrid ??? Egyenkként kell törölni, és
hozzáadni a sorokat, oszlopokat ?
Előre is köszi:
KK

----------------------------------------------
Üdv,
Kepes Krisztian -> mailto:Ke*************@peto.hu


Jul 18 '05 #2
Kepes Krisztian wrote:

From my, I've seen this problem before and am going to guess what the
question is department...

def OnClick2(self, evt):
g=wxGrid(self, -1) # new grid
g.CreateGrid(10,10)
g.SetSize((200,300)) # doesn't matter just set a size...
self.mainsizer.Add(g, 0, wxALL|wxEXPAND, 8) # I want to show
h,w = self.GetSize() # tweak the main sizer
self.SetSize((h, w+1))
self.SetSize((h, w))
De nem jelenik meg. Miért ?
Egy másik kérdés: hogyan lehet egy grid-et törölni, hogy utána
megint jöhessen a creategrid ??? Egyenkként kell törölni, és
hozzáadni a sorokat, oszlopokat ?
Előre is köszi:
KK

----------------------------------------------
Üdv,
Kepes Krisztian -> mailto:Ke*************@peto.hu


Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chris Stockscraper | last post by:
Hi All, I have an applicaiton architecture that I have adopted and need a little guidance. The web application is written in classic asp but the COM components were never developed to...
117
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of...
3
by: kaczmar2 | last post by:
Hey there, I have a large image in a browser window, and I would like a way to overlay grid lines on top of the image, so a user can show the grid or hide the grid lines. The grid would cover...
6
by: Romulo NF | last post by:
Greetings again to everyone, Im back to show this grid componenet i´ve developed. With this grid you can show the data like a normal table, remove the rows that you need, add rows, import data,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.