使用Widget淡入/淡出Python

时间:2016-12-08 04:21:39

标签: python tkinter

在Python中,我如何制作一个小部件(例如标签中的文本)淡入,然后输出?

我正在创建一个应用程序,目前正在开发引入序列。我想在一段时间之后让一系列文本淡入淡出,让用户有足够的时间阅读完整信息的每一部分。

有没有办法让文字和/或标签淡入淡出?

到目前为止,这是我的代码:

Crashed: com.apple.root.user-initiated-qos
0  Quickride                      0x1002609d0 static NotificationPersistenceHelper.deleteNotificationsOfAGroup(String, groupValue : String) -> () (NotificationPersistenceHelper.swift:162)
1  Quickride                      0x10019df64 specialized NotificationStore.removeOldNotificationOfSameGroupValue(String, groupValue : String) -> () (NotificationStore.swift:286)
2  Quickride                      0x10019a46c NotificationStore.saveNewNotification(UserNotification) -> UserNotification (NotificationStore.swift)
3  Quickride                      0x1001cb200 specialized NotificationHandler.saveNotification(UserNotification) -> UserNotification? (NotificationHandler.swift:58)
4  Quickride                      0x1001c7fe4 NotificationHandler.saveNotification(UserNotification) -> UserNotification? (NotificationHandler.swift:40)
5  Quickride                      0x1001c7e0c NotificationHandler.handleNewUserNotification(UserNotification) -> () (NotificationHandler.swift:29)
6  Quickride                      0x1003dfbb8 specialized UserNotificationTopicListener.onMessageRecieved(String?, messageObject : AnyObject?) -> () (UserNotificationTopicListener.swift:24)
7  Quickride                      0x1003df8e0 UserNotificationTopicListener.onMessageRecieved(String?, messageObject : AnyObject?) -> () (UserNotificationTopicListener.swift:18)
8  Quickride                      0x1003fd918 specialized UserMessageTopicListener.onMessageRecieved(String?, messageObject : AnyObject?) -> () (UserMessageTopicListener.swift:19)
9  Quickride                      0x1003fd104 UserMessageTopicListener.onMessageRecieved(String?, messageObject : AnyObject?) -> () (UserMessageTopicListener.swift:17)
10 Quickride                      0x10011f8ac static MessageDispatchUtils.dispatchMessageToListeners(String, mqttMessage : MQTTMessage, listenerList : [TopicListener]) -> () (MessageDispatchUtils.swift)
11 Quickride                      0x100181700 EventServiceProxy.(dispatchAllMessagesArrivedBeforeSessionWasInitialized() -> ()).(closure #1) (EventServiceProxy.swift)
12 libdispatch.dylib              0x192e31200 _dispatch_call_block_and_release + 24
13 libdispatch.dylib              0x192e311c0 _dispatch_client_callout + 16
14 libdispatch.dylib              0x192e41558 _dispatch_root_queue_drain + 1032
15 libdispatch.dylib              0x192e410ec _dispatch_worker_thread3 + 124
16 libsystem_pthread.dylib        0x1930392c8 _pthread_wqthread + 1288
17 libsystem_pthread.dylib        0x193038db4 start_wqthread + 4

0 个答案:

没有答案