ViewChild未在IONIC中定义

时间:2018-08-09 06:12:52

标签: angular ionic-framework web ionic4

这是我的app.components.ts文件。我的Viewchild遇到错误。使用Ionic 4.0.5。我想在我的应用程序中包含“菜单”的导航栏。

from tkinter import *
from tkinter import scrolledtext


startingWin = Tk()

myEntry = Entry(startingWin, font=("Courier",25, "bold"), width=15)    
myScrolledText = scrolledtext.ScrolledText(startingWin, font=("Courier",25, "bold"),width=15, height=3, state='disabled')

def addEntryContentToScrolledText(entry, textwidget):
    entryValue = str((entry.get()).strip())
    textwidget.configure(state='normal')
    if entryValue not in str(textwidget.get('1.0', 'end-1c')) and entryValue != "":
        textwidget.insert(INSERT, (entryValue + "\n"))
    textwidget.configure(state='disabled') 


myAddButton = Button(startingWin, text="Add", command=lambda: addEntryContentToScrolledText(myEntry, myScrolledText))

myScrolledText.grid(row=0, column=1)
myEntry.grid(row=0, column=0)
myAddButton.grid(row=1, column=0)
startingWin.mainloop()

1 个答案:

答案 0 :(得分:0)

在ts文件中导入Alarm

ViewChild