在Excel 2016中匹配功能部件(Match function parts in Excel 2016)
我有这个功能:
星号(PositionParameter [[#All],[Position Revised]] = $ C94)星号(PositionParameter [[#All],[Campus Type Short]] = G $ 3) Campus Num Arbitrary]] = G $ 1),0))
我无法弄清楚它的功能。 我不知道星号是什么。 PositionParameter是工作表的名称,Position Revised是列的名称,Campus Type Short是列的名称,Campus Num Arbitrary是列的名称。 假设在第一个PositionParameter()和第二个PositionParameter()之间有一个星号。 在第二个PositionParameter()和第三个PositionParameter()之间应该有另一个星号,但它被呈现为斜体。 我把星号拿出来拼出来。 工具提示告诉我这是假设返回某种数组,但我无法弄清楚它的组件。 有人可以向我解释星号吗? 我会很感激。
谢谢,霍华德洪
I have this function:
MATCH(1,(PositionParameter[[#All],[Position Revised]]=$C94)asterisk(PositionParameter[[#All],[Campus Type Short]]=G$3)asterisk(PositionParameter[[#All],[Campus Num Arbitrary]]=G$1),0))
and I can't figure out what it does. I don't know what the asterisks are for. PositionParameter is the name of the worksheet, Position Revised is the name of a column, Campus Type Short is the name of a column, and Campus Num Arbitrary is the name of a column. There is suppose to be an asterisk between the first PositionParameter() and the second PositionParameter(). There is supposed to be another asterisk between the second PositionParameter() and the third PositionParameter(), but it is rendered as an italic. I took the asterisk out and spelled it out. The tooltip tells me this is suppose to return some sort of array, but I can't figure out its components. Can someone explain the asterisks to me? I would appreciate it.
Thanks, Howard Hong
原文:https://stackoverflow.com/questions/47495003
最满意答案
将button_sizer添加到新的父sizer似乎会导致崩溃。 尽管似乎没有合理的原因。
如果您编辑您的类以匹配以下内容,它可以工作,并按预期添加项目,而不会崩溃:
class MainFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self,None) self.model = [0] self.add_button = wx.Button(self, label="add") self.add_button.Bind(wx.EVT_BUTTON, self.add) self.rebuild() def add(self, evt): self.model.append(len(self.model)) self.rebuild() print 'rebuild complete' def rebuild(self): sizer = wx.BoxSizer(wx.VERTICAL) button_sizer = wx.BoxSizer(wx.HORIZONTAL) button_sizer.Add(self.add_button) sizer.Add(button_sizer,1) widget_sizer = wx.BoxSizer(wx.HORIZONTAL) for idx in self.model: widget_sizer.Add(FooWidget(self, idx), 1) sizer.Add(widget_sizer,1) print 'SetSizer' self.SetSizer(sizer) print 'Fit' self.Fit() print 'Layout' self.Layout()
希望有助于解决您的问题。
迈克尔
Adding the button_sizer to a new parent sizer seems to cause the crash. Allthough there doesn't seem to be a reasonable cause.
If you edit your class to match the following, it works and it adds the items as expected, without a crash:
class MainFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self,None) self.model = [0] self.add_button = wx.Button(self, label="add") self.add_button.Bind(wx.EVT_BUTTON, self.add) self.rebuild() def add(self, evt): self.model.append(len(self.model)) self.rebuild() print 'rebuild complete' def rebuild(self): sizer = wx.BoxSizer(wx.VERTICAL) button_sizer = wx.BoxSizer(wx.HORIZONTAL) button_sizer.Add(self.add_button) sizer.Add(button_sizer,1) widget_sizer = wx.BoxSizer(wx.HORIZONTAL) for idx in self.model: widget_sizer.Add(FooWidget(self, idx), 1) sizer.Add(widget_sizer,1) print 'SetSizer' self.SetSizer(sizer) print 'Fit' self.Fit() print 'Layout' self.Layout()
Hope that helps to solve your problem.
Michael
相关问答
更多-
你问“可能会发生什么?”。 似乎正在发生的事情是你的wx应用程序陷入循环或睡眠状态,因此不呈现任何内容,并且似乎没有响应。 知道为什么你认为它卡在你发布的代码中会很有趣。 知道它是如何工作的也很有趣......在while循环中你似乎没有任何意义,你屈服于wx来渲染更新。 因此,我不清楚如何呈现状态更新。 我只想说:如果你的代码要么挂在read(8192)上,要么在无限循环中,它会使它看起来像你的截图:没有反应。 为了避免反应迟钝,你需要在花费很长时间做某事时屈服于wx。 一种简单的调试方法是使用打印来检测 ...
-
刚发现回答自己: http://trac.wxwidgets.org/ticket/4489 在删除最后一个“|”之后,当通配符格式不正确时,它在Mac中崩溃 在通配符中一切正常。 Just found answer myself: http://trac.wxwidgets.org/ticket/4489 It crashes in Mac when wildcard improperly formatted, after removing last "|" in wildcard everything ...
-
我认为问题是您将相同的wx.Panel实例( self.ticketPanel )添加为窗格。 尝试为每个窗格创建一个新窗格。 I think the problem is that you add the same wx.Panel instance (self.ticketPanel) as a pane. Try creating a new one for every pane.
-
崩溃让卡路里谷歌适合(Crash getting calories google fit)[2022-10-12]
问题出在totalSet.getDataPoints().get(0).getValue(Field.FIELD_CALORIES)asInt(); 而这将返回一个float ,您将其分配给long 。 FIX: private class getCal extends AsyncTask -
在您的OnPaint中,请致电: e.Skip() 在您的测试中,请致电: dial.ShowModal() 而不是dial.Show(),除非你真的想要显示一个无模式的消息对话框,我打赌你没有。 您还应该将父级设置为MessageDialog。 在这种情况下它应该是self(意味着Paint对象)。 In your OnPaint, call: e.Skip() In your Test, call: dial.ShowModal() instead of dial.Show(), unless ...
-
受到Tim Roberts的启发,在这个wxPython用户线程中,我首先尝试在一个单独的线程中剥离启动画面,但是没有用(wxwidgets抱怨它不在主线程中)。 所以我做了我应该首先做的唯一明显的事情:在启动时长时间运行一个单独的线程。 副作用:由于启动画面现在可以对事件做出反应,因此点击时它会消失。 import wx class long_running(object): def __init__(self): bitmap = wx.EmptyBitmap(300, 150 ...
-
我通常使用一些缩放代码,如下所示: img = wx.Image(filepath, wx.BITMAP_TYPE_ANY) # scale the image, preserving the aspect ratio W = img.GetWidth() H = img.GetHeight() if W > H: NewW = self.PhotoMaxSize NewH = self.PhotoMaxSize * H / W else: NewH = self.PhotoMaxS ...
-
带有sizer的wxpython布局(wxpython layout with sizers)[2022-09-08]
这就是你要追求的吗? import wx class Frame(wx.Frame): def __init__(self, parent): wx.Frame.__init__(self, parent) self.panel = wx.Panel(self) main_sizer = wx.BoxSizer(wx.VERTICAL) # Title self.centred_text = wx.StaticT ... -
适合的wxPython崩溃(wxPython Crash on Fit)[2022-05-24]
将button_sizer添加到新的父sizer似乎会导致崩溃。 尽管似乎没有合理的原因。 如果您编辑您的类以匹配以下内容,它可以工作,并按预期添加项目,而不会崩溃: class MainFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self,None) self.model = [0] self.add_button = wx.Button(self, label="add") ... -
创建一个带有所有这些控件的新面板类将变得更加容易,然后只需添加和删除面板的实例。 面板实例可以存储在列表中。 It would be much easier to create a new panel class with all those controls parented to it, and then just add and delete instances of the panel. The panel instances could be stored in a list.